QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#682520#7779. Swiss Stagezyq_313#WA 0ms3492kbC++14434b2024-10-27 15:51:072024-10-27 15:51:08

Judging History

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

  • [2024-10-27 15:51:08]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3492kb
  • [2024-10-27 15:51:07]
  • 提交

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();
}

詳細信息

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