UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#168539#1218. 分解求和luojianwei22161000ms1196kbC++149b2023-02-04 15:01:042023-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;
}

详细

小提示:点击横条可展开更详细的信息

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'