QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#540059#8934. Challenge NPCucup-team154#AC ✓24ms9116kbC++202.7kb2024-08-31 16:20:522024-08-31 16:20:53

詳細信息

Test #1:

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

input:

1

output:

6 6 2
1 2 2 1 2 1
1 2
3 4
1 5
4 5
2 6
3 6

result:

ok ok

Test #2:

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

input:

2

output:

8 12 2
1 2 2 1 2 1 2 1
1 2
3 4
1 5
4 5
2 6
3 6
1 7
4 7
6 7
2 8
3 8
5 8

result:

ok ok

Test #3:

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

input:

3

output:

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

result:

ok ok

Test #4:

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

input:

4

output:

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

result:

ok ok

Test #5:

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

input:

5

output:

14 42 2
1 2 2 1 2 1 2 1 2 1 2 1 2 1
1 2
3 4
1 5
4 5
2 6
3 6
1 7
4 7
6 7
2 8
3 8
5 8
1 9
4 9
6 9
8 9
2 10
3 10
5 10
7 10
1 11
4 11
6 11
8 11
10 11
2 12
3 12
5 12
7 12
9 12
1 13
4 13
6 13
8 13
10 13
12 13
2 14
3 14
5 14
7 14
9 14
11 14

result:

ok ok

Test #6:

score: 0
Accepted
time: 19ms
memory: 8644kb

input:

433

output:

870 188790 2
1 2 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1...

result:

ok ok

Test #7:

score: 0
Accepted
time: 24ms
memory: 9116kb

input:

500

output:

1004 251502 2
1 2 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 ...

result:

ok ok

Test #8:

score: 0
Accepted
time: 20ms
memory: 8144kb

input:

499

output:

1002 250500 2
1 2 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 ...

result:

ok ok

Test #9:

score: 0
Accepted
time: 16ms
memory: 8920kb

input:

457

output:

918 210222 2
1 2 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1...

result:

ok ok

Test #10:

score: 0
Accepted
time: 20ms
memory: 8592kb

input:

497

output:

998 248502 2
1 2 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1...

result:

ok ok

Extra Test:

score: 0
Extra Test Passed