QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#404601#5533. Trickhyforces#29 39ms3768kbC++203.4kb2024-05-04 10:30:022024-05-04 10:30:02

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 29
Accepted

Test #1:

score: 29
Accepted
time: 39ms = 0ms + 39ms
memory: 0kb,3768kb

input:

12012
1
6
0 1 2 3 4 5
6
0 1 2 3 4 5
6
0 1 2 3 4 5
6
0 1 2 3 4 5
6
0 1 2 3 4 5
6
0 1 2 3 4 5
6
0 1 2 3 4 5
6
0 1 2 3 4 6
6
0 1 2 3 4 6
6
0 1 2 3 4 6
6
0 1 2 3 4 6
6
0 1 2 3 4 6
6
0 1 2 3 4 6
6
0 1 2 3 4 6
6
0 1 2 3 5 6
6
0 1 2 3 5 6
6
0 1 2 3 5 6
6
0 1 2 3 5 6
6
0 1 2 3 5 6
6
0 1 2 3 5 6
6
0 1 2 3 5 ...

output:

0 3
0 1
2 3
3 5
0 2
0 3
1 5
0 1
4 1
0 2
0 2
1 4
0 1
2 6
1 3
5 0
1 3
0 2
2 3
0 3
3 0
1 4
0 6
0 6
0 4
0 5
1 4
0 2
0 6
0 5
4 0
1 3
3 6
3 6
0 6
4 5
3 5
0 3
5 4
4 2
3 4
2 3
2 3
1 3
4 6
3 5
4 6
3 4
1 4
2 0
0 2
0 4
0 2
4 7
1 2
7 2
3 7
0 3
2 3
1 5
3 5
0 2
1 7
4 5
2 4
1 5
5 7
0 1
1 2
0 1
3 7
5 7
0 7
0 5
7 0
...

input:

12012
2
6
7 8 9 10 11 12
6
6 8 9 10 11 12
6
6 7 9 10 11 12
6
6 7 8 10 11 12
6
6 7 8 9 11 12
6
6 7 8 9 10 12
6
6 7 8 9 10 11
6
7 8 9 10 11 12
6
5 8 9 10 11 12
6
5 7 9 10 11 12
6
5 7 8 10 11 12
6
5 7 8 9 11 12
6
5 7 8 9 10 12
6
5 7 8 9 10 11
6
7 8 9 10 11 12
6
4 8 9 10 11 12
6
4 7 9 10 11 12
6
4 7 8 1...

output:

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

input:

12012
3
6
0 3 7 10
6
0 1 9 12
6
2 3 7 9
6
3 5 6 7
6
0 2 6 9
6
0 3 7 10
6
1 5 8 10
6
0 1 8 11
6
4 1 10 12
6
0 2 7 10
6
0 2 7 8
6
1 4 5 12
6
0 1 9 12
6
2 6 5 9
6
1 3 7 12
6
5 0 10 11
6
1 3 4 11
6
0 2 4 10
6
2 3 9 11
6
0 3 7 9
6
3 0 4 11
6
1 4 11 12
6
0 6 3 8
6
0 6 3 9
6
0 4 3 7
6
0 5 8 11
6
1 4 3 12
6...

output:

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

result:

ok very good job! (12012 test cases)

Subtask #2:

score: 0
Runtime Error

Test #2:

score: 0
Runtime Error

input:

6576
1
6
12 2 3 11 5 6
6
0 1 8 3 10 5
6
0 1 6 11 7 5
6
0 12 8 3 5 9
6
0 1 7 3 4 6
6
0 12 8 3 4 5
6
0 1 2 7 12 5
6
1 2 8 4 7 6
6
12 7 9 4 10 6
6
0 1 11 4 5 6
7
10 14 3 4 12 8 9
7
0 10 2 9 4 5 7
7
1 9 3 11 10 6 7
7
0 13 14 8 9 6 12
7
12 1 8 3 7 5 9
7
0 1 2 8 9 5 7
7
0 10 12 4 11 8 9
7
13 1 2 3 4 11 6
...

output:

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

input:

6576
2
6
1 4 7 8 9 10
6
2 4 7 9 11 12
6
2 3 4 9 10 12
6
1 2 6 7 10 11
6
2 5 8 9 10 12
6
1 2 6 9 10 11
6
3 4 6 8 9 10
6
3 5 9 10 11 12
6
0 1 2 5 8 11
6
2 7 8 9 10 12
7
0 1 5 6 7 11 13
7
1 3 8 11 12 13 14
7
2 4 5 8 12 13 14
7
1 2 4 5 7 10 11
7
0 2 4 6 10 11 14
7
3 4 6 10 11 12 13
7
1 3 5 6 7 13 14
7
0...

output:

7 9
7 12
10 12
1 7
2 5
2 10
8 10
9 12
0 8
8 10
0 1
3 11
2 13
2 7
0 14
3 13
3 14

result:


Subtask #3:

score: 0
Runtime Error

Test #11:

score: 0
Runtime Error

input:

6525
1
6
10 1 11 3 12 6
6
1 7 10 12 5 6
6
0 10 12 7 9 8
6
12 1 8 4 7 11
6
11 8 9 4 10 6
6
0 7 2 3 4 5
6
0 8 3 10 11 6
6
0 1 2 4 7 6
6
0 1 11 9 5 6
6
7 1 12 8 6 5
7
0 1 13 10 12 5 6
7
0 14 2 3 4 12 6
7
11 1 3 8 12 6 13
7
0 1 2 3 13 5 14
7
11 9 10 8 4 14 7
7
0 8 14 3 4 13 11
7
0 10 2 14 8 5 6
7
0 13 2...

output:

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

input:

6525
2
6
0 2 4 5 8 9
6
2 3 4 8 9 11
6
1 2 3 4 5 11
6
0 3 5 6 9 10
6
0 1 3 5 7 12
6
1 6 8 10 11 12
6
2 4 5 7 9 12
6
5 8 9 10 11 12
6
3 4 7 8 10 12
6
0 2 3 4 9 11
7
2 3 4 7 8 9 11
7
1 5 7 8 9 10 13
7
0 4 5 7 9 10 14
7
4 6 7 8 9 10 11
7
0 1 2 3 5 6 13
7
1 2 5 7 9 10 12
7
1 3 4 9 11 12 13
7
1 3 4 6 10 1...

output:

0 5
2 11
2 5
6 9
1 3
6 10
5 7
11 12
3 12
0 9
3 7
1 10

result:


Subtask #4:

score: 0
Skipped