64,637
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
using namespace std;
int main()
{
int value = 0;
int sum = 0;
while (cin >> value) {
sum += value;
}
int another_value = 0;
int another_sum = 0;
while (cin >> another_value) {
another_sum += another_value;
}
cout << sum << endl;
cout << another_sum << endl;
return 0;
}