QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#561820 | #8674. Riddle of the Sphinx | Starrykiller | WA | 1ms | 3636kb | C++23 | 947b | 2024-09-13 11:05:25 | 2024-09-13 11:05:25 |
Judging History
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