QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#281296 | #7779. Swiss Stage | ucup-team2000# | WA | 1ms | 3544kb | C++20 | 349b | 2023-12-10 02:12:43 | 2023-12-10 02:12:43 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int x, y;
int main() {
cin >> x >> y;
if ((!x && !y) || (!x && y == 1) || (!y && x == 1) || (x == 1 || y == 1)) cout << 4;
else if ((x == 2 && !y) || (y == 2 && !x)) cout << 2;
else if ((x == 2 && y == 1) || (x == 1 && y == 2) || (x == 2 && y == 2)) cout << 4;
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3372kb
input:
0 1
output:
4
result:
ok 1 number(s): "4"
Test #2:
score: 0
Accepted
time: 0ms
memory: 3480kb
input:
1 2
output:
4
result:
ok 1 number(s): "4"
Test #3:
score: 0
Accepted
time: 0ms
memory: 3476kb
input:
0 0
output:
4
result:
ok 1 number(s): "4"
Test #4:
score: -100
Wrong Answer
time: 0ms
memory: 3544kb
input:
0 2
output:
2
result:
wrong answer 1st numbers differ - expected: '6', found: '2'