HDU 1000 A + B Problem
生活随笔
收集整理的這篇文章主要介紹了
HDU 1000 A + B Problem
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Problem Description Calculate A + B. ?
?
Input Each line will contain two integers A and B. Process to end of file. ??
Output For each case, output A + B in one line. ??
Sample Input 1 1 ??
Sample Output 2 題意:求輸入的兩個數之和。 分析:注意題目暗含循環輸入輸出。 AC源代碼(C語言): 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 return 0; 8 }?2013-01-13
轉載于:https://www.cnblogs.com/fjutacm/archive/2013/01/13/2858764.html
總結
以上是生活随笔為你收集整理的HDU 1000 A + B Problem的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ip反查MAC地址
- 下一篇: uploadify scriptData