HDU 1.1.2 A+B for Input-Output Practice (II)
2014-11-06 15:49
447 查看
Problem Description Your task is to Calculate a + b. |
Input Input contains an integer N in the first line, and then N lines follow. Each line consists of a pair of integers a and b, separated by a space, one pair of integers per line. |
Output For each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input. |
Sample Input2 1 5 10 20 |
Sample Output6 30 #include <stdio.h> int main() { int a,b,n; scanf("%d",&n); while (n--) { scanf("%d%d",&a,&b); printf("%d\n",a+b); } } |
相关文章推荐
- HDU 1.1.2 A+B for Input-Output Practice (II)
- HDU1.1.2 A+B for Input-Output Practice (II)
- HDU 1090 A+B for Input-Output Practice (II)(水~)
- HDU水题1090 ( A+B for Input-Output Practice (II) )
- HDU A+B for Input-Output Practice (II)
- HDU 1090 A+B for Input-Output Practice (II)
- HDU-1090-A+B for Input-Output Practice (II)(骗訪问量的)
- ACM STEP 1.1.2 A+B for Input-Output Practice (II)
- HDU-1090-A+B for Input-Output Practice (II)(骗访问量的)
- HDU 1090 A+B for Input-Output Practice (II)
- HDOJ 【C】 1.1.2 A+B for Input-Output Practice (II)
- 【HDU】1090 A+B for Input-Output Practice (II)
- HDU-1090 A+B for Input-Output Practice (II)
- HDU 1090 A+B for Input-Output Practice (II)
- HDU_ACM_A+B for Input-Output Practice (II)
- HDU1090 A+B for Input-Output Practice (II)
- A+B for Input-Output Practice (II)
- HDU 1089 A+B for Input-Output Practice (I)
- 1090 A+B for Input-Output Practice (II)
- A+B for Input-Output Practice (II)