QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#418570 | #8674. Riddle of the Sphinx | by_chance# | WA | 0ms | 3672kb | C++14 | 651b | 2024-05-23 14:33:18 | 2024-05-23 14:33:18 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int a[5];
int main(){
cout<<"1 0 0"<<endl;cin>>a[0];
cout<<"0 1 0"<<endl;cin>>a[1];
cout<<"0 0 1"<<endl;cin>>a[2];
cout<<"1 1 1"<<endl;cin>>a[3];
cout<<"1 2 3"<<endl;cin>>a[4];
if(a[0]+a[1]+a[2]==a[3])cout<<a[0]<<" "<<a[1]<<" "<<a[2]<<endl;
else{
if(a[0]+2*a[1]+3*(a[2]-a[1]-a[0])==a[4])cout<<a[0]<<" "<<a[1]<<" "<<a[2]-a[1]-a[0]<<endl;
if(a[0]+2*(a[2]-a[1]-a[0])+3*a[2]==a[4])cout<<a[0]<<" "<<a[2]-a[1]-a[0]<<" "<<a[2]<<endl;
if((a[2]-a[1]-a[0])+2*a[1]+3*a[2]==a[4])cout<<a[2]-a[1]-a[0]<<" "<<a[1]<<" "<<a[2]<<endl;
}
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3572kb
input:
1 2 3 6 14
output:
1 0 0 0 1 0 0 0 1 1 1 1 1 2 3 1 2 3
result:
ok correct!
Test #2:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
9998 1 1 10000 10003
output:
1 0 0 0 1 0 0 0 1 1 1 1 1 2 3 9998 1 1
result:
ok correct!
Test #3:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
3333 3333 3333 9999 19998
output:
1 0 0 0 1 0 0 0 1 1 1 1 1 2 3 3333 3333 3333
result:
ok correct!
Test #4:
score: -100
Wrong Answer
time: 0ms
memory: 3652kb
input:
892 503 712 2108 4035
output:
1 0 0 0 1 0 0 0 1 1 1 1 1 2 3
result:
wrong answer format Unexpected end of file - int32 expected