QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#404584#5533. Trickhyforces#29 34ms3760kbC++201.6kb2024-05-04 09:53:492024-05-04 09:53:50

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 29
Accepted

Test #1:

score: 29
Accepted
time: 34ms = 0ms + 34ms
memory: 0kb,3760kb

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 3
0 3
0 3
0 3
0 3
0 3
4 6
4 6
4 6
4 6
4 6
4 6
4 6
5 6
5 6
5 6
5 6
5 6
5 6
5 6
0 6
0 6
0 6
0 6
0 6
0 6
0 6
1 6
1 6
1 6
1 6
1 6
1 6
1 6
2 6
2 6
2 6
2 6
2 6
2 6
2 6
3 6
3 6
3 6
3 6
3 6
3 6
3 6
4 7
4 7
4 7
4 7
4 7
4 7
4 7
5 7
5 7
5 7
5 7
5 7
5 7
5 7
0 7
0 7
0 7
0 7
0 7
0 7
0 7
1 7
1 7
1 7
1 7
1 7
...

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:

9 7
8 9
7 9
7 8
11 12
10 12
10 11
9 7
9 12
10 11
7 12
8 11
8 10
7 9
9 7
9 11
10 12
7 11
8 12
7 9
8 10
9 7
10 11
9 12
8 12
7 11
7 10
8 9
9 7
8 11
7 11
10 12
9 12
7 8
9 10
9 7
8 12
7 12
10 11
9 11
9 10
7 8
9 7
10 12
9 11
8 11
7 12
8 9
7 10
8 9
9 12
5 9
5 8
9 11
9 10
6 9
8 9
9 11
4 9
4 8
9 12
6 9
9 10
...

input:

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

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:

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

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 3
10 12
8 9
4 11
9 10
2 7
8 11
0 1
6 9
1 7
5 12
12 14
12 11
3 13
9 14
11 4
0 6
9 13
2 13
1 9
10 5
2 4
4 7
6 16
7 13
1 8
10 15
5 16
10 9
2 6
10 2
10 3
2 17
5 10
4 10
5 7
17 7
7 3
9 10
1 16
2 11
1 4
15 19
13 16
8 11
0 12
1 15
1 4
0 7
14 16
19 3
0 7
21 18
14 18
9 20
14 17
1 3
8 11
13 14
7 16
8 18
10 ...

result:


Subtask #4:

score: 0
Skipped