QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#45955 | #4565. Rarest Insects | ZhangYiDe | 47.5 | 251ms | 4080kb | C++17 | 1.4kb | 2022-08-24 18:43:51 | 2022-08-24 18:44:23 |
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: 10
Accepted
Test #1:
score: 10
Accepted
time: 0ms
memory: 3768kb
input:
6 1 2 1 2 1 2 2 2 3 1 1 2 2 2
output:
8 0 5 8 2 8 0 4 8 2 8 1 4 8 0 3 8 2 8 0 2 8 2 8 1 2 8 0 1 8 2 8 0 0 8 2 8 1 0 8 1 1 8 1 3 8 1 5 8 0 0 8 0 1 8 0 2 8 0 3 8 2 8 0 4 8 2 8 0 5 8 2 8 1 0 8 1 1 8 1 2 8 1 3 8 1 4 8 1 5 8 0 0 8 0 1 8 2 8 0 2 8 2 8 0 3 8 2 8 1 3 8 0 4 8 2 8 1 4 8 0 5 8 2 8 1 5 8 1 0 8 1 1 8 1 2 8 3 1
result:
ok
Test #2:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
2 1 2 2
output:
8 0 1 8 2 8 0 0 8 2 8 1 0 8 1 1 8 0 0 8 0 1 8 2 8 1 1 8 1 0 8 0 0 8 0 1 8 1 0 8 1 1 8 3 2
result:
ok
Test #3:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
2 1 1 1
output:
8 0 1 8 2 8 0 0 8 2 8 1 0 8 1 1 8 0 0 8 0 1 8 2 8 1 0 8 1 1 8 3 1
result:
ok
Test #4:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
3 1 2 1 2 1 2
output:
8 0 2 8 2 8 0 1 8 2 8 1 1 8 0 0 8 2 8 1 0 8 1 2 8 0 0 8 0 1 8 0 2 8 2 8 1 0 8 1 1 8 1 2 8 0 0 8 0 1 8 2 8 0 2 8 2 8 1 2 8 1 0 8 1 1 8 3 1
result:
ok
Test #5:
score: 0
Accepted
time: 4ms
memory: 3764kb
input:
5 1 2 1 2 2 2 3 1 2 2 2 2 2 3
output:
8 0 4 8 2 8 0 3 8 2 8 1 3 8 0 2 8 2 8 0 1 8 2 8 1 1 8 0 0 8 2 8 1 0 8 1 2 8 1 4 8 0 0 8 0 1 8 0 2 8 0 3 8 2 8 0 4 8 2 8 1 0 8 1 1 8 1 2 8 1 3 8 1 4 8 0 0 8 0 1 8 2 8 0 2 8 2 8 1 2 8 0 3 8 2 8 1 3 8 0 4 8 2 8 1 4 8 1 0 8 1 1 8 0 0 8 0 1 8 0 2 8 2 8 0 3 8 2 8 0 4 8 2 8 1 4 8 1 0 8 1 1 8 1 2 8 1 3 8 3 2
result:
ok
Test #6:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
8 1 1 1 2 2 2 2 2 4 5 4 4 2 3 3 3 2 2 1 2 2 2 2 2 1
output:
8 0 7 8 2 8 0 6 8 2 8 0 5 8 2 8 0 4 8 2 8 1 4 8 0 3 8 2 8 1 3 8 0 2 8 2 8 1 2 8 0 1 8 2 8 1 1 8 0 0 8 2 8 1 0 8 1 5 8 1 6 8 1 7 8 0 0 8 0 1 8 0 2 8 0 3 8 0 4 8 2 8 0 5 8 2 8 1 5 8 0 6 8 2 8 0 7 8 2 8 1 0 8 1 1 8 1 2 8 1 3 8 1 4 8 1 6 8 1 7 8 0 0 8 0 1 8 0 2 8 2 8 0 3 8 2 8 1 3 8 0 4 8 2 8 1 4 8 0 5 ...
result:
ok
Test #7:
score: 0
Accepted
time: 4ms
memory: 3788kb
input:
199 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 198 8 2 8 0 197 8 2 8 1 197 8 0 196 8 2 8 1 196 8 0 195 8 2 8 1 195 8 0 194 8 2 8 1 194 8 0 193 8 2 8 1 193 8 0 192 8 2 8 1 192 8 0 191 8 2 8 1 191 8 0 190 8 2 8 1 190 8 0 189 8 2 8 1 189 8 0 188 8 2 8 1 188 8 0 187 8 2 8 1 187 8 0 186 8 2 8 1 186 8 0 185 8 2 8 1 185 8 0 184 8 2 8 1 184 8 0 183 ...
result:
ok
Test #8:
score: 0
Accepted
time: 17ms
memory: 3752kb
input:
200 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
8 0 199 8 2 8 0 198 8 2 8 0 197 8 2 8 0 196 8 2 8 0 195 8 2 8 0 194 8 2 8 0 193 8 2 8 0 192 8 2 8 0 191 8 2 8 0 190 8 2 8 0 189 8 2 8 0 188 8 2 8 0 187 8 2 8 0 186 8 2 8 0 185 8 2 8 0 184 8 2 8 0 183 8 2 8 0 182 8 2 8 0 181 8 2 8 0 180 8 2 8 0 179 8 2 8 0 178 8 2 8 0 177 8 2 8 0 176 8 2 8 0 175 8 2 ...
result:
ok
Test #9:
score: 0
Accepted
time: 11ms
memory: 3780kb
input:
200 1 1 1 1 1 1 1 1 1 1 2 2 2 2 1 2 2 1 1 2 2 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 199 8 2 8 0 198 8 2 8 0 197 8 2 8 0 196 8 2 8 0 195 8 2 8 0 194 8 2 8 0 193 8 2 8 0 192 8 2 8 0 191 8 2 8 0 190 8 2 8 0 189 8 2 8 1 189 8 0 188 8 2 8 1 188 8 0 187 8 2 8 1 187 8 0 186 8 2 8 1 186 8 0 185 8 2 8 0 184 8 2 8 1 184 8 0 183 8 2 8 1 183 8 0 182 8 2 8 0 181 8 2 8 0 180 8 2 8 1 180 8 0 ...
result:
ok
Test #10:
score: 0
Accepted
time: 16ms
memory: 3788kb
input:
198 1 1 1 1 2 1 1 2 1 2 2 2 1 2 2 2 2 2 1 2 2 1 1 2 2 2 2 2 1 2 2 2 2 1 2 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 197 8 2 8 0 196 8 2 8 0 195 8 2 8 0 194 8 2 8 0 193 8 2 8 1 193 8 0 192 8 2 8 0 191 8 2 8 0 190 8 2 8 1 190 8 0 189 8 2 8 0 188 8 2 8 1 188 8 0 187 8 2 8 1 187 8 0 186 8 2 8 1 186 8 0 185 8 2 8 0 184 8 2 8 1 184 8 0 183 8 2 8 1 183 8 0 182 8 2 8 1 182 8 0 181 8 2 8 1 181 8 0 180 8 2 8 1 180 8 0 ...
result:
ok
Test #11:
score: 0
Accepted
time: 11ms
memory: 3724kb
input:
199 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 198 8 2 8 0 197 8 2 8 1 197 8 0 196 8 2 8 1 196 8 0 195 8 2 8 1 195 8 0 194 8 2 8 1 194 8 0 193 8 2 8 1 193 8 0 192 8 2 8 1 192 8 0 191 8 2 8 1 191 8 0 190 8 2 8 1 190 8 0 189 8 2 8 1 189 8 0 188 8 2 8 1 188 8 0 187 8 2 8 1 187 8 0 186 8 2 8 1 186 8 0 185 8 2 8 1 185 8 0 184 8 2 8 1 184 8 0 183 ...
result:
ok
Test #12:
score: 0
Accepted
time: 19ms
memory: 3728kb
input:
197 1 1 1 1 1 2 2 1 1 2 1 1 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 2 1 2 2 1 1 2 1 2 1 1 2 1 1 1 1 1 2 2 1 2 1 2 1 2 2 2 2 1 1 2 2 2 2 2 1 1 1 2 2 2 1 1 2 1 2 1 2 1 2 2 1 1 1 2 2 2 2 2 2 1 1 1 1 1 1 1 2 1 2 2 1 2 1 1 1 1 2 2 1 2 1 2 1 1 2 2 1 2 1 1 2 1 2 1 1 2 2 1 1 2 2 2 1 2 1 1 2 2 2 2 2 1 1 2 2 2 1 1 2 2 ...
output:
8 0 196 8 2 8 0 195 8 2 8 0 194 8 2 8 0 193 8 2 8 0 192 8 2 8 0 191 8 2 8 1 191 8 0 190 8 2 8 1 190 8 0 189 8 2 8 0 188 8 2 8 0 187 8 2 8 1 187 8 0 186 8 2 8 0 185 8 2 8 0 184 8 2 8 1 184 8 0 183 8 2 8 1 183 8 0 182 8 2 8 1 182 8 0 181 8 2 8 1 181 8 0 180 8 2 8 1 180 8 0 179 8 2 8 1 179 8 0 178 8 2 ...
result:
ok
Test #13:
score: 0
Accepted
time: 22ms
memory: 3732kb
input:
197 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 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:
8 0 196 8 2 8 0 195 8 2 8 0 194 8 2 8 0 193 8 2 8 1 193 8 0 192 8 2 8 1 192 8 0 191 8 2 8 1 191 8 0 190 8 2 8 1 190 8 0 189 8 2 8 1 189 8 0 188 8 2 8 1 188 8 0 187 8 2 8 1 187 8 0 186 8 2 8 1 186 8 0 185 8 2 8 1 185 8 0 184 8 2 8 1 184 8 0 183 8 2 8 1 183 8 0 182 8 2 8 1 182 8 0 181 8 2 8 0 180 8 2 ...
result:
ok
Test #14:
score: 0
Accepted
time: 3ms
memory: 3792kb
input:
198 1 1 1 1 1 1 1 2 2 2 2 1 2 2 2 2 2 1 2 2 1 2 2 2 1 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 197 8 2 8 0 196 8 2 8 0 195 8 2 8 0 194 8 2 8 0 193 8 2 8 0 192 8 2 8 0 191 8 2 8 0 190 8 2 8 1 190 8 0 189 8 2 8 1 189 8 0 188 8 2 8 1 188 8 0 187 8 2 8 1 187 8 0 186 8 2 8 0 185 8 2 8 1 185 8 0 184 8 2 8 1 184 8 0 183 8 2 8 1 183 8 0 182 8 2 8 1 182 8 0 181 8 2 8 1 181 8 0 180 8 2 8 0 179 8 2 ...
result:
ok
Test #15:
score: 0
Accepted
time: 13ms
memory: 3872kb
input:
200 1 1 2 1 2 2 1 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 199 8 2 8 0 198 8 2 8 0 197 8 2 8 1 197 8 0 196 8 2 8 0 195 8 2 8 1 195 8 0 194 8 2 8 1 194 8 0 193 8 2 8 0 192 8 2 8 1 192 8 0 191 8 2 8 1 191 8 0 190 8 2 8 1 190 8 0 189 8 2 8 0 188 8 2 8 1 188 8 0 187 8 2 8 1 187 8 0 186 8 2 8 1 186 8 0 185 8 2 8 1 185 8 0 184 8 2 8 1 184 8 0 183 8 2 8 1 183 ...
result:
ok
Test #16:
score: 0
Accepted
time: 31ms
memory: 3888kb
input:
196 1 1 1 1 2 1 2 2 1 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 195 8 2 8 0 194 8 2 8 0 193 8 2 8 0 192 8 2 8 0 191 8 2 8 1 191 8 0 190 8 2 8 0 189 8 2 8 1 189 8 0 188 8 2 8 1 188 8 0 187 8 2 8 0 186 8 2 8 1 186 8 0 185 8 2 8 1 185 8 0 184 8 2 8 1 184 8 0 183 8 2 8 1 183 8 0 182 8 2 8 1 182 8 0 181 8 2 8 1 181 8 0 180 8 2 8 1 180 8 0 179 8 2 8 0 178 8 2 8 1 ...
result:
ok
Test #17:
score: 0
Accepted
time: 1ms
memory: 3868kb
input:
199 1 1 1 1 2 1 1 2 2 1 2 2 1 1 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 198 8 2 8 0 197 8 2 8 0 196 8 2 8 0 195 8 2 8 0 194 8 2 8 1 194 8 0 193 8 2 8 0 192 8 2 8 0 191 8 2 8 1 191 8 0 190 8 2 8 1 190 8 0 189 8 2 8 0 188 8 2 8 1 188 8 0 187 8 2 8 1 187 8 0 186 8 2 8 0 185 8 2 8 0 184 8 2 8 1 184 8 0 183 8 2 8 1 183 8 0 182 8 2 8 1 182 8 0 181 8 2 8 1 181 8 0 180 8 2 ...
result:
ok
Test #18:
score: 0
Accepted
time: 16ms
memory: 3784kb
input:
196 1 1 1 1 1 2 1 1 2 1 2 1 2 2 2 1 2 1 2 2 2 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 195 8 2 8 0 194 8 2 8 0 193 8 2 8 0 192 8 2 8 0 191 8 2 8 0 190 8 2 8 1 190 8 0 189 8 2 8 0 188 8 2 8 0 187 8 2 8 1 187 8 0 186 8 2 8 0 185 8 2 8 1 185 8 0 184 8 2 8 0 183 8 2 8 1 183 8 0 182 8 2 8 1 182 8 0 181 8 2 8 1 181 8 0 180 8 2 8 0 179 8 2 8 1 179 8 0 178 8 2 8 0 177 8 2 8 1 177 8 0 176 ...
result:
ok
Test #19:
score: 0
Accepted
time: 10ms
memory: 3912kb
input:
196 1 1 1 1 1 2 1 2 2 2 1 1 2 2 2 1 1 2 2 2 2 2 2 2 2 2 2 1 1 1 2 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 2 2 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 195 8 2 8 0 194 8 2 8 0 193 8 2 8 0 192 8 2 8 0 191 8 2 8 0 190 8 2 8 1 190 8 0 189 8 2 8 0 188 8 2 8 1 188 8 0 187 8 2 8 1 187 8 0 186 8 2 8 1 186 8 0 185 8 2 8 0 184 8 2 8 0 183 8 2 8 1 183 8 0 182 8 2 8 1 182 8 0 181 8 2 8 1 181 8 0 180 8 2 8 0 179 8 2 8 0 178 8 2 8 1 178 8 0 177 8 2 8 1 177 ...
result:
ok
Test #20:
score: 0
Accepted
time: 12ms
memory: 3836kb
input:
196 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 2 2 2 2 1 2 2 2 1 1 2 2 2 2 2 1 2 2 2 2 2 2 2 1 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 195 8 2 8 0 194 8 2 8 0 193 8 2 8 0 192 8 2 8 0 191 8 2 8 0 190 8 2 8 0 189 8 2 8 0 188 8 2 8 0 187 8 2 8 0 186 8 2 8 0 185 8 2 8 0 184 8 2 8 0 183 8 2 8 1 183 8 0 182 8 2 8 0 181 8 2 8 0 180 8 2 8 1 180 8 0 179 8 2 8 1 179 8 0 178 8 2 8 1 178 8 0 177 8 2 8 1 177 8 0 176 8 2 8 0 175 8 2 8 1 175 ...
result:
ok
Test #21:
score: 0
Accepted
time: 23ms
memory: 3856kb
input:
200 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 1 2 1 2 1 2 1 1 1 1 1 1 1 2 2 2 2 2 1 1 1 2 1 2 2 1 2 2 2 2 2 1 2 1 2 2 2 2 2 1 2 2 2 1 2 2 2 2 2 2 2 2 2 1 2 2 2 2 1 1 2 2 2 2 1 2 1 2 2 2 2 2 1 2 2 2 2 2 2 2 2 1 2 2 2 1 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 ...
output:
8 0 199 8 2 8 0 198 8 2 8 0 197 8 2 8 0 196 8 2 8 0 195 8 2 8 0 194 8 2 8 0 193 8 2 8 0 192 8 2 8 0 191 8 2 8 0 190 8 2 8 0 189 8 2 8 0 188 8 2 8 0 187 8 2 8 0 186 8 2 8 0 185 8 2 8 0 184 8 2 8 0 183 8 2 8 0 182 8 2 8 1 182 8 0 181 8 2 8 1 181 8 0 180 8 2 8 1 180 8 0 179 8 2 8 0 178 8 2 8 1 178 8 0 ...
result:
ok
Test #22:
score: 0
Accepted
time: 17ms
memory: 3860kb
input:
199 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 1 2 2 1 1 1 1 1 1 1 1 2 1 1 1 1 1 2 1 2 2 1 1 2 1 1 1 1 1 1 2 2 2 2 2 1 2 1 2 2 1 1 1 1 2 2 1 1 1 2 2 2 1 2 1 2 1 2 2 1 1 2 2 1 1 2 1 2 2 2 1 1 1 2 2 2 2 1 1 1 2 2 1 2 1 1 2 1 2 2 2 1 1 2 1 2 1 2 2 1 2 2 2 2 2 2 1 2 2 1 2 1 2 2 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 ...
output:
8 0 198 8 2 8 0 197 8 2 8 0 196 8 2 8 0 195 8 2 8 0 194 8 2 8 0 193 8 2 8 0 192 8 2 8 0 191 8 2 8 0 190 8 2 8 0 189 8 2 8 0 188 8 2 8 0 187 8 2 8 0 186 8 2 8 0 185 8 2 8 1 185 8 0 184 8 2 8 1 184 8 0 183 8 2 8 0 182 8 2 8 1 182 8 0 181 8 2 8 1 181 8 0 180 8 2 8 0 179 8 2 8 0 178 8 2 8 0 177 8 2 8 0 ...
result:
ok
Test #23:
score: 0
Accepted
time: 20ms
memory: 3864kb
input:
198 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 2 1 1 1 2 1 1 1 1 1 1 2 1 2 1 1 2 1 1 2 1 1 1 1 1 1 2 1 2 1 1 2 1 1 1 1 1 1 1 1 1 2 2 1 1 1 1 1 1 1 1 2 2 1 1 1 1 1 1 1 2 2 1 1 1 2 1 1 1 1 1 2 2 1 2 2 2 1 1 2 2 1 1 1 1 1 2 2 1 1 1 1 2 1 2 2 1 2 2 1 1 1 1 1 2 1 1 2 1 2 2 1 1 2 2 2 2 1 2 1 2 2 2 1 2 1 2 1 2 ...
output:
8 0 197 8 2 8 0 196 8 2 8 0 195 8 2 8 0 194 8 2 8 0 193 8 2 8 0 192 8 2 8 0 191 8 2 8 0 190 8 2 8 0 189 8 2 8 0 188 8 2 8 0 187 8 2 8 0 186 8 2 8 0 185 8 2 8 0 184 8 2 8 1 184 8 0 183 8 2 8 0 182 8 2 8 0 181 8 2 8 0 180 8 2 8 0 179 8 2 8 0 178 8 2 8 1 178 8 0 177 8 2 8 0 176 8 2 8 0 175 8 2 8 0 174 ...
result:
ok
Subtask #2:
score: 15
Accepted
Test #24:
score: 15
Accepted
time: 17ms
memory: 3952kb
input:
1000 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 999 8 2 8 0 998 8 2 8 1 998 8 0 997 8 2 8 1 997 8 0 996 8 2 8 1 996 8 0 995 8 2 8 1 995 8 0 994 8 2 8 1 994 8 0 993 8 2 8 1 993 8 0 992 8 2 8 1 992 8 0 991 8 2 8 1 991 8 0 990 8 2 8 1 990 8 0 989 8 2 8 1 989 8 0 988 8 2 8 1 988 8 0 987 8 2 8 1 987 8 0 986 8 2 8 1 986 8 0 985 8 2 8 1 985 8 0 984 ...
result:
ok
Test #25:
score: 0
Accepted
time: 94ms
memory: 3804kb
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:
8 0 999 8 2 8 0 998 8 2 8 0 997 8 2 8 0 996 8 2 8 0 995 8 2 8 0 994 8 2 8 0 993 8 2 8 0 992 8 2 8 0 991 8 2 8 0 990 8 2 8 0 989 8 2 8 0 988 8 2 8 0 987 8 2 8 0 986 8 2 8 0 985 8 2 8 0 984 8 2 8 0 983 8 2 8 0 982 8 2 8 0 981 8 2 8 0 980 8 2 8 0 979 8 2 8 0 978 8 2 8 0 977 8 2 8 0 976 8 2 8 0 975 8 2 ...
result:
ok
Test #26:
score: 0
Accepted
time: 63ms
memory: 3940kb
input:
999 1 1 1 1 1 2 1 1 1 1 1 1 1 2 1 1 2 1 1 1 1 2 1 2 2 2 1 1 2 1 2 2 2 2 2 1 2 2 1 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 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 1 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
output:
8 0 998 8 2 8 0 997 8 2 8 0 996 8 2 8 0 995 8 2 8 0 994 8 2 8 0 993 8 2 8 1 993 8 0 992 8 2 8 0 991 8 2 8 0 990 8 2 8 0 989 8 2 8 0 988 8 2 8 0 987 8 2 8 0 986 8 2 8 0 985 8 2 8 1 985 8 0 984 8 2 8 0 983 8 2 8 0 982 8 2 8 1 982 8 0 981 8 2 8 0 980 8 2 8 0 979 8 2 8 0 978 8 2 8 0 977 8 2 8 1 977 8 0 ...
result:
ok
Test #27:
score: 0
Accepted
time: 75ms
memory: 3860kb
input:
999 1 1 1 2 1 2 1 1 1 1 2 1 1 2 2 2 1 1 1 1 1 2 1 1 2 1 2 1 1 2 1 2 2 2 1 2 2 2 1 2 2 2 1 2 2 2 2 1 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 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 2 2 1 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 ...
output:
8 0 998 8 2 8 0 997 8 2 8 0 996 8 2 8 0 995 8 2 8 1 995 8 0 994 8 2 8 0 993 8 2 8 1 993 8 0 992 8 2 8 0 991 8 2 8 0 990 8 2 8 0 989 8 2 8 0 988 8 2 8 1 988 8 0 987 8 2 8 0 986 8 2 8 0 985 8 2 8 1 985 8 0 984 8 2 8 1 984 8 0 983 8 2 8 1 983 8 0 982 8 2 8 0 981 8 2 8 0 980 8 2 8 0 979 8 2 8 0 978 8 2 ...
result:
ok
Test #28:
score: 0
Accepted
time: 81ms
memory: 3904kb
input:
996 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 995 8 2 8 0 994 8 2 8 1 994 8 0 993 8 2 8 1 993 8 0 992 8 2 8 1 992 8 0 991 8 2 8 1 991 8 0 990 8 2 8 1 990 8 0 989 8 2 8 1 989 8 0 988 8 2 8 1 988 8 0 987 8 2 8 1 987 8 0 986 8 2 8 1 986 8 0 985 8 2 8 1 985 8 0 984 8 2 8 1 984 8 0 983 8 2 8 1 983 8 0 982 8 2 8 1 982 8 0 981 8 2 8 1 981 8 0 980 ...
result:
ok
Test #29:
score: 0
Accepted
time: 41ms
memory: 3948kb
input:
995 1 1 2 1 1 2 1 2 1 2 2 2 2 1 1 2 1 2 2 2 1 1 1 1 1 1 2 1 2 2 2 1 1 1 1 1 1 2 1 1 1 2 1 2 1 1 2 2 1 1 2 2 2 1 1 2 1 2 1 1 1 2 1 2 1 2 1 2 2 1 1 1 2 1 2 2 1 1 2 2 2 2 1 2 1 2 1 2 2 1 1 1 1 1 2 2 1 1 1 1 1 1 1 1 2 2 2 1 2 2 1 1 1 1 1 2 2 1 2 1 2 1 2 2 2 2 1 2 1 2 2 1 1 1 1 2 1 1 1 1 2 1 1 1 1 2 1 1 ...
output:
8 0 994 8 2 8 0 993 8 2 8 0 992 8 2 8 1 992 8 0 991 8 2 8 0 990 8 2 8 0 989 8 2 8 1 989 8 0 988 8 2 8 0 987 8 2 8 1 987 8 0 986 8 2 8 0 985 8 2 8 1 985 8 0 984 8 2 8 1 984 8 0 983 8 2 8 1 983 8 0 982 8 2 8 1 982 8 0 981 8 2 8 0 980 8 2 8 0 979 8 2 8 1 979 8 0 978 8 2 8 0 977 8 2 8 1 977 8 0 976 8 2 ...
result:
ok
Test #30:
score: 0
Accepted
time: 53ms
memory: 3952kb
input:
998 1 1 1 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 997 8 2 8 0 996 8 2 8 0 995 8 2 8 0 994 8 2 8 1 994 8 0 993 8 2 8 1 993 8 0 992 8 2 8 1 992 8 0 991 8 2 8 1 991 8 0 990 8 2 8 0 989 8 2 8 1 989 8 0 988 8 2 8 1 988 8 0 987 8 2 8 1 987 8 0 986 8 2 8 1 986 8 0 985 8 2 8 1 985 8 0 984 8 2 8 1 984 8 0 983 8 2 8 1 983 8 0 982 8 2 8 1 982 8 0 981 8 2 ...
result:
ok
Test #31:
score: 0
Accepted
time: 89ms
memory: 3864kb
input:
998 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 2 2 2 1 2 2 1 2 1 1 2 1 2 2 2 2 1 1 1 2 2 2 1 1 1 2 2 1 2 2 2 1 2 1 2 2 1 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 997 8 2 8 0 996 8 2 8 0 995 8 2 8 0 994 8 2 8 0 993 8 2 8 0 992 8 2 8 0 991 8 2 8 0 990 8 2 8 0 989 8 2 8 0 988 8 2 8 1 988 8 0 987 8 2 8 0 986 8 2 8 0 985 8 2 8 0 984 8 2 8 0 983 8 2 8 0 982 8 2 8 1 982 8 0 981 8 2 8 1 981 8 0 980 8 2 8 1 980 8 0 979 8 2 8 0 978 8 2 8 1 978 8 0 977 8 2 8 1 977 ...
result:
ok
Test #32:
score: 0
Accepted
time: 65ms
memory: 3860kb
input:
1000 1 1 2 2 2 2 1 1 2 2 2 2 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 999 8 2 8 0 998 8 2 8 0 997 8 2 8 1 997 8 0 996 8 2 8 1 996 8 0 995 8 2 8 1 995 8 0 994 8 2 8 1 994 8 0 993 8 2 8 0 992 8 2 8 0 991 8 2 8 1 991 8 0 990 8 2 8 1 990 8 0 989 8 2 8 1 989 8 0 988 8 2 8 1 988 8 0 987 8 2 8 1 987 8 0 986 8 2 8 1 986 8 0 985 8 2 8 1 985 8 0 984 8 2 8 1 984 8 0 983 8 2 ...
result:
ok
Test #33:
score: 0
Accepted
time: 109ms
memory: 3936kb
input:
996 1 1 1 2 1 2 1 1 2 2 2 1 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 995 8 2 8 0 994 8 2 8 0 993 8 2 8 0 992 8 2 8 1 992 8 0 991 8 2 8 0 990 8 2 8 1 990 8 0 989 8 2 8 0 988 8 2 8 0 987 8 2 8 1 987 8 0 986 8 2 8 1 986 8 0 985 8 2 8 1 985 8 0 984 8 2 8 0 983 8 2 8 1 983 8 0 982 8 2 8 1 982 8 0 981 8 2 8 1 981 8 0 980 8 2 8 1 980 8 0 979 8 2 8 1 979 8 0 978 8 2 8 0 ...
result:
ok
Test #34:
score: 0
Accepted
time: 94ms
memory: 3932kb
input:
1000 1 1 1 2 2 1 2 1 1 2 1 1 2 2 2 2 1 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 999 8 2 8 0 998 8 2 8 0 997 8 2 8 0 996 8 2 8 1 996 8 0 995 8 2 8 1 995 8 0 994 8 2 8 0 993 8 2 8 1 993 8 0 992 8 2 8 0 991 8 2 8 0 990 8 2 8 1 990 8 0 989 8 2 8 0 988 8 2 8 0 987 8 2 8 1 987 8 0 986 8 2 8 1 986 8 0 985 8 2 8 1 985 8 0 984 8 2 8 1 984 8 0 983 8 2 8 0 982 8 2 8 1 982 8 0 981 8 2 ...
result:
ok
Test #35:
score: 0
Accepted
time: 76ms
memory: 3856kb
input:
1000 1 1 1 1 2 1 1 2 2 1 2 1 2 2 2 1 2 2 1 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 999 8 2 8 0 998 8 2 8 0 997 8 2 8 0 996 8 2 8 0 995 8 2 8 1 995 8 0 994 8 2 8 0 993 8 2 8 0 992 8 2 8 1 992 8 0 991 8 2 8 1 991 8 0 990 8 2 8 0 989 8 2 8 1 989 8 0 988 8 2 8 0 987 8 2 8 1 987 8 0 986 8 2 8 1 986 8 0 985 8 2 8 1 985 8 0 984 8 2 8 0 983 8 2 8 1 983 8 0 982 8 2 8 1 982 8 0 981 8 2 ...
result:
ok
Test #36:
score: 0
Accepted
time: 68ms
memory: 3944kb
input:
997 1 1 1 1 1 1 2 1 1 2 2 2 1 2 2 2 2 1 1 2 2 1 2 2 2 2 1 2 2 2 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 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 996 8 2 8 0 995 8 2 8 0 994 8 2 8 0 993 8 2 8 0 992 8 2 8 0 991 8 2 8 0 990 8 2 8 1 990 8 0 989 8 2 8 0 988 8 2 8 0 987 8 2 8 1 987 8 0 986 8 2 8 1 986 8 0 985 8 2 8 1 985 8 0 984 8 2 8 0 983 8 2 8 1 983 8 0 982 8 2 8 1 982 8 0 981 8 2 8 1 981 8 0 980 8 2 8 1 980 8 0 979 8 2 8 0 978 8 2 8 0 977 ...
result:
ok
Test #37:
score: 0
Accepted
time: 88ms
memory: 3868kb
input:
995 1 1 1 1 1 2 1 1 1 2 1 2 2 2 1 1 2 2 2 2 1 2 2 1 2 2 2 2 1 2 2 2 2 1 2 2 2 2 2 2 2 1 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 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 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 2 2 2 2 2 ...
output:
8 0 994 8 2 8 0 993 8 2 8 0 992 8 2 8 0 991 8 2 8 0 990 8 2 8 0 989 8 2 8 1 989 8 0 988 8 2 8 0 987 8 2 8 0 986 8 2 8 0 985 8 2 8 1 985 8 0 984 8 2 8 0 983 8 2 8 1 983 8 0 982 8 2 8 1 982 8 0 981 8 2 8 1 981 8 0 980 8 2 8 0 979 8 2 8 0 978 8 2 8 1 978 8 0 977 8 2 8 1 977 8 0 976 8 2 8 1 976 8 0 975 ...
result:
ok
Test #38:
score: 0
Accepted
time: 54ms
memory: 3864kb
input:
997 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 2 1 2 2 2 2 1 1 1 2 2 2 2 1 2 1 1 1 1 2 2 2 1 1 2 2 2 1 2 2 1 1 1 2 1 1 2 2 1 2 2 2 2 2 2 2 2 2 1 1 2 2 2 2 2 2 2 1 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 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 1 2 2 2 2 2 2 2 2 2 2 2 1 1 ...
output:
8 0 996 8 2 8 0 995 8 2 8 0 994 8 2 8 0 993 8 2 8 0 992 8 2 8 0 991 8 2 8 0 990 8 2 8 0 989 8 2 8 0 988 8 2 8 0 987 8 2 8 0 986 8 2 8 0 985 8 2 8 0 984 8 2 8 0 983 8 2 8 0 982 8 2 8 0 981 8 2 8 0 980 8 2 8 0 979 8 2 8 1 979 8 0 978 8 2 8 0 977 8 2 8 0 976 8 2 8 0 975 8 2 8 1 975 8 0 974 8 2 8 0 973 ...
result:
ok
Test #39:
score: 0
Accepted
time: 123ms
memory: 3984kb
input:
997 1 1 1 1 1 1 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 2 1 1 2 1 2 1 2 2 2 2 1 1 1 2 1 1 2 1 1 1 2 1 2 1 1 1 1 1 1 2 1 2 1 1 2 1 2 1 1 2 1 2 1 2 1 1 2 1 2 1 1 2 2 2 1 1 2 2 1 1 2 1 2 2 2 1 2 1 2 2 1 1 2 2 2 2 2 2 1 2 2 2 2 2 1 1 2 2 1 2 1 2 2 2 2 2 2 2 2 2 1 2 2 1 2 2 2 1 1 2 2 2 1 2 2 ...
output:
8 0 996 8 2 8 0 995 8 2 8 0 994 8 2 8 0 993 8 2 8 0 992 8 2 8 0 991 8 2 8 0 990 8 2 8 0 989 8 2 8 0 988 8 2 8 0 987 8 2 8 0 986 8 2 8 0 985 8 2 8 0 984 8 2 8 0 983 8 2 8 0 982 8 2 8 0 981 8 2 8 0 980 8 2 8 0 979 8 2 8 0 978 8 2 8 0 977 8 2 8 0 976 8 2 8 0 975 8 2 8 0 974 8 2 8 0 973 8 2 8 0 972 8 2 ...
result:
ok
Test #40:
score: 0
Accepted
time: 41ms
memory: 3860kb
input:
996 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 2 1 2 1 1 1 1 2 1 2 2 1 1 1 1 1 1 1 1 1 2 1 1 1 2 1 1 1 1 2 2 2 2 2 2 1 1 1 2 1 2 1 1 1 2 1 1 1 1 1 2 1 2 1 1 1 1 1 1 2 2 2 2 1 1 1 1 1 1 1 2 2 1 1 2 1 1 1 1 1 1 2 1 1 2 2 1 1 1 2 2 1 2 2 1 1 1 1 2 2 2 1 2 2 1 2 1 2 1 1 1 1 2 2 1 1 2 1 2 1 1 1 ...
output:
8 0 995 8 2 8 0 994 8 2 8 0 993 8 2 8 0 992 8 2 8 0 991 8 2 8 0 990 8 2 8 0 989 8 2 8 0 988 8 2 8 0 987 8 2 8 0 986 8 2 8 0 985 8 2 8 0 984 8 2 8 0 983 8 2 8 0 982 8 2 8 0 981 8 2 8 0 980 8 2 8 0 979 8 2 8 0 978 8 2 8 0 977 8 2 8 0 976 8 2 8 0 975 8 2 8 0 974 8 2 8 0 973 8 2 8 0 972 8 2 8 1 972 8 0 ...
result:
ok
Test #41:
score: 0
Accepted
time: 77ms
memory: 3916kb
input:
995 1 1 1 1 1 1 1 1 1 1 1 1 1 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 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 2 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 2 1 2 1 2 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 1 1 ...
output:
8 0 994 8 2 8 0 993 8 2 8 0 992 8 2 8 0 991 8 2 8 0 990 8 2 8 0 989 8 2 8 0 988 8 2 8 0 987 8 2 8 0 986 8 2 8 0 985 8 2 8 0 984 8 2 8 0 983 8 2 8 0 982 8 2 8 0 981 8 2 8 0 980 8 2 8 0 979 8 2 8 0 978 8 2 8 0 977 8 2 8 0 976 8 2 8 0 975 8 2 8 0 974 8 2 8 0 973 8 2 8 0 972 8 2 8 0 971 8 2 8 0 970 8 2 ...
result:
ok
Test #42:
score: 0
Accepted
time: 88ms
memory: 3936kb
input:
995 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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 1 1 1 1 2 1 1 1 1 2 1 1 1 1 1 2 1 1 1 1 1 1 2 1 1 1 1 1 1 1 2 1 1 1 2 1 1 1 1 1 1 1 1 2 1 1 1 1 1 2 2 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 2 1 1 1 1 2 1 1 1 1 1 2 1 1 1 1 1 1 1 ...
output:
8 0 994 8 2 8 0 993 8 2 8 0 992 8 2 8 0 991 8 2 8 0 990 8 2 8 0 989 8 2 8 0 988 8 2 8 0 987 8 2 8 0 986 8 2 8 0 985 8 2 8 0 984 8 2 8 0 983 8 2 8 0 982 8 2 8 0 981 8 2 8 0 980 8 2 8 0 979 8 2 8 0 978 8 2 8 0 977 8 2 8 0 976 8 2 8 0 975 8 2 8 0 974 8 2 8 0 973 8 2 8 0 972 8 2 8 0 971 8 2 8 0 970 8 2 ...
result:
ok
Subtask #3:
score: 22.5
Acceptable Answer
Test #43:
score: 75
Accepted
time: 0ms
memory: 3760kb
input:
2 1 2 2
output:
8 0 1 8 2 8 0 0 8 2 8 1 0 8 1 1 8 0 0 8 0 1 8 2 8 1 1 8 1 0 8 0 0 8 0 1 8 1 0 8 1 1 8 3 2
result:
ok
Test #44:
score: 75
Accepted
time: 2ms
memory: 3764kb
input:
2 1 1 1
output:
8 0 1 8 2 8 0 0 8 2 8 1 0 8 1 1 8 0 0 8 0 1 8 2 8 1 0 8 1 1 8 3 1
result:
ok
Test #45:
score: 75
Accepted
time: 0ms
memory: 3832kb
input:
3 1 2 1 2 1 2
output:
8 0 2 8 2 8 0 1 8 2 8 1 1 8 0 0 8 2 8 1 0 8 1 2 8 0 0 8 0 1 8 0 2 8 2 8 1 0 8 1 1 8 1 2 8 0 0 8 0 1 8 2 8 0 2 8 2 8 1 2 8 1 0 8 1 1 8 3 1
result:
ok
Test #46:
score: 75
Accepted
time: 3ms
memory: 3708kb
input:
6 1 2 2 1 2 2 3 4 4 2 1 2 2 2
output:
8 0 5 8 2 8 0 4 8 2 8 1 4 8 0 3 8 2 8 1 3 8 0 2 8 2 8 0 1 8 2 8 1 1 8 0 0 8 2 8 1 0 8 1 2 8 1 5 8 0 0 8 0 1 8 0 2 8 0 3 8 2 8 0 4 8 2 8 1 4 8 0 5 8 2 8 1 5 8 1 0 8 1 1 8 1 2 8 1 3 8 0 0 8 0 1 8 2 8 1 1 8 0 2 8 2 8 0 3 8 2 8 1 3 8 0 4 8 2 8 1 4 8 0 5 8 2 8 1 5 8 1 0 8 1 2 8 3 1
result:
ok
Test #47:
score: 64.33
Acceptable Answer
time: 4ms
memory: 3872kb
input:
10 1 2 1 2 2 2 2 2 2 2 3 4 4 5 6 2 3 2 3 3 3 3 3 3 3 3 4 4 4 4 3 3 4 4 5 5
output:
8 0 9 8 2 8 0 8 8 2 8 1 8 8 0 7 8 2 8 0 6 8 2 8 1 6 8 0 5 8 2 8 1 5 8 0 4 8 2 8 1 4 8 0 3 8 2 8 1 3 8 0 2 8 2 8 1 2 8 0 1 8 2 8 1 1 8 0 0 8 2 8 1 0 8 1 7 8 1 9 8 0 0 8 0 1 8 0 2 8 0 3 8 0 4 8 0 5 8 2 8 0 6 8 2 8 0 7 8 2 8 0 8 8 2 8 0 9 8 2 8 1 9 8 1 0 8 1 1 8 1 2 8 1 3 8 1 4 8 1 5 8 1 6 8 1 7 8 1 8 ...
result:
points 0.85773333330 points 0.85773333330
Test #48:
score: 22.5
Acceptable Answer
time: 59ms
memory: 4044kb
input:
2000 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1999 8 2 8 0 1998 8 2 8 1 1998 8 0 1997 8 2 8 1 1997 8 0 1996 8 2 8 1 1996 8 0 1995 8 2 8 1 1995 8 0 1994 8 2 8 1 1994 8 0 1993 8 2 8 1 1993 8 0 1992 8 2 8 1 1992 8 0 1991 8 2 8 1 1991 8 0 1990 8 2 8 1 1990 8 0 1989 8 2 8 1 1989 8 0 1988 8 2 8 1 1988 8 0 1987 8 2 8 1 1987 8 0 1986 8 2 8 1 1986 8...
result:
points 0.30 points 0.30
Test #49:
score: 25
Acceptable Answer
time: 139ms
memory: 4020kb
input:
2000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
8 0 1999 8 2 8 0 1998 8 2 8 0 1997 8 2 8 0 1996 8 2 8 0 1995 8 2 8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 0 1991 8 2 8 0 1990 8 2 8 0 1989 8 2 8 0 1988 8 2 8 0 1987 8 2 8 0 1986 8 2 8 0 1985 8 2 8 0 1984 8 2 8 0 1983 8 2 8 0 1982 8 2 8 0 1981 8 2 8 0 1980 8 2 8 0 1979 8 2 8 0 1978 8 2 8 0 1977 8 2 8...
result:
points 0.33333333330 points 0.33333333330
Test #50:
score: 22.5
Acceptable Answer
time: 119ms
memory: 3900kb
input:
2000 1 1 1 1 1 1 1 1 1 1 1 1 2 2 1 1 2 1 1 1 1 2 1 1 1 2 1 1 2 2 2 2 1 1 2 2 1 1 2 2 1 2 1 2 1 2 2 2 2 1 2 2 2 2 1 1 2 2 2 2 2 2 2 1 1 2 1 2 2 2 1 1 1 2 2 2 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 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 2...
output:
8 0 1999 8 2 8 0 1998 8 2 8 0 1997 8 2 8 0 1996 8 2 8 0 1995 8 2 8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 0 1991 8 2 8 0 1990 8 2 8 0 1989 8 2 8 0 1988 8 2 8 0 1987 8 2 8 1 1987 8 0 1986 8 2 8 1 1986 8 0 1985 8 2 8 0 1984 8 2 8 0 1983 8 2 8 1 1983 8 0 1982 8 2 8 0 1981 8 2 8 0 1980 8 2 8 0 1979 8 2 ...
result:
points 0.30 points 0.30
Test #51:
score: 22.5
Acceptable Answer
time: 131ms
memory: 3928kb
input:
2000 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 1 2 1 2 1 1 1 1 1 1 1 1 2 2 2 1 1 1 2 2 1 1 2 2 2 2 2 2 2 2 2 2 2 1 1 2 1 2 2 1 2 1 2 2 2 2 2 2 2 2 1 2 1 1 1 2 2 2 2 2 2 1 2 2 2 2 2 2 2 1 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1999 8 2 8 0 1998 8 2 8 1 1998 8 0 1997 8 2 8 0 1996 8 2 8 0 1995 8 2 8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 0 1991 8 2 8 0 1990 8 2 8 0 1989 8 2 8 0 1988 8 2 8 1 1988 8 0 1987 8 2 8 0 1986 8 2 8 0 1985 8 2 8 0 1984 8 2 8 0 1983 8 2 8 1 1983 8 0 1982 8 2 8 0 1981 8 2 8 1 1981 8 0 1980 8 2 8 0 ...
result:
points 0.30 points 0.30
Test #52:
score: 25
Acceptable Answer
time: 149ms
memory: 3920kb
input:
2000 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1999 8 2 8 0 1998 8 2 8 1 1998 8 0 1997 8 2 8 1 1997 8 0 1996 8 2 8 1 1996 8 0 1995 8 2 8 1 1995 8 0 1994 8 2 8 1 1994 8 0 1993 8 2 8 1 1993 8 0 1992 8 2 8 1 1992 8 0 1991 8 2 8 1 1991 8 0 1990 8 2 8 1 1990 8 0 1989 8 2 8 1 1989 8 0 1988 8 2 8 1 1988 8 0 1987 8 2 8 1 1987 8 0 1986 8 2 8 1 1986 8...
result:
points 0.33333333330 points 0.33333333330
Test #53:
score: 25
Acceptable Answer
time: 96ms
memory: 4048kb
input:
2000 1 1 1 1 2 2 1 1 2 2 2 1 2 2 2 1 2 2 2 2 2 2 1 1 2 1 2 1 2 1 1 1 1 2 2 1 1 1 2 1 2 2 2 2 1 1 2 2 1 1 2 2 2 2 1 1 2 1 1 2 2 2 2 1 2 1 1 2 2 1 1 1 2 2 2 1 2 1 2 1 1 2 1 1 2 2 1 1 1 2 1 2 2 2 1 1 1 2 2 2 2 1 1 2 1 2 1 1 2 1 2 1 2 2 2 1 1 1 2 1 2 2 1 1 1 2 2 2 1 2 2 2 2 1 1 2 1 2 1 2 1 2 2 2 1 1 1 2...
output:
8 0 1999 8 2 8 0 1998 8 2 8 0 1997 8 2 8 0 1996 8 2 8 0 1995 8 2 8 1 1995 8 0 1994 8 2 8 1 1994 8 0 1993 8 2 8 0 1992 8 2 8 0 1991 8 2 8 1 1991 8 0 1990 8 2 8 1 1990 8 0 1989 8 2 8 1 1989 8 0 1988 8 2 8 0 1987 8 2 8 1 1987 8 0 1986 8 2 8 1 1986 8 0 1985 8 2 8 1 1985 8 0 1984 8 2 8 0 1983 8 2 8 1 198...
result:
points 0.33333333330 points 0.33333333330
Test #54:
score: 22.5
Acceptable Answer
time: 175ms
memory: 4036kb
input:
2000 1 2 2 2 1 1 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1999 8 2 8 0 1998 8 2 8 1 1998 8 0 1997 8 2 8 1 1997 8 0 1996 8 2 8 1 1996 8 0 1995 8 2 8 0 1994 8 2 8 0 1993 8 2 8 1 1993 8 0 1992 8 2 8 1 1992 8 0 1991 8 2 8 0 1990 8 2 8 1 1990 8 0 1989 8 2 8 1 1989 8 0 1988 8 2 8 1 1988 8 0 1987 8 2 8 1 1987 8 0 1986 8 2 8 1 1986 8 0 1985 8 2 8 1 1985 8 0 19...
result:
points 0.30 points 0.30
Test #55:
score: 25
Acceptable Answer
time: 121ms
memory: 4060kb
input:
2000 1 1 1 1 1 1 1 1 1 1 1 2 1 2 1 1 1 1 1 2 2 2 2 1 2 1 2 1 2 1 2 2 1 1 2 2 2 1 1 1 1 1 1 1 2 2 1 1 1 2 1 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 1 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 1 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2...
output:
8 0 1999 8 2 8 0 1998 8 2 8 0 1997 8 2 8 0 1996 8 2 8 0 1995 8 2 8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 0 1991 8 2 8 0 1990 8 2 8 0 1989 8 2 8 0 1988 8 2 8 1 1988 8 0 1987 8 2 8 0 1986 8 2 8 1 1986 8 0 1985 8 2 8 0 1984 8 2 8 0 1983 8 2 8 0 1982 8 2 8 0 1981 8 2 8 0 1980 8 2 8 1 1980 8 0 1979 8 2 ...
result:
points 0.33333333330 points 0.33333333330
Test #56:
score: 22.5
Acceptable Answer
time: 125ms
memory: 3900kb
input:
1998 1 1 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1997 8 2 8 0 1996 8 2 8 0 1995 8 2 8 1 1995 8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 0 1991 8 2 8 1 1991 8 0 1990 8 2 8 1 1990 8 0 1989 8 2 8 1 1989 8 0 1988 8 2 8 1 1988 8 0 1987 8 2 8 1 1987 8 0 1986 8 2 8 1 1986 8 0 1985 8 2 8 1 1985 8 0 1984 8 2 8 1 1984 8 0 1983 8 2 8 1 1983 8 0 1982 8 2 8 ...
result:
points 0.30 points 0.30
Test #57:
score: 22.5
Acceptable Answer
time: 101ms
memory: 3928kb
input:
1999 1 1 1 1 2 2 1 2 2 2 2 2 2 2 1 1 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1998 8 2 8 0 1997 8 2 8 0 1996 8 2 8 0 1995 8 2 8 0 1994 8 2 8 1 1994 8 0 1993 8 2 8 1 1993 8 0 1992 8 2 8 0 1991 8 2 8 1 1991 8 0 1990 8 2 8 1 1990 8 0 1989 8 2 8 1 1989 8 0 1988 8 2 8 1 1988 8 0 1987 8 2 8 1 1987 8 0 1986 8 2 8 1 1986 8 0 1985 8 2 8 1 1985 8 0 1984 8 2 8 0 1983 8 2 8 0 1982 8 ...
result:
points 0.30 points 0.30
Test #58:
score: 22.5
Acceptable Answer
time: 190ms
memory: 4032kb
input:
1997 1 1 1 1 2 1 2 2 1 2 2 2 1 2 2 2 2 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1996 8 2 8 0 1995 8 2 8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 1 1992 8 0 1991 8 2 8 0 1990 8 2 8 1 1990 8 0 1989 8 2 8 1 1989 8 0 1988 8 2 8 0 1987 8 2 8 1 1987 8 0 1986 8 2 8 1 1986 8 0 1985 8 2 8 1 1985 8 0 1984 8 2 8 0 1983 8 2 8 1 1983 8 0 1982 8 2 8 1 1982 8 0 1981 8 2 8 1 1981 8 0 1980 8 ...
result:
points 0.30 points 0.30
Test #59:
score: 22.5
Acceptable Answer
time: 174ms
memory: 3948kb
input:
1998 1 1 1 1 1 1 1 1 1 2 2 2 1 1 2 2 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1997 8 2 8 0 1996 8 2 8 0 1995 8 2 8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 0 1991 8 2 8 0 1990 8 2 8 0 1989 8 2 8 0 1988 8 2 8 1 1988 8 0 1987 8 2 8 1 1987 8 0 1986 8 2 8 1 1986 8 0 1985 8 2 8 0 1984 8 2 8 0 1983 8 2 8 1 1983 8 0 1982 8 2 8 1 1982 8 0 1981 8 2 8 1 1981 8 0 1980 8 2 8 1 1980 8 0...
result:
points 0.30 points 0.30
Test #60:
score: 22.5
Acceptable Answer
time: 122ms
memory: 3952kb
input:
1996 1 1 1 1 1 1 1 1 2 2 1 2 1 2 2 2 2 2 2 1 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1995 8 2 8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 0 1991 8 2 8 0 1990 8 2 8 0 1989 8 2 8 0 1988 8 2 8 0 1987 8 2 8 1 1987 8 0 1986 8 2 8 1 1986 8 0 1985 8 2 8 0 1984 8 2 8 1 1984 8 0 1983 8 2 8 0 1982 8 2 8 1 1982 8 0 1981 8 2 8 1 1981 8 0 1980 8 2 8 1 1980 8 0 1979 8 2 8 1 1979 8 0 1978 8 2 8 1...
result:
points 0.30 points 0.30
Test #61:
score: 22.5
Acceptable Answer
time: 165ms
memory: 4056kb
input:
2000 1 1 1 1 1 1 1 1 2 1 2 1 2 2 2 2 1 2 1 2 1 1 2 2 2 2 1 2 1 2 2 2 1 1 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1999 8 2 8 0 1998 8 2 8 0 1997 8 2 8 0 1996 8 2 8 0 1995 8 2 8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 0 1991 8 2 8 1 1991 8 0 1990 8 2 8 0 1989 8 2 8 1 1989 8 0 1988 8 2 8 0 1987 8 2 8 1 1987 8 0 1986 8 2 8 1 1986 8 0 1985 8 2 8 1 1985 8 0 1984 8 2 8 1 1984 8 0 1983 8 2 8 0 1982 8 2 8 1 1982 8 0...
result:
points 0.30 points 0.30
Test #62:
score: 22.5
Acceptable Answer
time: 164ms
memory: 4036kb
input:
1998 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 2 1 2 1 2 1 2 2 2 2 2 1 2 2 2 2 2 2 1 2 2 2 2 2 1 2 1 2 2 1 1 2 2 1 2 1 2 2 2 1 2 2 1 2 2 2 2 2 2 2 2 2 2 2 1 1 2 2 1 1 1 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2...
output:
8 0 1997 8 2 8 0 1996 8 2 8 0 1995 8 2 8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 1 1992 8 0 1991 8 2 8 0 1990 8 2 8 0 1989 8 2 8 0 1988 8 2 8 0 1987 8 2 8 0 1986 8 2 8 0 1985 8 2 8 0 1984 8 2 8 0 1983 8 2 8 0 1982 8 2 8 1 1982 8 0 1981 8 2 8 0 1980 8 2 8 0 1979 8 2 8 0 1978 8 2 8 0 1977 8 2 8 0 1976 ...
result:
points 0.30 points 0.30
Test #63:
score: 22.5
Acceptable Answer
time: 100ms
memory: 3956kb
input:
2000 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 1 2 1 2 2 1 1 1 1 1 2 2 1 1 1 1 1 1 2 1 1 1 1 1 1 2 1 1 2 2 2 2 2 2 1 2 2 2 2 1 1 1 1 2 2 1 1 2 2 1 1 1 2 2 1 1 1 2 2 1 2 1 1 2 1 1 2 1 1 2 2 2 2 2 1 1 2 1 2 2 2 2 2 2 2 1 2 1 2 1 2 1 1 2 2 2 2 2 2 1 2 2 2 2 1 1 2 1 2 1 2 1 2 1 2 2 1 1 2 2 1 1 2 2 1 1 2 2 2 2 2 2...
output:
8 0 1999 8 2 8 0 1998 8 2 8 0 1997 8 2 8 0 1996 8 2 8 0 1995 8 2 8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 0 1991 8 2 8 1 1991 8 0 1990 8 2 8 0 1989 8 2 8 0 1988 8 2 8 0 1987 8 2 8 0 1986 8 2 8 0 1985 8 2 8 0 1984 8 2 8 0 1983 8 2 8 0 1982 8 2 8 1 1982 8 0 1981 8 2 8 0 1980 8 2 8 1 1980 8 0 1979 8 2 ...
result:
points 0.30 points 0.30
Test #64:
score: 25
Acceptable Answer
time: 189ms
memory: 4080kb
input:
1995 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 1 2 2 1 1 2 1 1 2 1 2 1 1 1 1 1 2 1 2 1 1 2 2 1 1 1 2 2 1 1 1 2 1 1 1 1 1 1 1 1 2 1 2 1 1 1 1 1 1 2 2 2 1 1 1 1 1 1 1 1 2 1 1 2 1 1 1 1 1 1 1 2 2 1 2 1 1 1 1 1 1 1 1 2 1 2 1 2 1 1 1 2 2 1 1 1 1 2 1 1 2 2 2 1 2 2 2 2 1 1 2 2 1 1 2 2 1 2 2 2 2 1 1 2 2 1 1...
output:
8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 0 1991 8 2 8 0 1990 8 2 8 0 1989 8 2 8 0 1988 8 2 8 0 1987 8 2 8 0 1986 8 2 8 0 1985 8 2 8 0 1984 8 2 8 0 1983 8 2 8 0 1982 8 2 8 0 1981 8 2 8 0 1980 8 2 8 0 1979 8 2 8 0 1978 8 2 8 0 1977 8 2 8 0 1976 8 2 8 0 1975 8 2 8 1 1975 8 0 1974 8 2 8 1 1974 8 0 1973 ...
result:
points 0.33333333330 points 0.33333333330
Test #65:
score: 25
Acceptable Answer
time: 140ms
memory: 3956kb
input:
1999 1 1 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 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 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 2 2 1 1 1 1 1 2 2 1 1 2 1 1 1 1 1 1 1 1 2 1 1 1 1 1 2 1 1 1 2 1 1 1 2 1 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 2 1 1 1 2 1 1 1 1 1 2 2 1 1 1 1...
output:
8 0 1998 8 2 8 0 1997 8 2 8 0 1996 8 2 8 0 1995 8 2 8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 0 1991 8 2 8 0 1990 8 2 8 0 1989 8 2 8 0 1988 8 2 8 1 1988 8 0 1987 8 2 8 0 1986 8 2 8 0 1985 8 2 8 0 1984 8 2 8 0 1983 8 2 8 0 1982 8 2 8 0 1981 8 2 8 0 1980 8 2 8 0 1979 8 2 8 0 1978 8 2 8 0 1977 8 2 8 0 1...
result:
points 0.33333333330 points 0.33333333330
Test #66:
score: 25
Acceptable Answer
time: 102ms
memory: 3892kb
input:
1998 1 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 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 2 1 1 1 1 1 1 2 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 1 1 1 1 1 1 1 1 1 1 2 1 1 1 2 1 1...
output:
8 0 1997 8 2 8 0 1996 8 2 8 0 1995 8 2 8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 0 1991 8 2 8 0 1990 8 2 8 0 1989 8 2 8 0 1988 8 2 8 0 1987 8 2 8 0 1986 8 2 8 0 1985 8 2 8 0 1984 8 2 8 0 1983 8 2 8 0 1982 8 2 8 0 1981 8 2 8 0 1980 8 2 8 0 1979 8 2 8 0 1978 8 2 8 0 1977 8 2 8 0 1976 8 2 8 0 1975 8 2 8...
result:
points 0.33333333330 points 0.33333333330
Test #67:
score: 25
Acceptable Answer
time: 129ms
memory: 4056kb
input:
1999 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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 1 1 2 1 1 2 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...
output:
8 0 1998 8 2 8 0 1997 8 2 8 0 1996 8 2 8 0 1995 8 2 8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 0 1991 8 2 8 0 1990 8 2 8 0 1989 8 2 8 0 1988 8 2 8 0 1987 8 2 8 0 1986 8 2 8 0 1985 8 2 8 0 1984 8 2 8 0 1983 8 2 8 0 1982 8 2 8 0 1981 8 2 8 0 1980 8 2 8 0 1979 8 2 8 0 1978 8 2 8 0 1977 8 2 8 1 1977 8 0 1...
result:
points 0.33333333330 points 0.33333333330
Test #68:
score: 22.5
Acceptable Answer
time: 150ms
memory: 3948kb
input:
1979 1 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1978 8 2 8 0 1977 8 2 8 1 1977 8 0 1976 8 2 8 1 1976 8 0 1975 8 2 8 1 1975 8 0 1974 8 2 8 1 1974 8 0 1973 8 2 8 1 1973 8 0 1972 8 2 8 1 1972 8 0 1971 8 2 8 1 1971 8 0 1970 8 2 8 1 1970 8 0 1969 8 2 8 1 1969 8 0 1968 8 2 8 1 1968 8 0 1967 8 2 8 1 1967 8 0 1966 8 2 8 1 1966 8 0 1965 8 2 8 1 1965 8...
result:
points 0.30 points 0.30
Test #69:
score: 22.5
Acceptable Answer
time: 251ms
memory: 4032kb
input:
1979 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1978 8 2 8 0 1977 8 2 8 0 1976 8 2 8 0 1975 8 2 8 0 1974 8 2 8 0 1973 8 2 8 0 1972 8 2 8 0 1971 8 2 8 0 1970 8 2 8 0 1969 8 2 8 0 1968 8 2 8 0 1967 8 2 8 0 1966 8 2 8 0 1965 8 2 8 0 1964 8 2 8 0 1963 8 2 8 0 1962 8 2 8 0 1961 8 2 8 0 1960 8 2 8 0 1959 8 2 8 0 1958 8 2 8 0 1957 8 2 8 0 1956 8 2 8...
result:
points 0.30 points 0.30
Test #70:
score: 22.5
Acceptable Answer
time: 237ms
memory: 3960kb
input:
1979 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 1 1 1 1 1 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1978 8 2 8 0 1977 8 2 8 1 1977 8 0 1976 8 2 8 1 1976 8 0 1975 8 2 8 1 1975 8 0 1974 8 2 8 1 1974 8 0 1973 8 2 8 1 1973 8 0 1972 8 2 8 1 1972 8 0 1971 8 2 8 1 1971 8 0 1970 8 2 8 1 1970 8 0 1969 8 2 8 1 1969 8 0 1968 8 2 8 1 1968 8 0 1967 8 2 8 1 1967 8 0 1966 8 2 8 1 1966 8 0 1965 8 2 8 1 1965 8...
result:
points 0.30 points 0.30
Test #71:
score: 22.5
Acceptable Answer
time: 187ms
memory: 3952kb
input:
1979 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 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 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 2 2 2 2 2 2 2 2 2 2 2 2 2...
output:
8 0 1978 8 2 8 0 1977 8 2 8 1 1977 8 0 1976 8 2 8 1 1976 8 0 1975 8 2 8 1 1975 8 0 1974 8 2 8 1 1974 8 0 1973 8 2 8 1 1973 8 0 1972 8 2 8 1 1972 8 0 1971 8 2 8 1 1971 8 0 1970 8 2 8 1 1970 8 0 1969 8 2 8 1 1969 8 0 1968 8 2 8 1 1968 8 0 1967 8 2 8 1 1967 8 0 1966 8 2 8 1 1966 8 0 1965 8 2 8 1 1965 8...
result:
points 0.30 points 0.30
Test #72:
score: 22.5
Acceptable Answer
time: 181ms
memory: 3952kb
input:
1981 1 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 1 1 1 1 1 1 1 1 1 1 1 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1980 8 2 8 0 1979 8 2 8 1 1979 8 0 1978 8 2 8 1 1978 8 0 1977 8 2 8 1 1977 8 0 1976 8 2 8 1 1976 8 0 1975 8 2 8 1 1975 8 0 1974 8 2 8 1 1974 8 0 1973 8 2 8 1 1973 8 0 1972 8 2 8 0 1971 8 2 8 0 1970 8 2 8 0 1969 8 2 8 0 1968 8 2 8 0 1967 8 2 8 0 1966 8 2 8 0 1965 8 2 8 0 1964 8 2 8 0 1963 8 2 8 0...
result:
points 0.30 points 0.30
Test #73:
score: 22.5
Acceptable Answer
time: 198ms
memory: 3896kb
input:
1981 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 1 1 2 1 2 1 1 2 2 1 1 1 2 2 1 1 2 1 2 2 1 1 2 2 1 2 2 2 1 1 2 1 2 1 2 2 1 2 1 1 1 2 1 2 1 2 2 1 2 2 2 1 2 2 2 1 2 2 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 1 1 2 2 2 1 2 2 2 2 2 2 2 2 1 1 2 2 2 2 1 2 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...
output:
8 0 1980 8 2 8 0 1979 8 2 8 1 1979 8 0 1978 8 2 8 0 1977 8 2 8 0 1976 8 2 8 0 1975 8 2 8 0 1974 8 2 8 0 1973 8 2 8 0 1972 8 2 8 0 1971 8 2 8 0 1970 8 2 8 0 1969 8 2 8 0 1968 8 2 8 0 1967 8 2 8 0 1966 8 2 8 0 1965 8 2 8 0 1964 8 2 8 0 1963 8 2 8 1 1963 8 0 1962 8 2 8 1 1962 8 0 1961 8 2 8 1 1961 8 0 ...
result:
points 0.30 points 0.30
Test #74:
score: 22.5
Acceptable Answer
time: 229ms
memory: 3952kb
input:
1989 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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...
output:
8 0 1988 8 2 8 0 1987 8 2 8 0 1986 8 2 8 0 1985 8 2 8 0 1984 8 2 8 0 1983 8 2 8 0 1982 8 2 8 0 1981 8 2 8 0 1980 8 2 8 0 1979 8 2 8 0 1978 8 2 8 0 1977 8 2 8 0 1976 8 2 8 0 1975 8 2 8 0 1974 8 2 8 0 1973 8 2 8 0 1972 8 2 8 0 1971 8 2 8 0 1970 8 2 8 0 1969 8 2 8 0 1968 8 2 8 0 1967 8 2 8 0 1966 8 2 8...
result:
points 0.30 points 0.30
Test #75:
score: 22.5
Acceptable Answer
time: 200ms
memory: 3896kb
input:
1989 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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...
output:
8 0 1988 8 2 8 0 1987 8 2 8 0 1986 8 2 8 0 1985 8 2 8 0 1984 8 2 8 0 1983 8 2 8 0 1982 8 2 8 0 1981 8 2 8 0 1980 8 2 8 0 1979 8 2 8 0 1978 8 2 8 0 1977 8 2 8 0 1976 8 2 8 0 1975 8 2 8 0 1974 8 2 8 0 1973 8 2 8 0 1972 8 2 8 0 1971 8 2 8 0 1970 8 2 8 0 1969 8 2 8 0 1968 8 2 8 0 1967 8 2 8 0 1966 8 2 8...
result:
points 0.30 points 0.30
Test #76:
score: 22.5
Acceptable Answer
time: 200ms
memory: 4048kb
input:
1970 1 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 1 1 1 1 1 1 1 1 1 1 1 1 1 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1969 8 2 8 0 1968 8 2 8 1 1968 8 0 1967 8 2 8 1 1967 8 0 1966 8 2 8 1 1966 8 0 1965 8 2 8 1 1965 8 0 1964 8 2 8 1 1964 8 0 1963 8 2 8 1 1963 8 0 1962 8 2 8 1 1962 8 0 1961 8 2 8 1 1961 8 0 1960 8 2 8 1 1960 8 0 1959 8 2 8 1 1959 8 0 1958 8 2 8 1 1958 8 0 1957 8 2 8 1 1957 8 0 1956 8 2 8 1 1956 8...
result:
points 0.30 points 0.30
Test #77:
score: 22.5
Acceptable Answer
time: 211ms
memory: 4020kb
input:
1970 1 1 1 1 1 1 1 1 1 1 2 1 1 1 2 1 2 1 2 1 2 1 1 1 2 1 1 1 2 1 2 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 2 2 1 2 2 2 1 2 1 1 2 2 2 2 2 1 2 1 1 1 2 2 2 2 2 2 1 2 1 2 2 1 2 2 2 2 1 2 2 2 2 1 2 2 2 2 2 2 2 1 1 2 2 1 2 1 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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 2 2 2 2 2...
output:
8 0 1969 8 2 8 0 1968 8 2 8 0 1967 8 2 8 0 1966 8 2 8 0 1965 8 2 8 0 1964 8 2 8 0 1963 8 2 8 0 1962 8 2 8 0 1961 8 2 8 0 1960 8 2 8 0 1959 8 2 8 1 1959 8 0 1958 8 2 8 0 1957 8 2 8 0 1956 8 2 8 0 1955 8 2 8 1 1955 8 0 1954 8 2 8 0 1953 8 2 8 1 1953 8 0 1952 8 2 8 0 1951 8 2 8 1 1951 8 0 1950 8 2 8 0 ...
result:
points 0.30 points 0.30
Test #78:
score: 22.5
Acceptable Answer
time: 142ms
memory: 3928kb
input:
1980 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 1 1 1 1 1 1 1 1 1 1 1 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1979 8 2 8 0 1978 8 2 8 1 1978 8 0 1977 8 2 8 1 1977 8 0 1976 8 2 8 1 1976 8 0 1975 8 2 8 1 1975 8 0 1974 8 2 8 1 1974 8 0 1973 8 2 8 1 1973 8 0 1972 8 2 8 1 1972 8 0 1971 8 2 8 1 1971 8 0 1970 8 2 8 0 1969 8 2 8 0 1968 8 2 8 0 1967 8 2 8 0 1966 8 2 8 0 1965 8 2 8 0 1964 8 2 8 0 1963 8 2 8 0 196...
result:
points 0.30 points 0.30
Test #79:
score: 22.5
Acceptable Answer
time: 161ms
memory: 4044kb
input:
1980 1 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1979 8 2 8 0 1978 8 2 8 1 1978 8 0 1977 8 2 8 1 1977 8 0 1976 8 2 8 1 1976 8 0 1975 8 2 8 1 1975 8 0 1974 8 2 8 1 1974 8 0 1973 8 2 8 1 1973 8 0 1972 8 2 8 1 1972 8 0 1971 8 2 8 1 1971 8 0 1970 8 2 8 1 1970 8 0 1969 8 2 8 1 1969 8 0 1968 8 2 8 1 1968 8 0 1967 8 2 8 1 1967 8 0 1966 8 2 8 1 1966 8...
result:
points 0.30 points 0.30
Test #80:
score: 22.5
Acceptable Answer
time: 165ms
memory: 4040kb
input:
2000 1 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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...
output:
8 0 1999 8 2 8 0 1998 8 2 8 1 1998 8 0 1997 8 2 8 1 1997 8 0 1996 8 2 8 1 1996 8 0 1995 8 2 8 1 1995 8 0 1994 8 2 8 1 1994 8 0 1993 8 2 8 1 1993 8 0 1992 8 2 8 1 1992 8 0 1991 8 2 8 0 1990 8 2 8 0 1989 8 2 8 0 1988 8 2 8 0 1987 8 2 8 0 1986 8 2 8 0 1985 8 2 8 0 1984 8 2 8 0 1983 8 2 8 0 1982 8 2 8 0...
result:
points 0.30 points 0.30
Test #81:
score: 22.5
Acceptable Answer
time: 105ms
memory: 3932kb
input:
2000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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...
output:
8 0 1999 8 2 8 0 1998 8 2 8 0 1997 8 2 8 0 1996 8 2 8 0 1995 8 2 8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 0 1991 8 2 8 0 1990 8 2 8 0 1989 8 2 8 0 1988 8 2 8 0 1987 8 2 8 0 1986 8 2 8 0 1985 8 2 8 0 1984 8 2 8 0 1983 8 2 8 0 1982 8 2 8 0 1981 8 2 8 0 1980 8 2 8 0 1979 8 2 8 0 1978 8 2 8 0 1977 8 2 8...
result:
points 0.30 points 0.30
Test #82:
score: 22.5
Acceptable Answer
time: 169ms
memory: 4040kb
input:
2000 1 1 1 1 1 1 1 1 1 2 1 1 2 2 1 1 2 1 1 1 1 2 2 1 1 1 1 1 2 1 2 1 1 1 1 2 2 1 1 2 1 1 1 2 2 2 2 2 1 2 1 2 2 1 1 2 1 2 2 2 2 1 2 1 1 1 2 2 2 2 2 2 1 2 2 2 2 1 2 2 1 2 2 2 2 1 2 1 1 2 1 1 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 1 2 1 2 1 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 1 2...
output:
8 0 1999 8 2 8 0 1998 8 2 8 0 1997 8 2 8 0 1996 8 2 8 0 1995 8 2 8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 0 1991 8 2 8 0 1990 8 2 8 1 1990 8 0 1989 8 2 8 0 1988 8 2 8 0 1987 8 2 8 1 1987 8 0 1986 8 2 8 1 1986 8 0 1985 8 2 8 0 1984 8 2 8 0 1983 8 2 8 1 1983 8 0 1982 8 2 8 0 1981 8 2 8 0 1980 8 2 8 0 ...
result:
points 0.30 points 0.30
Test #83:
score: 22.5
Acceptable Answer
time: 220ms
memory: 3956kb
input:
2000 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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 2 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:
8 0 1999 8 2 8 0 1998 8 2 8 1 1998 8 0 1997 8 2 8 1 1997 8 0 1996 8 2 8 1 1996 8 0 1995 8 2 8 1 1995 8 0 1994 8 2 8 1 1994 8 0 1993 8 2 8 1 1993 8 0 1992 8 2 8 1 1992 8 0 1991 8 2 8 1 1991 8 0 1990 8 2 8 1 1990 8 0 1989 8 2 8 1 1989 8 0 1988 8 2 8 1 1988 8 0 1987 8 2 8 1 1987 8 0 1986 8 2 8 1 1986 8...
result:
points 0.30 points 0.30
Test #84:
score: 28.13
Acceptable Answer
time: 14ms
memory: 3892kb
input:
540 1 1 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 1 ...
output:
8 0 539 8 2 8 0 538 8 2 8 0 537 8 2 8 1 537 8 0 536 8 2 8 1 536 8 0 535 8 2 8 1 535 8 0 534 8 2 8 1 534 8 0 533 8 2 8 1 533 8 0 532 8 2 8 0 531 8 2 8 1 531 8 0 530 8 2 8 1 530 8 0 529 8 2 8 1 529 8 0 528 8 2 8 1 528 8 0 527 8 2 8 1 527 8 0 526 8 2 8 1 526 8 0 525 8 2 8 1 525 8 0 524 8 2 8 1 524 8 0 ...
result:
points 0.37506666670 points 0.37506666670
Test #85:
score: 25
Acceptable Answer
time: 116ms
memory: 3852kb
input:
1834 1 1 2 1 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1833 8 2 8 0 1832 8 2 8 0 1831 8 2 8 1 1831 8 0 1830 8 2 8 0 1829 8 2 8 1 1829 8 0 1828 8 2 8 1 1828 8 0 1827 8 2 8 0 1826 8 2 8 1 1826 8 0 1825 8 2 8 1 1825 8 0 1824 8 2 8 1 1824 8 0 1823 8 2 8 1 1823 8 0 1822 8 2 8 1 1822 8 0 1821 8 2 8 1 1821 8 0 1820 8 2 8 1 1820 8 0 1819 8 2 8 1 1819 8 0 18...
result:
points 0.33333333330 points 0.33333333330
Test #86:
score: 22.5
Acceptable Answer
time: 171ms
memory: 4036kb
input:
2000 1 2 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1999 8 2 8 0 1998 8 2 8 1 1998 8 0 1997 8 2 8 0 1996 8 2 8 1 1996 8 0 1995 8 2 8 1 1995 8 0 1994 8 2 8 1 1994 8 0 1993 8 2 8 1 1993 8 0 1992 8 2 8 1 1992 8 0 1991 8 2 8 1 1991 8 0 1990 8 2 8 1 1990 8 0 1989 8 2 8 1 1989 8 0 1988 8 2 8 1 1988 8 0 1987 8 2 8 1 1987 8 0 1986 8 2 8 1 1986 8 0 1985 8...
result:
points 0.30 points 0.30
Test #87:
score: 25
Acceptable Answer
time: 105ms
memory: 4028kb
input:
2000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
8 0 1999 8 2 8 0 1998 8 2 8 0 1997 8 2 8 0 1996 8 2 8 0 1995 8 2 8 0 1994 8 2 8 0 1993 8 2 8 0 1992 8 2 8 0 1991 8 2 8 0 1990 8 2 8 0 1989 8 2 8 0 1988 8 2 8 0 1987 8 2 8 0 1986 8 2 8 0 1985 8 2 8 0 1984 8 2 8 0 1983 8 2 8 0 1982 8 2 8 0 1981 8 2 8 0 1980 8 2 8 0 1979 8 2 8 0 1978 8 2 8 0 1977 8 2 8...
result:
points 0.33333333330 points 0.33333333330
Test #88:
score: 25
Acceptable Answer
time: 188ms
memory: 3952kb
input:
2000 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1999 8 2 8 0 1998 8 2 8 1 1998 8 0 1997 8 2 8 1 1997 8 0 1996 8 2 8 1 1996 8 0 1995 8 2 8 1 1995 8 0 1994 8 2 8 1 1994 8 0 1993 8 2 8 1 1993 8 0 1992 8 2 8 1 1992 8 0 1991 8 2 8 1 1991 8 0 1990 8 2 8 1 1990 8 0 1989 8 2 8 1 1989 8 0 1988 8 2 8 1 1988 8 0 1987 8 2 8 1 1987 8 0 1986 8 2 8 1 1986 8...
result:
points 0.33333333330 points 0.33333333330
Test #89:
score: 25
Acceptable Answer
time: 144ms
memory: 3952kb
input:
2000 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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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:
8 0 1999 8 2 8 0 1998 8 2 8 1 1998 8 0 1997 8 2 8 1 1997 8 0 1996 8 2 8 1 1996 8 0 1995 8 2 8 1 1995 8 0 1994 8 2 8 1 1994 8 0 1993 8 2 8 1 1993 8 0 1992 8 2 8 1 1992 8 0 1991 8 2 8 1 1991 8 0 1990 8 2 8 1 1990 8 0 1989 8 2 8 1 1989 8 0 1988 8 2 8 1 1988 8 0 1987 8 2 8 1 1987 8 0 1986 8 2 8 1 1986 8...
result:
points 0.33333333330 points 0.33333333330