QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#561820#8674. Riddle of the SphinxStarrykillerWA 1ms3636kbC++23947b2024-09-13 11:05:252024-09-13 11:05:25

Judging History

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

  • [2024-09-13 11:05:25]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3636kb
  • [2024-09-13 11:05:25]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

int bin[]={1,2,4,5,7};
int ans[5];

signed main() {
    int a, b, c, d, e;
    cout<<"1 1 0"<<endl; cin>>a;
    cout<<"0 1 1"<<endl; cin>>b;
    cout<<"1 0 1"<<endl; cin>>c;
    cout<<"1 1 1"<<endl; cin>>d;
    cout<<"1 0 0"<<endl; cin>>e;
    // 5 is false
    if (a+b+c==d*2) {
        int A=d-b;
        int B=d-c;
        int C=d-a;
        // assert(A!=e);
        cerr<<5;
        cout<<a<<" "<<b<<' '<<c<<'\n';
        // return 0;
    }
    // 1 is false
    if (e+(d-c)!=a) {
        cerr<<1;
        cout<<e<<" "<<d-c<<' '<<d-a<<'\n';
    }
    // 2 is false
    if (d-e!=b) {
        cerr<<2;
        cout<<e<<' '<<d-c<<' '<<d-a<<'\n';
    }
    // 3 is false
    if (e+(d-a)!=c) {
        cerr<<3;
        cout<<e<<" "<<e+d-a<<" "<<d-a<<'\n';
    }
    if (a+b+c!=d*2) {
        cerr<<4;
        cout<<e<<" "<<a-e<<' '<<c-e<<'\n';
    }



}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3636kb

input:

3
5
4
6
1

output:

1 1 0
0 1 1
1 0 1
1 1 1
1 0 0
3 5 4

result:

wrong answer read