QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#561894 | #8674. Riddle of the Sphinx | Starrykiller | WA | 1ms | 3540kb | C++23 | 1.1kb | 2024-09-13 12:27:18 | 2024-09-13 12:27:19 |
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 1 1"<<endl; cin>>e;
if (d==e) {
// A
{
int A=d-b;
int B=d-c;
int C=d-A-B;
if (A+B!=a && B+C==b && A+C==c) {
cout<<A<<" "<<B<<' '<<C;
}
}
// B
{
int B=d-c;
int C=d-a;
int A=d-B-C;
if (A+B==a && B+C!=b && A+C==c) {
cout<<A<<" "<<B<<' '<<C;
}
}
// C
{
int B=d-c;
int A=d-B;
int C=d-A-B;
if (A+B==a && B+C==b && A+C!=c) {
cout<<A<<" "<<B<<' '<<C;
}
}
} else {
int f=(a+b+c)/2;
cout<<f-b<<' '<<f-c<<' '<<f-a;
}
}
详细
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3540kb
input:
3 5 4 6 6
output:
1 1 0 0 1 1 1 0 1 1 1 1 1 1 1
result:
wrong answer format Unexpected end of file - int32 expected