QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#682533#7779. Swiss Stagezyq_313#WA 1ms3640kbC++14436b2024-10-27 15:53:112024-10-27 15:53:12

Judging History

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

  • [2024-10-27 15:53:12]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3640kb
  • [2024-10-27 15:53:11]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;


void solve(){
    int x, y;
    cin >> x >> y;
    if(x==0&&y==1||x==0&&y==2||x==1&&y==1||x==1&&y==2||x==0&&y==0)  cout<<4<<endl;
    else if(x==2&&y==0) cout<<0<<endl;
    else if(x==2) cout<<2<<endl;
    else if(x==1&&y==0) cout<<3<<endl;
}

int main(){
    ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    int t = 1;
  //  cin >> t;
    while (t --) solve();
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3596kb

input:

0 1

output:

4

result:

ok 1 number(s): "4"

Test #2:

score: 0
Accepted
time: 0ms
memory: 3636kb

input:

1 2

output:

4

result:

ok 1 number(s): "4"

Test #3:

score: 0
Accepted
time: 1ms
memory: 3640kb

input:

0 0

output:

4

result:

ok 1 number(s): "4"

Test #4:

score: -100
Wrong Answer
time: 0ms
memory: 3500kb

input:

0 2

output:

4

result:

wrong answer 1st numbers differ - expected: '6', found: '4'