QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#606323 | #222. Poddrzewo [A] | 3un_larryfunc | 9 | 194ms | 7628kb | C++23 | 751b | 2024-10-03 01:07:38 | 2024-10-03 01:07:39 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 1
Accepted
Test #1:
score: 1
Accepted
time: 8ms
memory: 7624kb
input:
2 1 1
output:
0 2 1 2
result:
ok good solution
Test #2:
score: 1
Accepted
time: 3ms
memory: 7540kb
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: 7572kb
input:
6 2 2 2 1 1 2
output:
0 2 1 2
result:
ok good solution
Test #4:
score: 1
Accepted
time: 7ms
memory: 7556kb
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: 7552kb
input:
6 2 1 2 3 1 1
output:
0 2 1 2
result:
ok good solution
Test #6:
score: 1
Accepted
time: 3ms
memory: 7608kb
input:
6 1 1 3 2 2 1
output:
0 2 1 2
result:
ok good solution
Test #7:
score: 1
Accepted
time: 7ms
memory: 7540kb
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: 7476kb
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: 3ms
memory: 7544kb
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: 7476kb
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: 7560kb
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: 7612kb
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: 7504kb
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: 8ms
memory: 7552kb
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: 7544kb
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: 7ms
memory: 7488kb
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: 7492kb
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: 7612kb
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: 27ms
memory: 7480kb
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: 30ms
memory: 7612kb
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: 31ms
memory: 7528kb
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: 26ms
memory: 7608kb
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: 25ms
memory: 7612kb
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: 27ms
memory: 7608kb
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: 31ms
memory: 7600kb
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: 80ms
memory: 7536kb
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: 80ms
memory: 7552kb
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: 83ms
memory: 7528kb
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: 86ms
memory: 7480kb
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: 77ms
memory: 7560kb
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: 70ms
memory: 7544kb
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: 84ms
memory: 7548kb
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: 93ms
memory: 7612kb
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: 7480kb
input:
6 5 3 3 4 5 2
output:
2 2 1 2
result:
ok good solution
Test #35:
score: 1
Accepted
time: 3ms
memory: 7548kb
input:
6 4 5 5 2 5 4
output:
2 2 1 2
result:
ok good solution
Test #36:
score: 1
Accepted
time: 3ms
memory: 7560kb
input:
6 2 4 1 4 4 2
output:
1 2 1 2
result:
ok good solution
Test #37:
score: 1
Accepted
time: 3ms
memory: 7544kb
input:
6 1 2 4 5 2 4
output:
1 2 1 2
result:
ok good solution
Test #38:
score: 1
Accepted
time: 3ms
memory: 7544kb
input:
6 3 2 4 4 1 1
output:
0 2 1 2
result:
ok good solution
Test #39:
score: 1
Accepted
time: 3ms
memory: 7488kb
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: 7528kb
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: 7540kb
input:
3 1 2 1
output:
0 2 1 2
result:
ok good solution
Test #42:
score: 1
Accepted
time: 3ms
memory: 7616kb
input:
3 1 1 1
output:
0 2 1 2
result:
ok good solution
Test #43:
score: 1
Accepted
time: 3ms
memory: 7540kb
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: 7ms
memory: 7480kb
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: 3ms
memory: 7556kb
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: 7480kb
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: 7544kb
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: 7608kb
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: 3ms
memory: 7616kb
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: 185ms
memory: 7484kb
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: 174ms
memory: 7532kb
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: 172ms
memory: 7556kb
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: 7484kb
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: 3ms
memory: 7628kb
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: 7480kb
input:
3 1 2 2
output:
1 2 1 2
result:
ok good solution
Test #56:
score: 1
Accepted
time: 3ms
memory: 7628kb
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: 176ms
memory: 7544kb
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: 174ms
memory: 7476kb
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: 169ms
memory: 7548kb
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: 189ms
memory: 7544kb
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: 7ms
memory: 7580kb
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: 7ms
memory: 7560kb
input:
3 2 2 2
output:
2 2 1 2
result:
ok good solution
Test #63:
score: 1
Accepted
time: 7ms
memory: 7480kb
input:
3 2 2 2
output:
2 2 1 2
result:
ok good solution
Subtask #10:
score: 0
Wrong Answer
Test #64:
score: 0
Wrong Answer
time: 184ms
memory: 7544kb
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:
0 2 1 2
result:
wrong answer Read x = 0 but expected x = 1