QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#418570#8674. Riddle of the Sphinxby_chance#WA 0ms3672kbC++14651b2024-05-23 14:33:182024-05-23 14:33:18

Judging History

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

  • [2024-05-23 14:33:18]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3672kb
  • [2024-05-23 14:33:18]
  • 提交

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