QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#510617#5209. King's PuzzleZhaoZiLongWA 0ms3956kbC++201.2kb2024-08-09 09:52:382024-08-09 09:52:38

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3796kb

input:

5 2

output:

YES
4
1 2
2 3
3 4
4 5

result:

ok n = 5, k = 2: nice job dude

Test #2:

score: 0
Accepted
time: 0ms
memory: 3916kb

input:

4 1

output:

YES
4
1 2
2 3
3 4
4 1

result:

ok n = 4, k = 1: nice job dude

Test #3:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

11 1

output:

YES
11
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11
11 1

result:

ok n = 11, k = 1: nice job dude

Test #4:

score: 0
Accepted
time: 0ms
memory: 3880kb

input:

11 2

output:

YES
10
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
10 11

result:

ok n = 11, k = 2: nice job dude

Test #5:

score: -100
Wrong Answer
time: 0ms
memory: 3956kb

input:

11 3

output:

4
1 4
2 4
3 4
2 3

result:

wrong answer Line "4" doesn't correspond to pattern "([yY][eE][sS]|[nN][oO])"