QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#673329 | #222. Poddrzewo [A] | yellowbird | 10 ✓ | 194ms | 7600kb | C++20 | 1.3kb | 2024-10-24 21:45:36 | 2024-10-24 21:45:36 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Subtask #1:
score: 1
Accepted
Test #1:
score: 1
Accepted
time: 7ms
memory: 7504kb
input:
2 1 1
output:
0 2 1 2
result:
ok good solution
Test #2:
score: 1
Accepted
time: 3ms
memory: 7524kb
input:
3 1 1 2
output:
0 2 1 2
result:
ok good solution
Subtask #2:
score: 1
Accepted
Test #3:
score: 1
Accepted
time: 7ms
memory: 7468kb
input:
6 2 2 2 1 1 2
output:
0 2 1 2
result:
ok good solution
Test #4:
score: 1
Accepted
time: 4ms
memory: 7444kb
input:
6 1 1 1 2 2 3
output:
0 2 1 2
result:
ok good solution
Test #5:
score: 1
Accepted
time: 3ms
memory: 7540kb
input:
6 2 1 2 3 1 1
output:
0 2 1 2
result:
ok good solution
Test #6:
score: 1
Accepted
time: 7ms
memory: 7440kb
input:
6 1 1 3 2 2 1
output:
0 2 1 2
result:
ok good solution
Test #7:
score: 1
Accepted
time: 3ms
memory: 7532kb
input:
6 2 2 1 3 1 1
output:
0 2 1 2
result:
ok good solution
Test #8:
score: 1
Accepted
time: 3ms
memory: 7512kb
input:
6 1 1 3 1 2 2
output:
0 2 1 2
result:
ok good solution
Subtask #3:
score: 1
Accepted
Test #9:
score: 1
Accepted
time: 7ms
memory: 7468kb
input:
1000 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
0 2 1 2
result:
ok good solution
Test #10:
score: 1
Accepted
time: 7ms
memory: 7596kb
input:
989 2 1 3 2 1 1 1 2 2 1 3 2 2 3 2 3 2 3 2 2 2 2 2 1 2 3 3 2 3 1 2 2 2 1 3 2 2 3 3 2 2 1 2 1 2 2 2 2 1 3 2 1 3 2 2 2 1 2 3 1 3 2 2 3 1 3 2 3 2 2 2 1 3 1 2 3 3 2 3 3 2 3 1 1 2 1 2 3 3 2 2 2 3 2 2 1 1 2 2 2 2 2 2 1 2 3 3 2 1 3 2 2 2 2 3 2 2 2 1 2 1 3 3 3 2 1 2 2 2 2 1 3 2 2 3 2 2 3 2 3 3 1 3 2 2 3 2 2 ...
output:
0 2 1 2
result:
ok good solution
Test #11:
score: 1
Accepted
time: 7ms
memory: 7464kb
input:
997 1 3 1 3 3 2 2 2 1 1 1 2 3 3 1 2 1 2 2 1 2 3 2 3 2 1 3 2 1 2 1 2 2 1 1 2 1 3 1 1 2 3 1 2 2 2 3 1 1 2 2 1 2 2 2 2 2 1 3 3 1 3 2 1 2 2 2 2 2 1 1 2 2 3 3 2 3 1 2 1 3 1 3 3 3 1 2 2 3 2 2 1 3 3 3 1 1 3 2 3 2 3 2 2 1 1 2 2 1 1 2 1 2 3 2 2 1 2 1 2 1 2 2 2 3 2 3 3 2 2 2 3 2 1 3 2 3 2 2 1 2 2 3 3 3 2 2 2 ...
output:
0 2 1 2
result:
ok good solution
Test #12:
score: 1
Accepted
time: 7ms
memory: 7440kb
input:
874 1 1 2 3 2 3 2 1 1 1 2 2 2 1 1 1 1 2 1 1 4 2 2 2 2 2 1 3 2 2 2 3 2 1 1 1 1 2 1 1 3 2 1 2 2 3 2 1 3 2 2 2 3 1 2 3 2 2 1 3 2 2 1 2 1 2 2 3 3 3 2 3 1 3 2 2 3 1 3 3 1 2 2 3 2 2 3 1 2 2 2 1 2 1 3 2 2 3 1 2 1 3 1 1 3 2 3 2 2 2 2 3 3 2 3 3 2 1 2 1 3 2 3 1 1 2 1 3 1 2 2 3 1 3 2 2 1 3 4 2 1 2 3 2 2 2 2 1 ...
output:
0 2 1 2
result:
ok good solution
Test #13:
score: 1
Accepted
time: 7ms
memory: 7512kb
input:
999 3 3 1 2 3 3 3 3 1 3 2 2 4 1 1 2 1 4 1 2 2 1 2 2 1 1 1 3 1 2 1 1 2 2 1 2 1 2 1 1 2 1 3 1 2 2 1 1 1 1 1 3 4 2 1 2 3 3 1 3 3 5 4 1 2 2 1 2 2 2 3 2 1 2 1 3 1 2 2 2 1 1 2 1 2 2 1 4 1 1 1 1 1 3 2 1 3 1 3 4 1 4 2 3 1 1 4 1 1 3 2 2 2 1 2 3 1 5 1 2 5 4 1 3 2 2 2 1 2 1 4 1 2 2 3 1 1 2 1 4 2 3 3 3 1 1 2 1 ...
output:
0 2 1 2
result:
ok good solution
Test #14:
score: 1
Accepted
time: 7ms
memory: 7596kb
input:
987 1 1 1 3 3 3 3 2 2 2 1 1 1 1 3 3 2 4 2 1 3 3 2 2 2 2 2 3 3 2 3 1 4 4 3 2 4 1 1 1 2 2 3 2 2 3 2 2 2 3 2 1 4 4 3 2 2 2 2 3 1 2 3 3 2 1 1 1 2 2 3 1 3 2 2 1 1 2 2 2 1 2 3 2 2 2 2 4 3 1 2 2 4 2 5 2 2 4 1 2 3 3 2 2 1 2 2 1 1 1 3 2 2 2 1 2 1 1 2 2 1 2 3 2 3 2 2 2 3 2 2 1 1 2 2 3 2 1 2 1 3 1 1 2 2 2 1 3 ...
output:
0 2 1 2
result:
ok good solution
Test #15:
score: 1
Accepted
time: 7ms
memory: 7596kb
input:
1000 1 1 1 1 1 1 3 1 1 1 1 1 1 1 2 1 3 4 1 2 2 1 1 1 2 1 2 1 1 2 3 1 2 1 1 1 3 1 1 1 2 2 1 1 1 5 1 2 1 1 1 1 1 3 1 1 6 1 1 2 2 1 5 2 5 1 1 1 2 2 2 2 5 2 1 1 1 3 1 2 1 1 4 4 4 1 1 3 1 1 1 1 3 7 2 2 3 1 1 3 8 2 1 1 1 2 2 1 3 2 6 3 1 1 1 6 1 2 1 1 3 1 2 1 3 1 2 3 2 6 1 1 1 1 3 3 3 3 1 1 2 2 1 4 4 2 1 2...
output:
0 2 1 2
result:
ok good solution
Test #16:
score: 1
Accepted
time: 3ms
memory: 7592kb
input:
1000 1 7 2 2 2 1 1 3 1 1 4 2 6 6 5 4 2 2 1 3 3 6 2 1 1 3 2 2 3 2 1 1 4 4 1 1 4 1 3 1 1 2 4 1 1 3 4 2 1 1 1 1 4 1 2 2 3 1 2 8 5 2 8 1 1 5 1 5 1 1 1 1 5 1 1 1 2 1 1 1 1 1 1 1 2 1 1 2 1 5 3 4 1 2 1 1 2 1 1 4 1 2 2 1 1 2 2 1 2 4 2 2 3 1 6 2 2 3 1 2 4 2 5 1 3 1 2 1 10 1 6 4 1 1 1 2 1 2 2 1 4 1 2 3 3 2 1 ...
output:
0 2 1 2
result:
ok good solution
Test #17:
score: 1
Accepted
time: 7ms
memory: 7508kb
input:
993 4 2 4 2 2 1 2 2 1 7 1 2 2 1 1 5 1 1 1 1 1 7 1 2 1 1 1 2 3 1 1 2 1 1 5 1 1 1 1 5 3 1 6 5 5 3 3 1 1 2 1 2 2 1 1 2 1 1 4 1 5 1 1 1 1 1 2 2 2 1 1 1 1 1 2 4 1 2 1 2 1 3 4 3 2 3 3 1 5 1 1 3 4 2 1 2 2 4 1 3 3 1 2 2 1 1 1 3 1 1 1 1 1 1 2 2 1 1 1 2 2 3 5 3 5 1 1 7 1 1 2 3 2 3 1 2 9 1 1 1 2 2 4 1 2 2 6 1 ...
output:
0 2 1 2
result:
ok good solution
Subtask #4:
score: 1
Accepted
Test #18:
score: 1
Accepted
time: 27ms
memory: 7596kb
input:
297000 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
0 2 1 2
result:
ok good solution
Test #19:
score: 1
Accepted
time: 25ms
memory: 7444kb
input:
245784 1 2 2 3 2 2 3 2 3 2 2 2 3 2 3 3 2 3 1 2 2 2 1 3 2 2 2 3 2 2 2 3 2 1 2 2 2 2 2 2 2 2 3 2 2 1 2 2 1 1 1 2 2 2 2 1 1 1 1 2 3 3 2 2 1 2 2 1 1 3 2 2 2 1 2 2 1 2 2 3 3 2 2 2 3 3 2 1 2 3 2 1 1 3 1 1 2 1 1 2 3 2 2 1 2 2 2 2 1 2 1 1 3 2 2 1 3 2 3 1 1 2 1 3 1 2 1 3 3 2 2 1 2 1 3 3 1 2 2 2 3 3 3 2 2 3 2...
output:
0 2 1 2
result:
ok good solution
Test #20:
score: 1
Accepted
time: 29ms
memory: 7600kb
input:
293472 1 2 2 3 1 1 2 1 2 2 2 3 1 2 3 3 2 2 1 3 3 1 1 1 1 2 1 3 1 2 2 1 2 3 1 1 1 1 3 2 2 2 1 2 1 2 1 1 3 1 2 2 3 2 2 2 1 2 3 3 2 1 1 2 1 3 2 2 2 3 2 2 3 1 2 1 3 3 3 2 1 2 3 2 1 2 2 2 3 3 3 3 2 3 3 2 1 1 2 2 2 2 3 3 2 3 3 2 2 2 3 1 2 1 2 2 2 3 2 3 2 2 2 2 3 1 2 2 2 3 2 3 3 2 1 3 3 2 3 2 3 2 3 1 1 3 3...
output:
0 2 1 2
result:
ok good solution
Test #21:
score: 1
Accepted
time: 30ms
memory: 7520kb
input:
300000 4 1 1 1 1 1 2 2 1 1 1 1 2 3 2 1 3 2 1 2 1 3 2 2 2 1 2 3 2 3 2 3 3 4 2 2 1 2 1 1 1 2 2 1 1 2 2 2 3 2 2 3 4 1 2 2 1 3 1 2 1 2 2 2 1 2 2 2 2 3 2 2 1 1 4 1 1 1 2 3 2 3 1 2 3 1 3 3 3 2 1 2 3 4 2 1 2 3 1 2 3 2 2 2 3 1 2 1 2 1 2 3 2 3 2 2 2 1 2 1 3 1 1 2 2 3 1 2 3 3 2 1 1 2 1 3 3 2 3 2 3 3 3 3 2 2 2...
output:
0 2 1 2
result:
ok good solution
Test #22:
score: 1
Accepted
time: 29ms
memory: 7472kb
input:
284430 4 2 1 2 2 2 2 2 2 1 2 4 2 2 1 2 2 2 2 2 2 3 1 3 1 1 3 2 1 2 2 2 3 2 2 3 1 2 3 1 3 1 3 1 1 2 1 1 1 4 3 4 1 5 1 2 2 1 1 1 2 1 2 3 3 1 1 2 3 2 2 2 3 1 2 3 2 2 1 1 2 1 2 1 2 1 3 1 1 3 1 2 3 2 4 2 1 3 3 1 1 5 2 2 1 1 1 2 2 4 3 1 3 1 5 3 4 1 2 3 2 1 2 1 2 3 1 1 2 1 1 1 3 2 4 2 1 1 3 3 2 1 1 1 4 1 5...
output:
0 2 1 2
result:
ok good solution
Test #23:
score: 1
Accepted
time: 28ms
memory: 7500kb
input:
276474 1 4 1 4 2 1 3 3 3 4 3 1 1 2 1 1 1 2 3 2 2 3 4 1 1 2 4 2 1 1 3 2 2 4 3 1 2 2 1 1 2 3 3 2 1 1 2 1 3 2 2 2 1 3 2 2 3 3 3 1 1 3 7 1 1 3 4 4 2 2 1 1 3 1 1 1 1 2 3 3 1 2 2 1 3 1 1 3 2 2 2 1 2 3 2 2 1 3 2 1 2 1 1 2 2 3 3 2 1 4 2 1 3 2 2 1 1 2 1 1 2 2 3 3 2 1 1 3 3 1 2 2 1 3 2 1 1 1 2 1 4 1 1 2 3 1 2...
output:
0 2 1 2
result:
ok good solution
Test #24:
score: 1
Accepted
time: 26ms
memory: 7456kb
input:
300000 7 4 2 3 1 2 1 1 1 2 1 2 4 3 2 2 1 1 1 2 1 1 4 1 2 1 3 3 1 1 2 1 4 1 1 6 1 3 3 2 2 1 2 5 1 4 3 2 1 8 1 2 1 2 1 1 1 1 2 5 1 1 2 1 1 4 1 1 1 8 2 6 3 2 1 1 2 1 1 1 2 1 1 1 2 3 2 1 1 1 3 1 1 5 9 3 1 1 2 1 3 2 5 1 3 6 2 1 1 2 1 3 4 2 2 1 1 2 1 1 1 1 1 2 1 1 1 1 2 5 1 1 1 7 2 1 2 1 1 1 4 3 2 3 3 2 3...
output:
0 2 1 2
result:
ok good solution
Test #25:
score: 1
Accepted
time: 30ms
memory: 7440kb
input:
300000 1 1 1 2 3 1 1 1 2 1 1 1 2 3 1 1 2 1 1 1 1 1 3 2 1 1 3 1 1 1 1 2 3 1 2 1 3 2 1 1 1 1 3 2 2 3 2 2 1 3 3 6 1 1 6 1 1 4 2 1 3 2 1 2 4 2 1 1 1 2 2 1 1 2 2 1 1 1 1 1 2 2 2 3 3 1 3 1 1 2 6 2 2 1 4 2 1 1 2 1 2 2 6 4 1 1 1 4 1 1 2 3 1 2 2 1 1 1 1 1 2 1 4 1 8 3 5 2 2 1 5 1 1 4 4 1 2 1 2 1 1 2 6 1 2 4 1...
output:
0 2 1 2
result:
ok good solution
Subtask #5:
score: 1
Accepted
Test #26:
score: 1
Accepted
time: 82ms
memory: 7428kb
input:
970000 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
0 2 1 2
result:
ok good solution
Test #27:
score: 1
Accepted
time: 79ms
memory: 7536kb
input:
919280 1 2 1 2 2 3 3 2 3 2 1 2 2 3 2 2 3 2 3 2 1 3 1 1 3 1 2 3 2 2 3 3 2 3 1 2 1 3 2 1 2 2 3 2 3 2 3 3 1 2 1 2 3 2 3 2 3 2 3 3 1 2 2 2 1 1 1 2 3 2 1 2 2 3 1 2 1 2 1 1 2 3 2 2 2 2 2 2 3 3 3 1 3 1 2 2 2 2 2 1 3 3 3 3 3 2 3 3 1 2 1 2 3 1 3 1 2 1 1 2 2 1 3 1 3 1 3 2 1 3 2 3 3 3 1 2 2 3 2 2 2 1 2 2 3 1 3...
output:
0 2 1 2
result:
ok good solution
Test #28:
score: 1
Accepted
time: 82ms
memory: 7444kb
input:
978240 2 2 1 1 2 2 3 2 2 3 2 2 2 1 2 1 1 1 2 2 2 1 3 2 3 1 2 2 1 2 3 1 2 2 2 2 1 2 2 1 2 2 2 1 3 1 2 1 3 2 2 2 2 2 1 1 2 1 3 2 3 2 2 2 3 2 3 2 1 3 2 2 3 2 3 3 3 1 1 2 2 2 2 1 1 1 2 1 2 2 2 1 1 2 3 2 3 3 2 2 3 1 2 2 1 2 2 3 3 2 2 2 1 1 2 3 2 1 1 3 1 3 2 2 2 1 2 3 1 2 2 3 2 1 1 1 1 2 2 2 3 1 2 3 1 1 1...
output:
0 2 1 2
result:
ok good solution
Test #29:
score: 1
Accepted
time: 79ms
memory: 7596kb
input:
1000000 1 1 2 2 1 2 2 2 2 2 3 2 2 1 1 2 2 2 2 1 1 2 2 1 3 3 3 3 4 2 3 1 2 2 2 1 2 1 1 2 3 2 2 2 2 2 3 3 1 3 2 1 3 3 2 4 1 3 2 1 1 3 2 2 2 3 4 1 1 2 4 3 1 3 2 1 2 2 3 3 1 1 2 2 1 1 2 3 2 3 3 3 3 2 3 2 3 2 3 2 3 3 2 2 2 1 2 4 2 2 2 3 2 1 2 2 1 1 1 1 3 3 2 3 2 3 1 3 2 3 1 3 2 2 3 1 1 2 3 1 3 1 1 1 2 1 ...
output:
0 2 1 2
result:
ok good solution
Test #30:
score: 1
Accepted
time: 79ms
memory: 7592kb
input:
938100 2 1 2 3 4 1 2 2 1 1 2 4 3 1 2 1 1 1 1 1 2 3 3 1 1 2 4 2 1 2 3 4 1 1 2 2 3 3 2 3 1 2 1 2 2 2 2 2 3 1 2 3 4 3 3 2 2 3 4 5 3 1 1 1 1 2 3 2 1 3 3 2 3 2 1 2 3 2 2 1 2 3 1 1 2 2 2 2 2 1 1 1 2 4 1 5 1 2 2 2 2 1 2 1 3 3 1 2 1 3 4 2 2 2 2 2 3 1 3 1 3 2 2 2 3 1 1 2 3 1 1 4 1 2 2 2 1 5 3 3 2 2 2 3 4 2 2...
output:
0 2 1 2
result:
ok good solution
Test #31:
score: 1
Accepted
time: 69ms
memory: 7536kb
input:
911580 2 2 2 2 4 4 1 1 2 1 4 1 2 2 2 1 1 3 4 2 2 2 5 4 5 3 2 1 1 3 2 2 2 1 2 1 1 2 1 3 1 2 2 3 3 2 2 1 1 3 1 1 1 1 2 3 3 1 3 1 1 3 3 2 3 3 3 3 2 3 1 2 3 6 1 3 2 2 2 1 3 1 3 3 1 2 1 3 2 1 4 2 2 1 1 3 1 1 2 3 1 1 2 3 2 2 4 2 1 2 2 2 2 1 2 1 2 1 1 2 1 3 1 2 3 3 2 3 2 1 2 1 3 5 2 1 2 1 3 2 1 1 1 2 1 1 2...
output:
0 2 1 2
result:
ok good solution
Test #32:
score: 1
Accepted
time: 83ms
memory: 7528kb
input:
1000000 1 1 2 1 1 1 2 1 2 2 1 8 2 2 1 1 1 1 1 2 2 1 1 1 1 1 2 2 3 1 2 1 3 3 9 1 4 1 3 1 1 1 2 1 1 1 2 4 1 1 2 1 5 1 1 2 1 3 2 3 1 1 1 1 1 1 4 1 1 1 3 1 2 4 1 3 1 1 1 4 2 2 1 1 2 1 2 5 1 7 2 1 1 1 1 1 1 8 1 2 2 1 1 3 1 3 1 2 2 2 1 3 1 2 4 4 2 1 1 1 2 1 2 1 2 1 4 2 1 3 2 1 1 1 1 1 1 1 1 1 1 1 3 1 1 2 ...
output:
0 2 1 2
result:
ok good solution
Test #33:
score: 1
Accepted
time: 83ms
memory: 7540kb
input:
1000000 1 1 3 1 2 1 1 1 2 2 2 2 2 2 1 1 1 2 1 1 1 1 5 4 1 1 1 1 2 2 2 1 4 1 1 1 4 2 1 1 2 1 5 1 1 3 1 2 1 2 3 2 1 2 2 4 2 2 1 1 2 2 1 1 1 1 1 6 1 2 8 2 1 1 2 2 1 1 2 2 3 1 1 1 4 2 1 1 1 1 6 1 1 2 1 1 5 1 1 1 5 1 1 1 2 1 3 1 3 5 1 1 3 3 3 2 1 4 1 1 1 1 3 3 1 2 2 2 2 2 5 1 1 1 1 1 1 2 3 1 4 2 7 1 1 4 ...
output:
0 2 1 2
result:
ok good solution
Subtask #6:
score: 1
Accepted
Test #34:
score: 1
Accepted
time: 3ms
memory: 7508kb
input:
6 5 3 3 4 5 2
output:
2 2 1 2
result:
ok good solution
Test #35:
score: 1
Accepted
time: 7ms
memory: 7532kb
input:
6 4 5 5 2 5 4
output:
2 2 1 2
result:
ok good solution
Test #36:
score: 1
Accepted
time: 7ms
memory: 7468kb
input:
6 2 4 1 4 4 2
output:
1 2 1 2
result:
ok good solution
Test #37:
score: 1
Accepted
time: 7ms
memory: 7580kb
input:
6 1 2 4 5 2 4
output:
1 2 1 2
result:
ok good solution
Test #38:
score: 1
Accepted
time: 7ms
memory: 7520kb
input:
6 3 2 4 4 1 1
output:
0 2 1 2
result:
ok good solution
Test #39:
score: 1
Accepted
time: 7ms
memory: 7468kb
input:
6 3 1 1 1 1 1
output:
0 2 1 2
result:
ok good solution
Test #40:
score: 1
Accepted
time: 7ms
memory: 7600kb
input:
6 1 1 1 1 1 1
output:
0 2 1 2
result:
ok good solution
Subtask #7:
score: 1
Accepted
Test #41:
score: 1
Accepted
time: 7ms
memory: 7520kb
input:
3 1 2 1
output:
0 2 1 2
result:
ok good solution
Test #42:
score: 1
Accepted
time: 3ms
memory: 7452kb
input:
3 1 1 1
output:
0 2 1 2
result:
ok good solution
Test #43:
score: 1
Accepted
time: 7ms
memory: 7576kb
input:
948 669 120 160 145 510 313 359 94 718 795 127 940 457 310 367 817 937 275 661 247 125 335 529 606 106 853 615 694 635 239 945 190 55 663 104 199 96 341 450 625 201 379 327 585 557 747 743 821 411 214 394 162 221 302 332 410 69 295 650 372 629 749 844 182 192 819 612 775 239 49 776 279 685 114 224 2...
output:
2 2 1 2
result:
ok good solution
Test #44:
score: 1
Accepted
time: 3ms
memory: 7520kb
input:
999 261 623 841 45 495 197 459 201 34 756 236 5 669 829 716 153 937 348 453 592 650 116 784 368 71 269 709 756 503 652 626 884 195 261 29 339 58 501 195 813 19 125 2 861 534 629 658 806 774 227 260 787 133 234 561 923 667 139 987 564 689 171 620 203 86 899 463 459 743 474 344 204 726 491 988 234 722...
output:
2 2 1 2
result:
ok good solution
Test #45:
score: 1
Accepted
time: 7ms
memory: 7576kb
input:
1000 712 242 8 260 544 405 46 135 461 89 131 122 680 633 530 973 250 251 904 110 493 481 182 581 309 349 252 2 511 829 808 560 290 955 154 423 126 715 987 342 116 131 660 907 379 378 27 379 373 918 552 177 181 470 693 893 644 984 977 447 248 627 860 698 283 638 846 632 753 186 560 644 294 293 505 32...
output:
1 2 1 2
result:
ok good solution
Test #46:
score: 1
Accepted
time: 3ms
memory: 7532kb
input:
998 63 685 839 204 191 339 410 714 322 872 644 724 19 162 707 216 163 351 982 714 365 21 372 9 182 499 538 190 859 452 731 864 357 730 44 136 278 390 688 380 558 870 541 576 180 79 416 278 562 360 362 301 276 363 576 542 55 180 213 827 156 598 65 938 895 152 38 818 555 360 464 948 150 902 258 849 59...
output:
1 2 1 2
result:
ok good solution
Test #47:
score: 1
Accepted
time: 3ms
memory: 7472kb
input:
999 1 244 690 322 415 489 848 920 1 1 670 1 1 560 780 47 795 85 332 255 290 1 600 61 278 186 789 250 902 612 850 353 898 361 1 498 132 811 1 658 419 670 896 344 883 170 623 5 679 137 878 650 484 513 687 656 215 823 582 278 316 439 89 578 1 701 61 733 261 621 820 484 832 683 433 1 89 187 878 1 909 12...
output:
0 2 1 2
result:
ok good solution
Test #48:
score: 1
Accepted
time: 3ms
memory: 7600kb
input:
998 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
0 2 1 2
result:
ok good solution
Test #49:
score: 1
Accepted
time: 7ms
memory: 7512kb
input:
1000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
0 2 1 2
result:
ok good solution
Subtask #8:
score: 1
Accepted
Test #50:
score: 1
Accepted
time: 179ms
memory: 7540kb
input:
1000000 444984 954524 29814 106831 613809 658368 214083 137881 396161 604451 522063 353518 189856 918313 586494 61263 40492 1626 341905 418550 244738 269576 654537 294182 237133 986063 595207 489159 176715 890087 701956 661153 3005 438438 241405 545006 569239 214939 33721 243157 613975 366472 320842...
output:
1 2 1 2
result:
ok good solution
Test #51:
score: 1
Accepted
time: 165ms
memory: 7504kb
input:
924832 757509 23165 732394 835751 888110 611734 439805 695103 485896 140926 583676 89359 46383 838123 144245 8475 140546 338672 657733 356700 773005 161129 7072 336514 823487 84948 482663 375818 55204 448916 250365 744777 146335 867480 520999 467836 179833 475907 442773 614195 262400 634000 536693 8...
output:
1 2 1 2
result:
ok good solution
Test #52:
score: 1
Accepted
time: 162ms
memory: 7508kb
input:
892471 819670 539608 500117 53043 823211 820437 312433 224474 372091 722612 725578 85054 674567 78222 447950 241466 617675 521533 125332 859251 452780 194923 631940 735621 324962 388453 174446 519091 593465 480574 668708 121639 625698 401111 767461 227751 688362 127561 591144 144053 319252 384830 88...
output:
1 2 1 2
result:
ok good solution
Test #53:
score: 1
Accepted
time: 194ms
memory: 7504kb
input:
997000 903227 60937 51317 666115 925919 690617 633064 334177 125247 223752 67781 678175 814553 943749 831721 766543 332508 108823 853688 882476 327597 68747 21157 290400 779919 606005 16839 760413 329615 839658 464453 725407 708107 23652 128630 845111 137001 360299 312630 920766 185056 531824 879639...
output:
1 2 1 2
result:
ok good solution
Test #54:
score: 1
Accepted
time: 7ms
memory: 7532kb
input:
99 36 41 74 6 37 74 58 25 37 25 6 7 90 48 93 74 51 96 14 30 71 50 46 67 68 16 94 85 26 42 6 46 81 45 8 77 13 48 20 39 98 6 52 91 58 84 93 20 36 56 33 70 70 94 29 60 50 32 51 32 19 73 86 34 77 35 58 58 9 16 25 83 47 98 63 5 64 33 5 18 90 67 97 1 87 83 24 70 96 45 20 89 22 16 80 72 83 64 74
output:
1 2 1 2
result:
ok good solution
Test #55:
score: 1
Accepted
time: 3ms
memory: 7516kb
input:
3 1 2 2
output:
1 2 1 2
result:
ok good solution
Test #56:
score: 1
Accepted
time: 7ms
memory: 7448kb
input:
3 2 2 1
output:
1 2 1 2
result:
ok good solution
Subtask #9:
score: 1
Accepted
Test #57:
score: 1
Accepted
time: 183ms
memory: 7536kb
input:
1000000 123570 738435 882132 480671 482803 318356 806924 589849 364060 707311 516301 143541 110066 895541 694271 125652 460039 223394 89110 347519 304794 8340 818028 709656 852921 866254 821811 903862 700227 663840 894345 613855 761499 137228 23495 344595 514268 826835 637257 160367 586854 439094 31...
output:
2 2 1 2
result:
ok good solution
Test #58:
score: 1
Accepted
time: 170ms
memory: 7468kb
input:
924832 577337 735965 256139 875761 482984 277068 135073 379253 608133 507598 218938 531354 405787 440292 399686 195767 896049 661361 33566 213719 848826 263588 754727 577865 889786 127747 763040 407939 392727 853420 72698 537651 309921 433868 120305 787224 529587 556910 865825 663960 221219 427930 5...
output:
2 2 1 2
result:
ok good solution
Test #59:
score: 1
Accepted
time: 160ms
memory: 7516kb
input:
892471 689261 776177 481356 349836 122284 731926 541875 68403 477509 71050 611757 341125 542668 466118 488447 129906 485033 233251 219484 680197 150881 713225 469213 29767 12797 195903 316439 277827 424022 25544 849482 307454 97185 889868 19384 214116 437962 423468 234248 257700 752618 383052 691186...
output:
2 2 1 2
result:
ok good solution
Test #60:
score: 1
Accepted
time: 186ms
memory: 7444kb
input:
997000 49509 594621 703010 875634 715445 759175 579279 112941 471788 426505 503129 137571 646229 931017 983726 414184 535135 978881 912300 231242 488580 226910 90155 791659 500443 302962 788296 947501 473024 371903 475495 469362 471907 807015 865849 893284 353689 93241 780714 214665 885748 270471 58...
output:
2 2 1 2
result:
ok good solution
Test #61:
score: 1
Accepted
time: 3ms
memory: 7588kb
input:
99 77 79 13 18 66 4 61 45 17 43 41 74 68 40 94 88 85 98 38 59 14 3 51 8 94 84 61 38 6 3 73 15 78 55 89 86 77 91 49 91 51 5 44 11 9 78 53 50 67 52 20 77 61 53 6 31 56 34 57 17 96 30 94 97 81 12 69 57 9 65 60 8 83 95 4 55 36 74 22 56 45 51 76 42 85 14 85 7 76 25 4 13 3 13 29 61 62 30 66
output:
2 2 1 2
result:
ok good solution
Test #62:
score: 1
Accepted
time: 3ms
memory: 7592kb
input:
3 2 2 2
output:
2 2 1 2
result:
ok good solution
Test #63:
score: 1
Accepted
time: 3ms
memory: 7508kb
input:
3 2 2 2
output:
2 2 1 2
result:
ok good solution
Subtask #10:
score: 1
Accepted
Test #64:
score: 1
Accepted
time: 177ms
memory: 7600kb
input:
970000 261624 772127 537087 68467 733436 920801 502376 729701 106971 139501 964123 865449 510354 693085 218184 270614 10102 660633 393884 174109 170476 215163 274592 348268 132215 708992 685907 887893 45318 325711 828961 475995 962683 69565 868795 118403 256710 37511 909385 329214 741204 952161 7843...
output:
1 2 1 2
result:
ok good solution
Test #65:
score: 1
Accepted
time: 164ms
memory: 7440kb
input:
919280 575466 917908 905326 489798 597576 230900 753131 287048 731357 76003 850398 247651 668915 410495 890797 351834 915839 316395 66390 821100 72844 437021 623634 748482 850564 572295 646752 178767 735226 435869 33650 762486 207505 94389 187305 868202 648742 849824 596797 547042 124566 902708 2155...
output:
2 2 1 2
result:
ok good solution
Test #66:
score: 1
Accepted
time: 183ms
memory: 7468kb
input:
978240 412198 655796 622116 333207 696350 127619 232515 362300 72277 129411 55443 36173 485919 585310 479936 488180 216174 576812 868719 363015 923674 495922 409583 58300 796132 686936 585206 933409 83287 351258 563184 105439 722495 114435 456678 294682 303896 492890 833329 80062 30579 117189 870184...
output:
1 2 1 2
result:
ok good solution
Test #67:
score: 1
Accepted
time: 175ms
memory: 7576kb
input:
938100 917983 540522 219956 423321 28308 926070 465792 898658 697588 892558 43623 15541 410792 10877 868792 333785 325444 706386 860384 430705 661662 891457 877950 854936 147250 500057 27638 65361 204809 806625 722699 213451 715336 343221 785873 835988 414795 80247 316828 720940 461300 623035 82340 ...
output:
1 2 1 2
result:
ok good solution
Test #68:
score: 1
Accepted
time: 180ms
memory: 7596kb
input:
985600 505945 166758 336347 843077 395615 445862 332921 450238 28644 588599 574792 828601 93948 182440 200135 56929 184105 603572 160373 57217 4451 657333 155004 817192 2834 126563 302812 321784 675104 345191 120288 298064 62127 362057 668101 170701 915162 69762 327104 481517 227542 581411 685368 19...
output:
0 2 1 2
result:
ok good solution
Test #69:
score: 1
Accepted
time: 171ms
memory: 7536kb
input:
911580 254109 571268 117664 497023 776299 684269 304502 900295 783899 711683 851852 352544 779776 583827 649816 793270 238452 205353 37400 77084 590592 845248 362731 343458 658038 132428 825643 391727 345458 31632 758507 423946 91661 267611 773812 883316 343700 657418 737812 171377 910182 782099 463...
output:
0 2 1 2
result:
ok good solution
Test #70:
score: 1
Accepted
time: 85ms
memory: 7504kb
input:
1000000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
0 2 1 2
result:
ok good solution
Test #71:
score: 1
Accepted
time: 188ms
memory: 7524kb
input:
1000000 861570 654118 492091 877203 304104 550640 209090 633883 939399 515519 928711 445170 744342 354684 608846 843354 379208 312473 247337 932410 85031 220983 703961 516200 704401 670324 975493 157905 718686 947510 652869 106809 405034 820986 25550 485091 112941 103580 767175 670396 697817 514002 ...
output:
2 2 1 2
result:
ok good solution
Test #72:
score: 1
Accepted
time: 187ms
memory: 7588kb
input:
1000000 967981 503978 554685 984906 336089 34412 803840 530896 95807 547851 626445 522 722118 448797 832815 323540 884309 704646 944988 288506 240944 330013 975621 158866 309263 828822 218741 442795 786240 852999 413261 686828 239482 897313 309889 435637 275914 884695 32919 171413 355101 978924 4903...
output:
1 2 1 2
result:
ok good solution
Test #73:
score: 1
Accepted
time: 179ms
memory: 7508kb
input:
1000000 369995 902302 381138 461296 708008 315669 607180 562050 949038 957263 159127 563389 430485 697857 199182 650730 741784 376028 873929 11840 739715 721733 894523 840400 456330 278863 268799 923546 609668 37612 742364 544393 150687 125613 267499 55045 269376 36698 562608 935359 583349 924564 20...
output:
0 2 1 2
result:
ok good solution
Extra Test:
score: 0
Extra Test Passed