QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#542163#8934. Challenge NPCucup-team4598#AC ✓16ms3700kbC++20685b2024-08-31 23:08:182024-08-31 23:08:18

详细

Test #1:

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

input:

1

output:

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

result:

ok ok

Test #2:

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

input:

2

output:

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

result:

ok ok

Test #3:

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

input:

3

output:

9 16 2
1 2 1 2 1 2 1 2 2
3 2
4 1
5 4
5 2
6 3
6 1
7 6
7 4
7 2
8 5
8 3
8 1
9 1
9 3
9 5
9 7

result:

ok ok

Test #4:

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

input:

4

output:

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

result:

ok ok

Test #5:

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

input:

5

output:

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

result:

ok ok

Test #6:

score: 0
Accepted
time: 13ms
memory: 3640kb

input:

433

output:

869 188356 2
1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 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 #7:

score: 0
Accepted
time: 13ms
memory: 3644kb

input:

500

output:

1003 251001 2
1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 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 #8:

score: 0
Accepted
time: 12ms
memory: 3700kb

input:

499

output:

1001 250000 2
1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 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 #9:

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

input:

457

output:

917 209764 2
1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 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 #10:

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

input:

497

output:

997 248004 2
1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 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

Extra Test:

score: 0
Extra Test Passed