QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#404588#5533. Trickhyforces#29 31ms3744kbC++201.7kb2024-05-04 10:00:302024-05-04 10:00:31

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 29
Accepted

Test #1:

score: 29
Accepted
time: 31ms = 0ms + 31ms
memory: 0kb,3744kb

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:

2 0
2 0
2 0
2 0
2 0
2 0
2 0
1 2
1 2
1 2
1 2
1 2
1 2
1 2
0 3
0 3
0 3
0 3
0 3
0 3
0 3
0 4
0 4
0 4
0 4
0 4
0 4
0 4
1 5
1 5
1 5
1 5
1 5
1 5
1 5
2 5
2 5
2 5
2 5
2 5
2 5
2 5
3 4
3 4
3 4
3 4
3 4
3 4
3 4
0 2
0 2
0 2
0 2
0 2
0 2
0 2
1 3
1 3
1 3
1 3
1 3
1 3
1 3
1 4
1 4
1 4
1 4
1 4
1 4
1 4
0 5
0 5
0 5
0 5
0 5
...

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:

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

input:

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

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:

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

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:

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

result:


Subtask #4:

score: 0
Skipped