QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#510622#5209. King's PuzzleGuanYunchangWA 0ms3888kbC++201.4kb2024-08-09 09:56:522024-08-09 09:56:52

详细

Test #1:

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

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: 3876kb

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: 3760kb

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: 3864kb

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: 3816kb

input:

11 3

output:

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

result:

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