QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#510630#5209. King's PuzzleGuanYunchangWA 1ms3948kbC++201.5kb2024-08-09 10:07:192024-08-09 10:07:19

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3792kb

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

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

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

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

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])"