QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#281296#7779. Swiss Stageucup-team2000#WA 1ms3544kbC++20349b2023-12-10 02:12:432023-12-10 02:12:43

Judging History

你现在查看的是最新测评结果

  • [2023-12-10 02:12:43]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3544kb
  • [2023-12-10 02:12:43]
  • 提交

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'