QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#561818 | #8674. Riddle of the Sphinx | Starrykiller | RE | 0ms | 0kb | C++23 | 944b | 2024-09-13 11:04:29 | 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';
}
}
詳細信息
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