QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#604341#8934. Challenge NPCucup-team1213#AC ✓18ms4956kbC++14660b2024-10-02 09:59:482024-10-02 09:59:49

详细

Test #1:

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

input:

1

output:

4 3 2
1 2 2 1 
1 2
2 4
3 4

result:

ok ok

Test #2:

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

input:

2

output:

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

result:

ok ok

Test #3:

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

input:

3

output:

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

result:

ok ok

Test #4:

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

input:

4

output:

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

result:

ok ok

Test #5:

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

input:

5

output:

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

result:

ok ok

Test #6:

score: 0
Accepted
time: 14ms
memory: 3004kb

input:

433

output:

868 187923 2
1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1...

result:

ok ok

Test #7:

score: 0
Accepted
time: 18ms
memory: 3904kb

input:

500

output:

1002 250501 2
1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 ...

result:

ok ok

Test #8:

score: 0
Accepted
time: 18ms
memory: 3968kb

input:

499

output:

1000 249501 2
1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 ...

result:

ok ok

Test #9:

score: 0
Accepted
time: 10ms
memory: 4956kb

input:

457

output:

916 209307 2
1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1...

result:

ok ok

Test #10:

score: 0
Accepted
time: 18ms
memory: 3848kb

input:

497

output:

996 247507 2
1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 1...

result:

ok ok

Extra Test:

score: 0
Extra Test Passed