QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#142088 | #5575. Knight's Tour Redux | Phantom Threshold (Jiachen Tang, Changdong Li, Weinuo Li)# | WA | 1ms | 3528kb | C++20 | 504b | 2023-08-18 14:10:44 | 2023-08-18 14:10:46 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
const int MOD=998244353;
int main()
{
ios_base::sync_with_stdio(false);
long long n;
cin>>n;
if(n==1)
{
cout<<"POSSIBLE\n1 1\n";
}
else if(n==8)
{
cout<<"POSSIBLE\n";
cout<<1<<' '<<1<<endl;
cout<<4<<' '<<2<<endl;
cout<<7<<' '<<3<<endl;
cout<<8<<' '<<6<<endl;
cout<<5<<' '<<5<<endl;
cout<<6<<' '<<8<<endl;
cout<<3<<' '<<7<<endl;
cout<<2<<' '<<4<<endl;
}
else
{
cout<<"IMPOSSIBLE\n";
}
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 3484kb
input:
1
output:
POSSIBLE 1 1
result:
ok answer = 1
Test #2:
score: 0
Accepted
time: 1ms
memory: 3460kb
input:
2
output:
IMPOSSIBLE
result:
ok answer = 0
Test #3:
score: 0
Accepted
time: 1ms
memory: 3528kb
input:
3
output:
IMPOSSIBLE
result:
ok answer = 0
Test #4:
score: 0
Accepted
time: 0ms
memory: 3416kb
input:
4
output:
IMPOSSIBLE
result:
ok answer = 0
Test #5:
score: -100
Wrong Answer
time: 1ms
memory: 3480kb
input:
5
output:
IMPOSSIBLE
result:
wrong answer jury has the better answer: jans = 1, pans = 0 (1 is Possible)