ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#168539 | #1218. 分解求和 | luojianwei2216 | 100 | 0ms | 1196kb | C++ | 149b | 2023-02-04 15:01:04 | 2023-02-04 15:01:06 |
answer
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, a, b;
cin >> n;
a = n / 10;
b = n % 10;
cout << a + b;
return 0;
}
Details
小提示:点击横条可展开更详细的信息
Test #1:
score: 50
Accepted
time: 0ms
memory: 1196kb
input:
56
output:
11
result:
ok single line: '11'
Test #2:
score: 50
Accepted
time: 0ms
memory: 1196kb
input:
98
output:
17
result:
ok single line: '17'