ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#193271 | #1189. 奇偶性 | lyz111 | 100 | 0ms | 1196kb | C++ | 180b | 2023-10-14 09:55:04 | 2023-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;
}
Details
小提示:点击横条可展开更详细的信息
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'