QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#441319 | #8578. 과일 게임 | GuanYunchang | 34 | 1799ms | 5116kb | C++23 | 1.7kb | 2024-06-14 14:26:43 | 2024-06-14 14:26:45 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
Subtask #1:
score: 5
Accepted
Test #1:
score: 5
Accepted
time: 1ms
memory: 3808kb
input:
10 2 2 1 2 2 2 2 1 2 2 10 1 0 2 1 0 9 1 0 5 1 2 4 1 0 9 1 2 7 1 3 7 1 7 9 1 1 3 1 0 2
output:
3 4 3 3 4 4 4 3 2 3
result:
ok 10 lines
Test #2:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
10 1 1 2 1 2 2 1 2 1 1 10 1 3 4 1 2 6 1 0 2 1 0 2 1 4 5 1 3 9 1 0 6 1 5 8 1 4 9 1 2 7
output:
2 3 3 3 3 3 3 2 3 3
result:
ok 10 lines
Test #3:
score: 0
Accepted
time: 0ms
memory: 4100kb
input:
10 1 2 1 2 2 2 2 1 2 2 10 1 0 2 1 1 2 1 0 1 1 1 1 1 8 9 1 3 5 1 4 7 1 1 9 1 3 6 1 6 7
output:
2 2 2 2 3 3 3 4 4 2
result:
ok 10 lines
Test #4:
score: 0
Accepted
time: 0ms
memory: 4064kb
input:
10 2 1 2 1 1 1 1 2 1 2 10 1 4 5 1 0 6 1 7 8 1 4 5 1 0 7 1 4 7 1 4 9 1 3 7 1 0 9 1 2 9
output:
2 3 2 2 4 3 3 3 4 4
result:
ok 10 lines
Test #5:
score: 0
Accepted
time: 0ms
memory: 4092kb
input:
10 1 1 1 1 1 1 1 1 1 1 10 2 2 1 2 7 1 2 5 1 2 6 1 2 8 1 1 4 6 2 6 1 2 1 1 1 1 4 2 5 1
output:
2 3
result:
ok 2 lines
Test #6:
score: 0
Accepted
time: 0ms
memory: 4108kb
input:
10 1 1 1 1 2 2 2 2 1 1 10 2 6 1 2 9 1 1 1 1 2 3 2 1 4 7 1 3 9 2 8 1 2 6 1 2 9 2 2 0 1
output:
1 3 3
result:
ok 3 lines
Test #7:
score: 0
Accepted
time: 0ms
memory: 3872kb
input:
8 8 8 9 7 7 7 7 9 10 1 1 7 1 1 4 1 0 4 1 0 7 1 2 5 1 0 6 1 3 6 1 1 5 1 3 4 1 0 7
output:
10 9 10 11 9 10 9 9 8 11
result:
ok 10 lines
Test #8:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
8 8 8 8 8 9 8 7 7 10 1 2 7 1 2 6 1 3 7 1 0 5 1 1 4 1 0 7 1 3 4 1 0 6 1 0 4 1 2 5
output:
10 10 10 10 10 11 9 10 10 10
result:
ok 10 lines
Test #9:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
5 2 1 1 3 4 5 1 0 4 2 2 3 1 2 4 2 1 2 1 0 2
output:
5 5 4
result:
ok 3 lines
Test #10:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
7 1 1 1 1 2 2 2 5 1 0 6 1 2 4 2 6 4 1 4 6 1 0 6
output:
4 3 4 5
result:
ok 4 lines
Test #11:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
10 6 5 3 1 6 7 7 2 5 3 10 1 0 5 1 5 7 2 9 7 2 6 5 1 8 9 1 0 8 2 8 9 2 9 7 2 8 6 2 8 9
output:
7 8 7 7
result:
ok 4 lines
Test #12:
score: 0
Accepted
time: 0ms
memory: 3892kb
input:
10 4 4 4 2 2 2 2 2 2 2 10 1 2 8 2 6 1 2 0 2 1 7 8 2 6 3 2 8 2 1 1 8 1 1 3 1 7 9 2 2 5
output:
5 3 5 5 3
result:
ok 5 lines
Test #13:
score: 0
Accepted
time: 0ms
memory: 3888kb
input:
8 10 7 7 6 6 7 8 8 10 1 0 7 2 5 6 2 3 7 2 1 6 1 2 4 2 6 6 2 2 6 2 7 9 2 4 7 1 0 7
output:
11 8 11
result:
ok 3 lines
Test #14:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
8 9 9 8 8 7 7 7 7 10 1 0 7 2 6 9 1 0 7 2 0 7 2 3 7 1 0 7 2 5 8 2 1 7 2 7 9 1 0 7
output:
11 10 10 11
result:
ok 4 lines
Test #15:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
10 1 7 3 2 10 10 2 8 1 8 10 1 0 3 2 0 6 2 3 3 1 1 7 2 4 3 2 1 2 1 5 6 2 9 10 1 5 9 2 1 4
output:
7 11 10 10
result:
ok 4 lines
Subtask #2:
score: 6
Accepted
Dependency #1:
100%
Accepted
Test #16:
score: 6
Accepted
time: 22ms
memory: 4032kb
input:
600 1 1 2 2 1 2 1 2 1 1 1 1 2 2 1 2 1 2 1 1 2 1 2 2 2 2 2 2 1 1 2 2 1 1 2 1 2 1 2 2 1 1 2 2 1 2 2 1 1 2 1 1 1 2 2 1 2 1 2 2 2 2 1 2 1 1 1 1 2 1 2 1 2 2 2 1 1 2 2 1 1 1 2 2 2 2 1 2 1 1 1 1 1 1 1 1 2 1 1 1 2 1 1 2 2 2 1 2 1 2 2 1 2 1 2 1 1 1 2 1 2 1 2 1 2 1 1 2 2 1 1 1 1 1 2 2 1 1 2 2 2 1 2 1 1 2 2 2 ...
output:
5 5 5 5 5 5 5 5 5 5 5 4 5 5 5 5 5 5 5 5 5 5 5 5 5 4 5 5 5 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 4 5 5 5 5 5 5 5 5 5 5 5 4 5 5 4 5 5 5 5 5 5 5 5 5 5 5 3 5 5 5 5 5 5 4 4 5 2 5 5 5 5 5 4 5 5 5 3 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 ...
result:
ok 600 lines
Test #17:
score: 0
Accepted
time: 21ms
memory: 3948kb
input:
600 2 2 1 2 2 1 2 2 2 2 1 1 2 1 2 1 1 2 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8 8 6 7 4 7 7 5 7 7 6 7 6 7 7 7 7 7 7 6 7 7 7 7 7 7 6 7 7 6 7 7 7 7 6 7 7 5 7 4 7 7 7 6 6 7 4 7 7 6 ...
result:
ok 308 lines
Test #22:
score: 0
Accepted
time: 26ms
memory: 3948kb
input:
600 2 1 1 2 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 4 2 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 4 4 2 1 1 2 1 1 3 2 2 4 1 1 1 1 3 1 1 2 2 1 1 1 1 1 1 2 1 1 4 3 3 4 4 3 1 1 ...
output:
10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 ...
result:
ok 600 lines
Test #23:
score: 0
Accepted
time: 26ms
memory: 3964kb
input:
600 4 3 3 1 1 1 1 1 1 1 1 2 2 1 1 2 2 2 2 1 1 4 2 1 1 1 1 2 1 1 1 1 3 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 2 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 2 2 1 1 2 6 6 7 6 5 3 3 4 1 1 2 1 1 2 1 1 1 1 1 1 1 1 3 2 2 1 1 1 1 3 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 2 1 1 1 1 2 1 1 1 1 1 1 1 1 5 ...
output:
10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 ...
result:
ok 600 lines
Test #24:
score: 0
Accepted
time: 12ms
memory: 4028kb
input:
600 7 10 5 5 9 6 10 3 2 2 10 8 10 2 8 10 4 2 2 4 5 6 3 9 6 4 4 1 4 7 6 1 8 6 7 1 1 7 9 3 7 6 6 8 9 5 9 6 10 10 10 5 9 3 2 2 5 7 5 9 4 10 5 9 2 5 10 10 7 4 10 6 10 2 9 6 7 4 6 4 9 4 8 10 5 1 7 8 7 1 1 6 7 5 6 10 9 9 10 10 9 5 10 4 7 8 4 9 9 5 1 9 5 4 7 8 4 10 10 4 8 9 9 9 5 8 7 9 8 7 4 4 9 4 7 5 1 4 ...
output:
12 11 10 11 11 12 12 11 12 8 12 10 11 10 11 11 9 11 11 11 11 10 11 11 12 10 10 10 11 11 10 11 11 11 12 10 12 11 12 11 10 11 12 11 11 11 12 12 10 12 11 12 12 10 11 11 10 11 10 11 11 10 10 10 11 10 11 11 10 12 12 11 10 10 11 12 11 10 12 12 11 11 11 11 12 10 11 12 12 11 12 10 10 10 11 11 11 10 7 11 11 ...
result:
ok 296 lines
Test #25:
score: 0
Accepted
time: 13ms
memory: 3892kb
input:
600 3 3 3 2 2 2 2 3 3 3 1 1 1 1 3 3 2 2 2 3 3 3 3 1 1 1 3 3 2 2 2 1 1 1 1 1 3 3 3 3 3 1 1 1 1 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 3 3 3 3 2 2 2 1 1 1 2 2 2 3 3 3 3 3 3 3 1 1 1 3 3 3 3 3 3 3 3 2 2 2 2 1 1 1 2 2 1 1 2 2 2 1 1 1 2 2 2 3 3 3 1 1 1 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 2 2 ...
output:
7 7 7 5 8 7 5 7 8 7 7 7 7 7 7 7 6 7 7 7 7 7 7 6 6 6 7 7 7 7 7 7 7 5 7 7 7 6 7 7 7 6 6 7 6 7 7 7 7 7 7 7 7 7 7 4 7 6 7 6 7 7 7 7 6 7 7 7 7 7 6 7 6 7 6 6 7 7 6 7 7 6 7 6 6 7 6 7 7 7 7 7 7 7 7 7 5 6 7 7 7 6 6 7 7 7 7 7 7 7 5 7 6 7 6 6 7 7 6 7 6 6 6 7 6 6 6 7 7 7 6 6 6 7 6 5 6 7 5 7 6 6 6 6 7 7 6 5 7 7 ...
result:
ok 314 lines
Test #26:
score: 0
Accepted
time: 13ms
memory: 3932kb
input:
600 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 7 7 7 7 7 7 7 7 7 7 5 5 5 5 5 5 5 5 5 5 5 5 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 4 4 4 4 4 3 3 3 3 3 3 3 3 3 5 5 5 5 5 5 5 2 2 2 2 1 1 1 1 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 2 2 2 2 2 1 1 1 1 1 1 ...
output:
11 7 10 11 10 12 10 12 11 10 10 11 9 12 10 7 12 10 10 12 10 10 6 12 8 10 8 8 10 10 10 12 10 10 12 10 10 8 10 12 12 12 8 10 10 10 10 10 11 10 10 9 10 11 10 9 11 11 8 11 10 10 11 11 7 11 11 11 10 11 10 9 11 11 10 10 10 11 11 7 9 9 11 11 11 9 9 11 10 9 11 11 8 11 11 11 8 9 9 11 11 11 11 3 9 11 10 9 11 ...
result:
ok 327 lines
Test #27:
score: 0
Accepted
time: 12ms
memory: 3952kb
input:
600 5 5 5 5 5 5 5 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 1 1 1 1 1 1 1 1 1 1 1 1 4 4 4 4 4 4 4 4 4 4 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 4 4 4 4 4 4 4 4 4 4 4 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 ...
output:
8 7 7 9 11 11 10 11 10 11 10 10 11 11 11 10 8 11 10 10 10 10 10 8 9 10 5 11 7 11 11 11 11 11 10 11 9 11 10 11 11 10 10 11 7 11 8 9 9 11 11 11 11 9 11 10 9 8 11 9 3 10 11 11 10 11 11 6 10 9 8 10 10 10 10 10 9 7 9 10 10 10 9 6 9 8 10 10 8 10 10 7 10 9 10 10 8 9 10 10 9 8 10 10 8 9 10 10 9 10 10 9 10 1...
result:
ok 304 lines
Test #28:
score: 0
Accepted
time: 11ms
memory: 3896kb
input:
600 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 3 3 3 ...
output:
9 10 9 8 9 10 9 9 8 10 9 9 10 9 9 10 10 8 10 9 9 10 10 9 10 8 8 8 7 5 9 10 5 10 10 7 9 8 8 9 9 10 9 9 9 8 8 8 9 9 8 9 10 9 10 9 8 3 9 8 8 8 9 10 8 9 9 9 8 7 8 9 9 9 9 5 9 9 8 8 6 9 5 9 8 7 9 9 8 7 9 8 9 7 8 9 9 5 9 9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 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 4 3 3 3 2 1 1 1 1 1 1 ...
output:
11 9 9 9 9 9 9 9 9 9 9 9 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7...
result:
ok 364 lines
Subtask #3:
score: 8
Accepted
Test #31:
score: 8
Accepted
time: 616ms
memory: 4904kb
input:
4000 1 1 1 1 1 1 1 1 2 2 2 2 1 1 1 1 2 2 2 2 1 1 1 1 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 2 2 2 2 1 1 1 1 2 2 2 2...
output:
11 12 12 11 10 11 10 11 12 10 9 10 9 9 9 12 11 10 11 9 12 8 9 10 11 12 10 12 10 8 9 10 10 11 10 11 11 11 9 8 5 10 9 9 10 7 10 10 8 9 9 10 10 10 9 10 10 10 6 6 10 9 10 10 8 9 8 9 10 10 9 10 10 9 8 9 9 10 10 9 9 9 8 9 9 8 7 8 10 10 8 8 10 10 8 10 9 6 7 9 9 9 9 7 9 9 9 9 9 9 9 8 9 9 9 9 8 8 8 9 9 8 9 9...
result:
ok 1999 lines
Test #32:
score: 0
Accepted
time: 633ms
memory: 4820kb
input:
4000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 1 1 1 1 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 1 1 1 1 2 2 2 2 1 1 1 1 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 1 1 1 1 2 2 2 2 1 1 1 1 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 1 1 1 1 2 2 2 2 1 1 1 1...
output:
6 12 11 8 10 11 11 11 11 11 12 7 11 11 11 11 10 11 11 10 11 9 10 11 11 11 9 11 11 10 10 10 11 6 11 11 11 11 10 9 11 9 10 10 10 10 9 8 10 9 7 10 10 8 9 9 9 10 10 9 9 10 9 10 5 5 7 10 10 9 10 10 9 6 9 4 9 8 10 9 10 10 9 9 10 9 10 8 9 10 5 9 10 8 7 7 8 8 8 9 9 9 9 9 9 9 9 8 9 9 8 8 8 9 9 9 8 8 4 9 8 7 ...
result:
ok 2018 lines
Test #33:
score: 0
Accepted
time: 579ms
memory: 4856kb
input:
4000 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1...
output:
10 10 9 8 10 9 10 9 6 9 10 9 9 9 9 9 9 10 10 7 9 9 9 9 9 9 9 9 10 9 6 8 4 9 9 8 9 9 9 9 9 9 9 9 9 7 9 9 10 8 9 9 9 10 8 8 10 9 9 9 9 8 7 10 9 9 10 8 9 7 8 9 8 9 9 10 10 9 9 9 9 9 9 8 9 9 9 9 9 10 9 9 9 8 8 10 10 7 9 10 9 9 10 4 4 9 9 10 10 7 9 7 10 8 8 9 10 9 9 10 10 10 4 9 8 9 8 9 8 8 9 8 9 9 9 9 9...
result:
ok 1950 lines
Test #34:
score: 0
Accepted
time: 584ms
memory: 4816kb
input:
4000 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 1...
output:
9 10 10 9 8 10 9 9 10 9 7 10 8 9 9 10 7 10 9 10 9 10 10 10 9 10 10 9 9 9 10 7 9 9 8 8 7 8 8 8 10 7 10 10 10 10 9 10 9 9 9 9 8 10 8 9 8 10 9 9 8 10 9 10 10 10 9 9 10 9 10 8 9 10 7 9 9 10 10 10 10 10 2 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 6 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 8 9 8 9 8 9 9 9 9 8 9 9 8 9 9 9 9 ...
result:
ok 1991 lines
Test #35:
score: 0
Accepted
time: 581ms
memory: 4824kb
input:
4000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
11 12 12 11 9 11 11 9 10 11 9 7 8 11 11 11 11 11 10 11 10 11 10 11 11 10 10 6 10 10 9 9 10 11 10 7 9 10 9 9 8 10 10 8 10 10 10 6 10 9 10 10 9 10 7 10 10 10 11 10 10 9 9 11 8 11 10 10 10 9 8 8 11 11 10 10 9 10 9 11 9 10 11 11 11 6 11 9 9 9 10 8 10 11 10 11 10 10 10 9 9 8 9 10 10 7 10 9 9 10 8 7 9 10 ...
result:
ok 2012 lines
Test #36:
score: 0
Accepted
time: 597ms
memory: 4796kb
input:
4000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
11 11 9 11 10 11 11 8 10 10 10 11 8 11 10 11 10 10 10 9 11 10 10 10 10 10 9 9 10 10 10 10 10 10 10 8 10 10 10 10 10 10 10 10 10 10 9 10 10 9 10 7 10 10 9 10 10 9 10 10 9 8 4 10 10 9 10 10 9 9 9 9 7 9 9 9 8 10 9 9 10 7 10 9 10 9 9 9 6 9 10 10 10 9 10 10 9 7 9 9 9 9 9 10 9 8 8 9 9 9 9 8 9 8 9 9 9 9 9 ...
result:
ok 1988 lines
Test #37:
score: 0
Accepted
time: 587ms
memory: 5060kb
input:
4000 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2...
output:
12 11 12 10 11 12 12 12 12 12 10 11 9 10 9 8 12 12 11 9 8 9 11 11 11 10 11 10 9 9 10 11 10 5 8 9 10 10 10 9 9 10 9 9 10 10 10 10 8 9 9 10 10 10 10 9 9 9 10 5 9 10 10 9 9 9 7 9 10 9 8 9 9 9 10 10 8 7 9 9 9 9 7 9 9 9 8 9 9 10 9 10 10 10 10 9 9 9 9 9 9 10 9 9 9 10 10 9 8 9 9 10 10 10 9 10 10 9 9 8 10 1...
result:
ok 2011 lines
Test #38:
score: 0
Accepted
time: 603ms
memory: 4856kb
input:
4000 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2...
output:
11 7 12 11 9 11 10 11 11 11 9 9 11 11 8 10 11 11 8 12 9 11 11 10 11 8 10 9 10 10 9 11 10 10 9 11 9 11 11 11 10 11 11 10 10 10 11 11 11 8 10 10 10 10 10 3 7 10 10 7 10 10 7 10 9 7 10 10 10 10 8 10 10 10 8 10 9 9 9 9 9 9 9 4 8 8 9 9 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 7 5 9 9 6 9 9 9 9 9 9 9 9 9 9...
result:
ok 2010 lines
Test #39:
score: 0
Accepted
time: 602ms
memory: 4888kb
input:
4000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
7 11 12 12 8 12 11 10 11 12 10 10 10 11 11 11 10 9 10 12 12 12 12 11 11 11 12 9 12 11 11 10 10 11 10 8 10 11 7 10 11 10 11 10 11 11 6 11 10 9 9 12 11 10 12 10 11 11 11 5 11 9 12 12 11 8 12 8 10 10 12 11 12 12 12 11 10 11 10 10 9 9 11 9 12 9 11 12 8 11 10 9 12 12 12 11 11 11 11 11 9 12 6 10 9 12 10 1...
result:
ok 1978 lines
Subtask #4:
score: 15
Accepted
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Test #40:
score: 15
Accepted
time: 1787ms
memory: 5108kb
input:
4000 4 3 3 4 4 5 3 3 1 1 2 3 6 5 4 4 7 1 1 1 1 1 1 1 1 2 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 2 2 4 3 3 3 2 2 2 2 2 2 6 5 4 4 3 3 4 5 5 4 3 3 4 4 5 6 7 7 6 6 6 5 5 7 5 5 5 3 3 4 7 3 3 4 3 3 4 5 1 1 2 2 1 1 3 1 1 2 2 2 1 1 1 1 3 2 2 4 3 1 1 2 5 4 4 2 2 3 3 3 1 1 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 ...
result:
ok 4000 lines
Test #41:
score: 0
Accepted
time: 1799ms
memory: 5116kb
input:
4000 1 1 2 1 1 1 1 1 1 1 1 1 1 2 2 2 3 1 1 1 1 1 1 1 1 1 1 2 3 3 3 3 3 2 2 1 1 1 1 5 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 2 2 1 1 1 1 1 1 1 1 3 3 2 1 1 2 1 1 4 3 3 5 3 2 2 3 2 2 1 1 1 1 1 1 2 2 2 3 6 6 5 3 2 2 1 1 2 2 2 6 5 4 4 6 2 2 2 2 3 3 4 4 6 7 8 6 6 5 5 6 6 6 7 3 3 4 5 5 5 1 1 2 3 1 1 1 1 2 1 1 5...
output:
14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 ...
result:
ok 4000 lines
Test #42:
score: 0
Accepted
time: 680ms
memory: 4768kb
input:
4000 7 9 2 5 4 9 6 9 8 3 6 6 2 5 7 1 10 4 5 7 7 10 3 8 6 6 2 5 8 3 10 3 2 8 9 7 9 2 10 3 10 7 8 9 9 10 1 5 10 8 10 10 9 6 2 5 9 1 1 4 5 3 9 2 9 2 4 8 6 6 2 8 4 4 5 4 3 2 5 10 2 7 3 4 7 7 10 5 2 9 9 9 9 6 4 8 5 9 10 3 7 2 3 4 10 10 3 9 9 9 5 5 1 2 10 2 6 9 7 10 1 4 2 10 8 7 7 3 6 4 10 4 3 5 6 1 8 2 3...
output:
11 11 11 11 11 11 11 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 10 11 11 10 11 11 11 11 11 11 11 11 11 9 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 10 11 11 1...
result:
ok 1983 lines
Test #43:
score: 0
Accepted
time: 696ms
memory: 5108kb
input:
4000 3 3 3 3 1 1 1 1 2 2 2 2 2 2 2 2 3 3 3 3 2 2 2 2 1 1 1 1 1 1 1 1 3 3 3 3 1 1 1 1 3 3 3 3 3 3 3 3 1 1 1 1 2 2 2 2 1 1 1 1 2 2 2 2 1 1 1 1 3 3 3 3 2 2 2 2 3 3 3 3 2 2 2 2 1 1 1 1 1 1 1 1 2 2 2 2 3 3 3 3 2 2 2 2 1 1 1 1 3 3 3 3 1 1 1 1 3 3 3 3 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 1 1 1 1...
output:
12 8 9 12 12 11 12 12 10 7 12 12 11 11 11 11 12 11 11 11 11 11 10 10 11 11 9 10 9 10 10 11 10 10 10 10 10 10 9 10 10 10 10 10 10 10 10 10 8 9 10 10 10 7 10 10 10 10 8 8 10 9 7 10 9 10 10 8 10 10 10 9 9 10 9 9 10 10 9 10 9 9 10 10 9 10 8 5 10 8 9 9 9 10 10 8 9 10 9 8 10 9 10 9 10 10 9 10 9 10 10 8 10...
result:
ok 1985 lines
Test #44:
score: 0
Accepted
time: 703ms
memory: 4824kb
input:
4000 1 1 1 1 3 3 3 3 1 1 1 1 3 3 3 3 3 3 3 3 2 2 2 2 3 3 3 3 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 3 3 3 3 1 1 1 1 2 2 2 2 3 3 3 3 1 1 1 1 2 2 2 2 2 2 2 2 1 1 1 1 3 3 3 3 2 2 2 2 3 3 3 3 3 3 3 3 1 1 1 1...
output:
12 11 13 13 10 12 12 12 9 10 12 12 11 11 11 10 10 12 12 10 9 12 10 11 10 12 12 12 10 10 10 10 10 10 11 8 7 11 10 9 10 10 9 9 6 10 10 10 10 9 8 10 8 10 10 9 10 10 9 9 8 10 10 10 10 6 9 10 10 10 10 10 10 8 10 9 9 10 8 10 9 9 7 9 9 9 9 9 9 9 7 9 9 9 9 9 9 8 9 8 9 9 9 9 9 7 9 9 9 8 7 9 9 9 9 9 9 9 7 5 9...
result:
ok 1991 lines
Test #45:
score: 0
Accepted
time: 662ms
memory: 4852kb
input:
4000 5 5 5 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 5 5 5 5 5 5 5 5 5 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 2 2 5 5 5 5 5 5...
output:
10 11 10 11 11 10 11 11 10 11 10 11 10 11 11 11 11 11 11 11 11 11 11 11 11 10 10 11 12 11 9 11 9 10 11 11 10 9 10 10 10 10 11 11 10 11 10 10 11 11 10 11 10 11 11 11 11 11 11 11 10 11 11 11 10 11 11 11 11 8 11 11 11 10 11 11 11 11 11 11 10 11 11 10 10 10 10 11 11 11 10 11 10 10 10 11 10 9 11 11 11 11...
result:
ok 2038 lines
Test #46:
score: 0
Accepted
time: 645ms
memory: 4832kb
input:
4000 3 3 3 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5...
output:
10 10 10 10 10 9 10 10 10 10 10 10 10 10 10 10 10 10 10 9 10 9 10 10 10 10 10 10 10 10 9 10 10 8 10 10 10 10 10 10 10 10 10 10 10 10 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 9 10 10 10 8 10 10 10 10 10 9 10 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 9 10 10 10 10 10 10 10 10 9 8 9 ...
result:
ok 1956 lines
Test #47:
score: 0
Accepted
time: 619ms
memory: 4816kb
input:
4000 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
14 13 13 9 13 14 13 13 13 13 13 10 13 12 13 13 13 13 13 13 13 13 13 13 13 13 14 13 13 13 13 13 13 13 9 13 13 11 13 6 13 13 13 13 13 13 12 13 13 13 11 13 12 13 12 13 9 13 13 13 14 13 13 13 13 13 13 12 12 13 12 13 13 12 13 13 13 13 13 13 13 13 13 11 9 13 13 13 10 12 13 12 13 13 13 13 12 13 12 13 12 13...
result:
ok 1985 lines
Test #48:
score: 0
Accepted
time: 610ms
memory: 4808kb
input:
4000 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6...
output:
13 14 14 13 14 10 13 14 14 10 14 8 14 12 13 10 14 14 13 14 14 14 11 13 12 12 14 13 13 13 13 13 13 13 14 14 13 13 14 12 13 13 14 11 13 13 12 12 14 13 14 13 13 11 13 13 13 14 13 13 13 13 13 11 10 13 13 12 13 12 13 13 13 11 13 13 12 13 13 12 13 13 13 12 13 13 13 13 12 13 11 13 13 13 13 13 13 12 10 13 5...
result:
ok 1971 lines
Test #49:
score: 0
Accepted
time: 609ms
memory: 4900kb
input:
4000 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3...
output:
18 17 17 15 18 17 18 15 15 17 17 17 14 17 17 15 15 17 17 17 13 13 16 17 10 10 14 13 17 17 14 14 17 17 14 17 17 9 14 10 17 14 14 17 17 17 17 14 16 13 17 11 11 10 14 17 17 17 13 17 17 14 14 14 11 11 17 13 17 17 17 14 17 16 14 17 14 16 14 13 16 14 14 14 13 16 14 15 13 14 15 13 15 13 14 14 14 14 14 11 1...
result:
ok 2013 lines
Test #50:
score: 0
Accepted
time: 620ms
memory: 5112kb
input:
4000 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4...
output:
18 17 18 17 15 14 16 17 18 11 18 18 15 18 10 13 14 15 17 15 12 16 17 15 10 17 17 15 16 16 17 17 16 17 16 14 15 16 16 16 14 15 16 15 15 13 16 15 15 15 16 16 13 15 15 16 14 16 9 15 11 16 14 16 15 15 15 9 16 15 5 14 16 15 8 16 15 15 15 16 15 16 16 15 15 11 15 15 15 15 15 15 15 14 15 15 15 15 15 15 14 1...
result:
ok 2066 lines
Test #51:
score: 0
Accepted
time: 523ms
memory: 4816kb
input:
4000 6 4 4 1 1 2 3 4 4 3 3 3 3 4 3 3 1 1 1 1 3 5 4 4 4 4 5 5 4 3 2 2 5 3 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 3 1 1 1 1 1 1 1 1 4 3 1 1 1 1 2 2 1 1 2 3 1 1 1 1 6 4 2 2 1 1 2 4 4 5 5 5 4 4 1 1 2 3 4 4 3 2 2 5 5 6 5 4 4 3 3 2 1 1 3 5 3 2 2 2 2 3 5 1 1...
output:
15 13 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 11 11 11 11 11 11 11 11 11 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 ...
result:
ok 1231 lines
Test #52:
score: 0
Accepted
time: 590ms
memory: 4904kb
input:
4000 3 3 4 3 3 3 2 2 4 4 4 2 2 3 5 4 4 3 3 4 4 2 2 1 1 1 1 6 5 4 4 6 6 8 7 7 4 3 3 3 2 2 1 1 1 1 1 1 1 1 5 3 2 2 4 3 3 4 4 3 3 3 3 4 4 3 3 1 1 1 1 3 2 2 1 1 1 1 2 2 2 2 2 2 2 1 1 4 2 1 1 2 2 3 3 2 2 1 1 1 1 4 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 4 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 4...
output:
15 14 14 14 14 14 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 ...
result:
ok 1419 lines
Subtask #5:
score: 0
Time Limit Exceeded
Dependency #3:
100%
Accepted
Test #53:
score: 0
Time Limit Exceeded
input:
100000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
Unauthorized output
result:
Subtask #6:
score: 0
Time Limit Exceeded
Test #69:
score: 0
Time Limit Exceeded
input:
100000 2 10 6 3 5 4 2 6 9 3 8 3 9 6 9 8 8 9 4 6 5 10 7 1 2 5 5 2 7 3 5 10 5 6 7 5 9 10 6 10 7 3 2 1 7 8 4 4 3 10 1 6 9 9 6 9 6 1 6 4 8 5 5 6 8 3 3 7 6 6 3 5 5 9 5 5 7 10 7 3 10 1 4 2 3 6 9 2 7 2 8 10 4 5 2 6 7 1 8 2 8 3 3 10 9 8 6 6 9 6 4 5 8 4 10 10 4 1 6 4 4 3 9 4 7 7 2 8 8 7 10 6 8 2 1 4 2 2 5 2 ...
output:
Unauthorized output
result:
Subtask #7:
score: 0
Skipped
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
100%
Accepted
Dependency #5:
0%