标签:c style class blog code java
1 #include <stdio.h> 2 int main() 3 { 4 int a,b; 5 while(scanf("%d %d",&a,&b)!=EOF){ 6 printf("%d\n",(a+b)); 7 } 8 return 0; 9 }
记得判断 !=EOF 不加判断会报 Time Limit Exceeded 超时
标签:c style class blog code java
原文地址:http://www.cnblogs.com/Codenewbie2/p/3779005.html