QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#423543#8730. Particijamonstersqwq7 21ms13256kbC++173.8kb2024-05-28 09:15:002024-05-28 16:40:18

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 7
Accepted

Test #1:

score: 7
Accepted
time: 6ms
memory: 12984kb

input:

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

output:

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

result:

ok 751 numbers

Subtask #2:

score: 0
Runtime Error

Dependency #1:

100%
Accepted

Test #2:

score: 23
Accepted
time: 18ms
memory: 13112kb

input:

10000 0
1
1
1
22
3 20 22 15 8 18 14 19 15 11 18 15 15 19 20 14 10 20 19 4 18 20
22 19 9 17 2 17 8 9 22 22 8 2 15 9 19 6 15 17 9 22 22 1
6
4 1 4 1 4 4
2 2 3 3 3 2
2
1 1
2 2
65
16 27 7 58 30 4 58 59 30 45 27 58 65 15 20 26 58 48 58 25 4 39 4 16 28 28 28 33 59 30 59 19 48 41 59 58 4 65 25 20 59 42 45 5...

output:

1
9
2
1
22
1
15
3
10
1
1
2
1
2
1
10
1
2
5
3
1
17
4
4
1
5
22
1
1
2
11
5
9
4
6
2
2
7
4
8
1
1
1
1
1
6
3
4
8
9
21
1
2
1
1
2
5
5
5
1
1
3
5
5
1
6
1
4
3
1
2
1
10
1
1
11
1
1
1
17
38
2
11
4
5
1
4
1
4
2
16
5
4
25
4
23
8
9
5
6
5
1
3
1
1
1
2
2
1
1
1
2
2
3
38
24
5
5
2
4
4
2
9
7
1
6
35
4
1
3
8
8
12
4
12
2
6
2
4
1...

result:

ok 10000 numbers

Test #3:

score: 23
Accepted
time: 21ms
memory: 13140kb

input:

10000 0
5
2 4 5 3 1
3 3 3 3 3
39
3 5 24 31 18 26 12 18 16 27 1 2 20 20 4 34 4 20 14 38 2 34 13 10 25 31 23 20 2 31 30 35 22 31 6 36 29 21 22
22 4 30 11 35 14 11 10 14 21 18 10 10 22 10 10 18 29 9 4 4 9 10 10 21 36 35 13 16 34 16 18 29 31 34 10 29 9 20
42
12 13 22 25 13 11 11 3 11 13 19 41 3 20 38 11...

output:

1
16
6
12
23
24
3
4
6
3
21
5
15
3
7
7
2
10
6
8
1
2
5
3
15
2
9
3
1
19
3
15
9
1
7
1
2
2
1
6
1
9
1
2
3
8
4
11
3
12
10
14
1
2
1
2
5
14
3
4
1
24
9
3
4
9
5
5
13
1
9
3
1
1
7
1
11
9
14
3
4
6
3
6
1
5
5
1
14
8
4
5
13
4
21
4
1
18
1
1
7
1
21
29
2
12
6
4
2
1
1
1
7
4
1
1
25
2
3
3
4
4
23
2
8
1
1
14
5
3
3
10
7
2
5
...

result:

ok 10000 numbers

Test #4:

score: 23
Accepted
time: 21ms
memory: 13084kb

input:

10000 0
42
22 41 38 29 7 20 32 9 17 1 14 19 40 17 39 26 31 12 37 10 35 24 30 8 8 34 4 11 33 36 25 17 23 36 25 15 28 38 16 2 42 21
13 24 24 23 23 41 13 23 23 23 23 13 24 24 13 24 13 41 23 13 23 24 41 27 13 24 24 24 13 24 13 13 24 36 41 24 23 36 27 13 13 13
3
3 3 3
2 2 1
4
4 2 1 1
2 2 2 2
7
2 6 6 3 6 ...

output:

6
1
1
2
4
7
17
7
2
2
2
2
1
6
19
11
7
2
13
1
10
2
1
15
2
8
2
1
3
2
2
1
1
5
1
7
4
5
1
17
6
11
8
1
16
1
2
5
1
12
4
1
17
1
1
4
4
12
2
1
1
32
22
5
1
1
51
1
1
3
5
5
1
5
5
8
1
7
2
4
2
3
4
9
1
1
1
1
5
2
6
2
1
4
1
16
3
3
1
3
11
6
2
4
6
12
1
1
6
4
1
7
1
5
1
5
1
4
2
6
5
1
1
2
4
4
14
1
26
1
2
10
2
5
10
2
11
1
2...

result:

ok 10000 numbers

Test #5:

score: 0
Runtime Error

input:

1 0
200000
187537 18767 101813 163606 48410 170649 76822 130218 89330 118401 172319 59998 23511 38330 144493 25491 8802 151268 189229 12042 4447 90944 3117 74158 20010 127637 161507 144844 81563 30958 14332 56186 135755 152121 71529 70034 79871 110696 85775 153001 135318 169390 85445 93814 32413 848...

output:


result:


Subtask #3:

score: 0
Wrong Answer

Test #14:

score: 0
Wrong Answer
time: 3ms
memory: 13256kb

input:

719 1
8
1 1 2 1 5 1 5 1
2 5 6 1 4 4 8 7
5
5 5 5 5 5
1 4 1 2 5
8
5 2 4 7 8 6 1 3
4 4 4 4 4 4 4 4
7
4 5 5 4 4 5 5
1 7 5 3 6 2 4
5
1 4 4 5 2
1 4 2 1 3
2
1 2
2 1
8
6 8 6 2 8 4 5 6
3 4 7 4 8 8 8 4
8
2 7 2 7 2 2 2 2
3 4 1 3 8 5 7 4
8
3 3 2 8 5 6 4 4
4 7 7 4 7 7 8 7
5
2 4 4 4 4
5 2 3 1 4
6
1 1 1 1 1 1
6 5 ...

output:

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

result:

wrong answer 49th numbers differ - expected: '3', found: '2'

Subtask #4:

score: 0
Skipped

Dependency #3:

0%

Subtask #5:

score: 0
Wrong Answer

Test #40:

score: 0
Wrong Answer
time: 0ms
memory: 13084kb

input:

704 2
6
5 3 1 4 4 4
4 5 6 4 5 2
7
1 4 1 4 1 1 1
7 1 4 1 6 7 5
7
5 6 6 5 5 6 6
3 4 6 1 7 3 5
8
8 2 7 4 6 1 3 4
6 6 6 6 6 6 6 6
8
1 3 1 2 8 7 4 1
8 8 8 8 5 1 8 8
8
1 6 2 6 7 3 5 8
7 7 5 8 5 7 5 5
6
6 4 5 3 6 1
3 3 3 3 4 3
7
3 3 7 3 3 3 3
1 4 5 3 6 5 7
5
3 1 5 5 1
5 4 3 5 3
6
4 1 4 2 2 2
6 2 2 1 5 2
6
...

output:


result:

wrong answer Answer contains longer sequence [length = 704], but output contains 0 elements

Subtask #6:

score: 0
Skipped

Dependency #5:

0%