SGU首战。
Question:
Read integers A and B from input file and write their sum in output file.
Input
Input file contains A and B (0<A,B<10001).
Output
Write answer in output file.
Sample Input
5 3Sample Output
8
代码:#include <iostream> #include <cstdlib> using namespace std; int main(int argc, char *argv[]) { int a, b; cin >> a >>b; cout << a + b << endl; return EXIT_SUCCESS; }
本文介绍了一个简单的程序实现,从输入文件读取两个整数A和B,并将它们的和写入输出文件。示例输入为53,输出结果为8。
1420

被折叠的 条评论
为什么被折叠?



