QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#682520#7779. Swiss Stagezyq_313#WA 0ms3492kbC++14434b2024-10-27 15:51:072024-10-27 15:51:08

Judging History

This is the latest submission verdict.

  • [2024-10-27 15:51:08]
  • Judged
  • Verdict: WA
  • Time: 0ms
  • Memory: 3492kb
  • [2024-10-27 15:51:07]
  • Submitted

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: 0
Wrong Answer
time: 0ms
memory: 3492kb

input:

0 1

output:


result:

wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements