QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#142088#5575. Knight's Tour ReduxPhantom Threshold (Jiachen Tang, Changdong Li, Weinuo Li)#WA 1ms3528kbC++20504b2023-08-18 14:10:442023-08-18 14:10:46

Judging History

This is the latest submission verdict.

  • [2023-08-18 14:10:46]
  • Judged
  • Verdict: WA
  • Time: 1ms
  • Memory: 3528kb
  • [2023-08-18 14:10:44]
  • Submitted

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)