a+b_1
題目截圖:
?
思路:
直接輸出即可。
?
代碼如下:
1 /* 2 a+b 3 */ 4 5 #include <stdio.h> 6 #include <string.h> 7 #include <math.h> 8 #include <stdlib.h> 9 #include <time.h> 10 #include <stdbool.h> 11 12 int main() { 13 int a, b; 14 while(scanf("%d %d", &a, &b) != EOF) { 15 // int 理論上會溢出 16 long long c = a+b; 17 printf("%lld\n", c); 18 } 19 20 return 0; 21 }?
轉(zhuǎn)載于:https://www.cnblogs.com/coderJiebao/p/HustTest23.html
總結(jié)
- 上一篇: 动态规划——最长公共子序列(LCS)
- 下一篇: 沪深通是什么意思