3 条题解
-
0
包对的
#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;-
int main() { int n[10005], ans = 0, i = 1, cnt = 0; char a; while(cin >> n[i] >> a) { ans += n[i++]; cnt++; } for(int i = 1; i <= cnt; i++) { cout << n[i]; if(i != cnt) { cout << "+"; } else { cout << "="; } } cout << ans << endl; return 0; }
信息
- ID
- 712
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 5
- 标签
- 递交数
- 214
- 已通过
- 84
- 上传者