UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#193271#1189. 奇偶性lyz1111000ms1196kbC++180b2023-10-14 09:55:042023-10-14 09:55:10

answer

#include <bits/stdc++.h>
using namespace std;

int main()
{
	int a, b;
	cin >> a >> b;
	if ((a + b) % 2 == 0) cout << 1 << endl;
	else cout << a + b << endl;
	return 0;
}

详细

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

Test #1:

score: 25
Accepted
time: 0ms
memory: 1196kb

input:

3 7

output:

1

result:

ok single line: '1'

Test #2:

score: 25
Accepted
time: 0ms
memory: 1196kb

input:

7 8

output:

15

result:

ok single line: '15'

Test #3:

score: 25
Accepted
time: 0ms
memory: 1196kb

input:

4 6

output:

1

result:

ok single line: '1'

Test #4:

score: 25
Accepted
time: 0ms
memory: 1196kb

input:

12 23

output:

35

result:

ok single line: '35'