QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#561818#8674. Riddle of the SphinxStarrykillerRE 0ms0kbC++23944b2024-09-13 11:04:292024-09-13 11:04:29

Judging History

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

  • [2024-09-13 11:04:29]
  • 评测
  • 测评结果:RE
  • 用时:0ms
  • 内存:0kb
  • [2024-09-13 11:04:29]
  • 提交

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
Runtime Error

input:

3
5
4
6
1

output:

1 1 0
0 1 1
1 0 1
1 1 1
1 0 0

result: