QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#682536#7779. Swiss Stagezyq_313#WA 0ms3628kbC++14436b2024-10-27 15:54:012024-10-27 15:54:02

Judging History

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

  • [2024-10-27 15:54:02]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3628kb
  • [2024-10-27 15:54:01]
  • 提交

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<<2<<endl;
}

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

详细

Test #1:

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

input:

0 1

output:

4

result:

ok 1 number(s): "4"

Test #2:

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

input:

1 2

output:

4

result:

ok 1 number(s): "4"

Test #3:

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

input:

0 0

output:

4

result:

ok 1 number(s): "4"

Test #4:

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

input:

0 2

output:

4

result:

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