QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#116916 | #6668. Trokuti | eyiigjkn# | 0 | 11ms | 3540kb | C++14 | 401b | 2023-06-30 10:45:16 | 2024-05-31 18:34:28 |
Judging History
answer
# include <bits/stdc++.h>
using namespace std;
constexpr int n=100;
bool G[110][110];
int query(int a,int b,int c)
{
cout<<"? "<<a<<" "<<b<<" "<<c<<endl;
int x;cin>>x;
return x;
}
int main()
{
for(int i=1;i<=n;i++)
for(int j=1;j<i;j++)
G[i][j]=G[j][i]=query(i,i,j)/2;
cout<<"!\n";
for(int i=1;i<=n;i++)
for(int j=1;j<=n;j++)
cout<<G[i][j]<<" \n"[j==n];
return 0;
}
詳細信息
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 0
Wrong Answer
time: 11ms
memory: 3540kb
input:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
? 2 2 1 ? 3 3 1 ? 3 3 2 ? 4 4 1 ? 4 4 2 ? 4 4 3 ? 5 5 1 ? 5 5 2 ? 5 5 3 ? 5 5 4 ? 6 6 1 ? 6 6 2 ? 6 6 3 ? 6 6 4 ? 6 6 5 ? 7 7 1 ? 7 7 2 ? 7 7 3 ? 7 7 4 ? 7 7 5 ? 7 7 6 ? 8 8 1 ? 8 8 2 ? 8 8 3 ? 8 8 4 ? 8 8 5 ? 8 8 6 ? 8 8 7 ? 9 9 1 ? 9 9 2 ? 9 9 3 ? 9 9 4 ? 9 9 5 ? 9 9 6 ? 9 9 7 ? 9 9 8 ? 10 10 1 ? ...
result:
wrong answer Token parameter [name=ans_i] equals to "0", doesn't correspond to pattern "[01]{100,100}"