QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#561561#9188. Light BulbsLeafSeek99.652174 2167ms4496kbC++172.7kb2024-09-12 23:53:472024-09-12 23:53:47

详细

Subtask #1:

score: 11
Accepted

Test #1:

score: 11
Accepted
time: 10ms
memory: 3536kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
6

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 22 queries

Test #2:

score: 11
Accepted
time: 14ms
memory: 3540kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 34 queries

Test #3:

score: 11
Accepted
time: 7ms
memory: 3620kb

input:

3
9
9
9
9
9
8
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
!
001
001
100

result:

points 1.0 points  1.0 correct, 7 queries

Test #4:

score: 11
Accepted
time: 7ms
memory: 3648kb

input:

3
9
9
9
8
9
9
9
9
9
9
9
5

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
!
100
010
010

result:

points 1.0 points  1.0 correct, 12 queries

Test #5:

score: 11
Accepted
time: 7ms
memory: 3620kb

input:

3
9
9
9
8
9
9
9
9
9
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
!
001
001
010

result:

points 1.0 points  1.0 correct, 11 queries

Test #6:

score: 11
Accepted
time: 14ms
memory: 3824kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 34 queries

Test #7:

score: 11
Accepted
time: 4ms
memory: 3600kb

input:

3
8
9
8
7
9
9
7
9
9
9
9
6
9
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
!
011
000
100

result:

points 1.0 points  1.0 correct, 15 queries

Test #8:

score: 11
Accepted
time: 2ms
memory: 3524kb

input:

3
8
9
8
8
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
!
111
000
000

result:

points 1.0 points  1.0 correct, 5 queries

Test #9:

score: 11
Accepted
time: 2ms
memory: 3760kb

input:

3
8
9
9
9
8
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
!
100
100
100

result:

points 1.0 points  1.0 correct, 6 queries

Test #10:

score: 11
Accepted
time: 11ms
memory: 3848kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
!
010
001
010

result:

points 1.0 points  1.0 correct, 15 queries

Test #11:

score: 11
Accepted
time: 8ms
memory: 3808kb

input:

3
8
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
8
9
9
9
9

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 26 queries

Test #12:

score: 11
Accepted
time: 8ms
memory: 3604kb

input:

3
8
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
9
9
9
9

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 25 queries

Test #13:

score: 11
Accepted
time: 14ms
memory: 3560kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
8
9
9
9
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 34 queries

Test #14:

score: 11
Accepted
time: 13ms
memory: 3552kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
8
9
9
9
9
9
9
9
9
9
9
8
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 35 queries

Test #15:

score: 11
Accepted
time: 5ms
memory: 3620kb

input:

3
9
9
9
8
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
8
9
9
9
9
9
9
9
9
9
9
9

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 33 queries

Test #16:

score: 11
Accepted
time: 14ms
memory: 3620kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
8
9
9
9
9
9
9
9
9
9
9
7

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 33 queries

Test #17:

score: 11
Accepted
time: 9ms
memory: 3668kb

input:

3
9
9
9
9
9
9
8
9
9
9
9
6
9
9
9
9
9
9
9
9
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 22 queries

Subtask #2:

score: 11
Accepted

Dependency #1:

100%
Accepted

Test #18:

score: 11
Accepted
time: 10ms
memory: 3672kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
6

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 22 queries

Test #19:

score: 11
Accepted
time: 14ms
memory: 3848kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 34 queries

Test #20:

score: 11
Accepted
time: 7ms
memory: 3848kb

input:

3
9
9
9
9
9
8
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
!
001
001
100

result:

points 1.0 points  1.0 correct, 7 queries

Test #21:

score: 11
Accepted
time: 3ms
memory: 3668kb

input:

3
9
9
9
8
9
9
9
9
9
9
9
5

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
!
100
010
010

result:

points 1.0 points  1.0 correct, 12 queries

Test #22:

score: 11
Accepted
time: 7ms
memory: 3848kb

input:

3
9
9
9
8
9
9
9
9
9
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
!
001
001
010

result:

points 1.0 points  1.0 correct, 11 queries

Test #23:

score: 11
Accepted
time: 14ms
memory: 3816kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 34 queries

Test #24:

score: 11
Accepted
time: 4ms
memory: 3544kb

input:

3
8
9
8
7
9
9
7
9
9
9
9
6
9
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
!
011
000
100

result:

points 1.0 points  1.0 correct, 15 queries

Test #25:

score: 11
Accepted
time: 4ms
memory: 3544kb

input:

3
8
9
8
8
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
!
111
000
000

result:

points 1.0 points  1.0 correct, 5 queries

Test #26:

score: 11
Accepted
time: 2ms
memory: 3592kb

input:

3
8
9
9
9
8
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
!
100
100
100

result:

points 1.0 points  1.0 correct, 6 queries

Test #27:

score: 11
Accepted
time: 11ms
memory: 3888kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
!
010
001
010

result:

points 1.0 points  1.0 correct, 15 queries

Test #28:

score: 11
Accepted
time: 8ms
memory: 3836kb

input:

3
8
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
8
9
9
9
9

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 26 queries

Test #29:

score: 11
Accepted
time: 8ms
memory: 3672kb

input:

3
8
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
9
9
9
9

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 25 queries

Test #30:

score: 11
Accepted
time: 14ms
memory: 3888kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
8
9
9
9
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 34 queries

Test #31:

score: 11
Accepted
time: 10ms
memory: 3676kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
8
9
9
9
9
9
9
9
9
9
9
8
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 35 queries

Test #32:

score: 11
Accepted
time: 8ms
memory: 3552kb

input:

3
9
9
9
8
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
8
9
9
9
9
9
9
9
9
9
9
9

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 33 queries

Test #33:

score: 11
Accepted
time: 8ms
memory: 3824kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
8
9
9
9
9
9
9
9
9
9
9
7

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 33 queries

Test #34:

score: 11
Accepted
time: 9ms
memory: 3536kb

input:

3
9
9
9
9
9
9
8
9
9
9
9
6
9
9
9
9
9
9
9
9
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 22 queries

Test #35:

score: 11
Accepted
time: 25ms
memory: 3932kb

input:

10
30
90
100
100
90

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0100100000
0001000101
1001000000
0000010000
0000010000
0010000000
0100000010
1000000000
1000001000
?
0111111001
0100100000
0001000101
1000000000
0000010000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 5 queries

Test #36:

score: 11
Accepted
time: 28ms
memory: 4036kb

input:

10
50
90
90
100
90
90

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000001000
0100111000
0000000000
1001000000
0000011000
0000000100
0010000000
0100000010
0000000000
1000001000
?
0000001100
0000110100
0000000000
1001000000
0000011000
0000010101
00100000...

result:

points 1.0 points  1.0 correct, 6 queries

Test #37:

score: 11
Accepted
time: 62ms
memory: 3928kb

input:

10
37
64
91
100
91
100
100
100
91

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0001001000
1001000010
0100010000
0000000010
00100000...

result:

points 1.0 points  1.0 correct, 9 queries

Test #38:

score: 11
Accepted
time: 56ms
memory: 4016kb

input:

10
30
84
100
92
88
88
100
94
92

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0100100000
0001000101
1001000000
0000010000
0000010000
0010000000
0100000010
1000000000
1000001000
?
0010000000
0100100000
0001000100
0001000000
0010010001
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 9 queries

Test #39:

score: 11
Accepted
time: 46ms
memory: 4028kb

input:

10
44
76
79
82
93
93
95
92

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000000
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101000000
0000000000
1001000000
0100001000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 8 queries

Test #40:

score: 11
Accepted
time: 90ms
memory: 3824kb

input:

10
36
75
72
75
90
88
88
85
97
97
100
96
98
91

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0101000000
1001000010
0100010000
0000000000
00000000...

result:

points 1.0 points  1.0 correct, 14 queries

Test #41:

score: 11
Accepted
time: 21ms
memory: 3972kb

input:

8
39
54
64
64
59
64
56

output:

?
00000001
00000000
00000000
00100000
00000000
00000100
00000000
00001101
?
00100001
10000001
00000100
10101000
00001100
00000100
00000000
00001101
?
00100000
10000001
00000100
10101000
00001100
00000001
10000000
00000101
?
00000001
10000001
00000100
00100000
01110110
00000001
00100000
00001101
?
00...

result:

points 1.0 points  1.0 correct, 7 queries

Test #42:

score: 11
Accepted
time: 122ms
memory: 3816kb

input:

10
30
79
88
80
80
88
92
97
96
94
99
99
98
100
97

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0100100000
0001000101
1001000000
0000010000
0000010000
0010000000
0100000010
1000000000
1000001000
?
0010000000
0100100000
0001000100
0001000000
0010010001
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 15 queries

Test #43:

score: 11
Accepted
time: 98ms
memory: 4160kb

input:

9
39
61
61
61
66
63
71
79
79
71
77
81
78

output:

?
001100000
000000100
000000000
000000000
000000000
010000000
010000100
000000000
000000000
?
111100000
001000100
000000000
010010000
000000000
010000000
010000100
000000000
010000000
?
111100000
001000100
000000000
010000000
000010000
010000000
010000000
000000000
011000000
?
101100000
010000100
00...

result:

points 1.0 points  1.0 correct, 13 queries

Test #44:

score: 11
Accepted
time: 51ms
memory: 3860kb

input:

10
46
82
72
86
82
95
96
93

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101000000
0101000000
1000001010
0100010000
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 8 queries

Test #45:

score: 11
Accepted
time: 48ms
memory: 3900kb

input:

10
36
72
72
72
93
90
95
95
100
88

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101000000
0101000000
1000001010
0100010000
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 10 queries

Test #46:

score: 11
Accepted
time: 23ms
memory: 3832kb

input:

10
46
73
82
91

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0000000001
1000000010
0000100000
0000000001
00100000...

result:

points 1.0 points  1.0 correct, 4 queries

Test #47:

score: 11
Accepted
time: 39ms
memory: 4036kb

input:

10
50
84
100
76
82
92

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000001000
0100111000
0000000000
1001000000
0000011000
0000000100
0010000000
0100000010
0000000000
1000001000
?
0000001100
0100111100
0000000000
0001000000
0000010000
0000010101
00100000...

result:

points 1.0 points  1.0 correct, 6 queries

Test #48:

score: 11
Accepted
time: 13ms
memory: 3744kb

input:

10
30
90
97
98

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0100100000
0001000101
1001000000
0000010000
0000010000
0010000000
0100000010
1000000000
1000001000
?
0111111001
0100100000
0001000101
1000000000
0000010000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 4 queries

Test #49:

score: 11
Accepted
time: 47ms
memory: 3876kb

input:

10
36
72
72
60
84
94
88
96
98

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101000000
0101000000
1000001010
0100010000
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 9 queries

Test #50:

score: 11
Accepted
time: 49ms
memory: 4084kb

input:

10
30
82
91
91
93
86
92
97
94
97
94
98

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0100100000
0001000101
1001000000
0000010000
0000010000
0010000000
0100000010
1000000000
1000001000
?
0010000000
0100100000
0000000001
1000000000
0010010000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 12 queries

Test #51:

score: 11
Accepted
time: 49ms
memory: 3996kb

input:

10
46
76
73
92
92
93
91
97
97
96
98

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0001100000
0100000000
0001001010
0000010000
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 11 queries

Test #52:

score: 11
Accepted
time: 72ms
memory: 4068kb

input:

10
52
82
70
76
64
88
94
92
96
96
98
95

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0101000000
1001000010
0100010000
0000000000
00000000...

result:

points 1.0 points  1.0 correct, 12 queries

Test #53:

score: 11
Accepted
time: 25ms
memory: 3732kb

input:

10
50
90
84
92
88
98
94
100
97
98

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000001000
0100111000
0000000000
1001000000
0000011000
0000000100
0010000000
0100000010
0000000000
1000001000
?
0000001100
0000110100
0000000000
1001000000
0000011000
0000010101
00100000...

result:

points 1.0 points  1.0 correct, 10 queries

Test #54:

score: 11
Accepted
time: 68ms
memory: 3800kb

input:

10
37
64
86
82
86
86
90
88
88
97
98
91

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0001001000
1001000010
0100010000
0000000010
00100000...

result:

points 1.0 points  1.0 correct, 12 queries

Test #55:

score: 11
Accepted
time: 14ms
memory: 3760kb

input:

10
55
91
97
99
88
96

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000010000
0100100000
0000000000
1001001100
0000010000
0000000000
0010000100
0100000010
0000000000
1100001000
?
0000010001
0100100001
0000000001
1001001101
0000010000
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 6 queries

Test #56:

score: 11
Accepted
time: 32ms
memory: 3684kb

input:

10
30
82
92
93
91
88
96
94

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0100100000
0001000101
1001000000
0000010000
0000010000
0010000000
0100000010
1000000000
1000001000
?
0010000000
0100100000
0000000001
1000000000
0010010000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 8 queries

Test #57:

score: 11
Accepted
time: 63ms
memory: 3960kb

input:

10
44
65
76
85
92
84
94
92
99
99

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000000
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0000000001
1001000000
0100000000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 10 queries

Test #58:

score: 11
Accepted
time: 109ms
memory: 4144kb

input:

10
51
76
76
70
86
96
85
95
100
100
100
100
100
98
97
98

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0101000000
1001000010
0100010000
0000000000
00000000...

result:

points 1.0 points  1.0 correct, 16 queries

Test #59:

score: 11
Accepted
time: 76ms
memory: 3884kb

input:

10
44
76
75
80
85
79
90
94
98
97
97
97
100

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000000
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101000000
0000000000
1001000000
0100001000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 13 queries

Test #60:

score: 11
Accepted
time: 93ms
memory: 3700kb

input:

10
44
70
70
70
75
85
85
85
88
94
96
94
100
98
98

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000000
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101000000
0000000000
1001000000
0100000000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 15 queries

Test #61:

score: 11
Accepted
time: 43ms
memory: 3740kb

input:

10
44
68
86
82
76
92
86

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000000
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0100000000
0100100000
0000100001
1001000000
0100011000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 7 queries

Test #62:

score: 11
Accepted
time: 27ms
memory: 3656kb

input:

10
52
84
72
92
79

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0101000000
1001000010
0100010000
0000000000
00000000...

result:

points 1.0 points  1.0 correct, 5 queries

Test #63:

score: 11
Accepted
time: 45ms
memory: 3808kb

input:

9
41
60
63
60
57
81
81
71
73

output:

?
001100000
000000100
000000000
000000000
000000000
010000000
010000100
000000000
000000000
?
111100000
001000100
000000000
010010000
000000000
010000000
010000100
000001000
010000000
?
111100000
001000100
000000100
010010000
010000000
010000000
010000100
000001010
010000000
?
111100000
000000100
00...

result:

points 1.0 points  1.0 correct, 9 queries

Test #64:

score: 11
Accepted
time: 32ms
memory: 4036kb

input:

9
41
67
75
63
75
65
81
75

output:

?
001100000
000000100
000000000
000000000
000000000
010000000
010000100
000000000
000000000
?
111100000
001000100
000000000
010010000
000000000
010000000
010000100
000001000
010000000
?
111100000
001000100
000000000
010010000
010100000
110000000
010000100
000001010
010000000
?
111100000
000000000
00...

result:

points 1.0 points  1.0 correct, 8 queries

Test #65:

score: 11
Accepted
time: 65ms
memory: 4112kb

input:

8
40
49
52
52
59
60
64
64
59
64
64

output:

?
00000001
00000000
00000000
00100000
00000000
00000100
00000000
00001101
?
00100001
10000001
00000100
10101000
00001100
00000100
00000000
00001101
?
00100000
10000001
00000110
10101000
00001100
00000000
00000000
10000101
?
00000001
10000000
00000110
10001000
00001100
00010100
00000000
00001110
?
00...

result:

points 1.0 points  1.0 correct, 11 queries

Test #66:

score: 11
Accepted
time: 84ms
memory: 3980kb

input:

8
34
52
54
59
64
64
58
59
64
64
56
64
59

output:

?
00000001
00000000
00000000
00100000
00000000
00000100
00000000
00001101
?
00100001
10000000
00000100
10101000
00000100
00000100
00000000
00001101
?
00100001
10000000
00100100
10101000
00000000
00000100
00000100
00000101
?
00100001
00010010
00100100
10101010
00000100
00000100
01000100
00001101
?
00...

result:

points 1.0 points  1.0 correct, 13 queries

Test #67:

score: 11
Accepted
time: 68ms
memory: 3940kb

input:

7
35
43
49
49
49
49
49
49
49
49
43
49
49
49
44
44

output:

?
0000001
0000100
0000100
0000000
1000000
0000000
0100010
?
0100001
0000101
0010111
1000100
1000000
0010100
0100010
?
1100000
0000001
0010011
1000101
1000000
0011100
0110010
?
1100001
0000101
0000001
1000100
1100000
0011100
0111010
?
0000000
0010000
0000101
0000101
1000000
0011100
0110010
?
1100001
...

result:

points 1.0 points  1.0 correct, 16 queries

Test #68:

score: 11
Accepted
time: 22ms
memory: 3772kb

input:

7
35
49
49
43
42

output:

?
0000001
0000100
0000100
0000000
1000000
0000000
0100010
?
0100001
0000101
0010111
1000100
1000000
0010100
0100010
?
0000001
0000101
0010011
0000100
1000000
1010010
0100010
?
0100001
0000101
0010111
1000100
0000000
0000001
0100010
?
0000000
0000001
0000111
1000100
1000000
1011101
0100010
!
0000001
...

result:

points 1.0 points  1.0 correct, 5 queries

Test #69:

score: 11
Accepted
time: 56ms
memory: 3856kb

input:

10
37
68
84
60
86
86
100
88
100

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0000001000
1001000010
0100010000
0000000010
00100000...

result:

points 1.0 points  1.0 correct, 9 queries

Test #70:

score: 11
Accepted
time: 77ms
memory: 3852kb

input:

10
30
91
94
94
76
100
90
93
100
98

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0100100000
0001000101
1001000000
0000010000
0000010000
0010000000
0100000010
1000000000
1000001000
?
0110000100
0000100000
0000000111
1000000000
0000000000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 10 queries

Test #71:

score: 11
Accepted
time: 84ms
memory: 3796kb

input:

10
37
70
75
72
88
88
88
95
84
94
94
100

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0000000000
1001000010
0100010000
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 12 queries

Test #72:

score: 11
Accepted
time: 100ms
memory: 3868kb

input:

10
44
72
76
72
82
82
88
84
94
94
100
98
96
100
100
99

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000000
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0000000001
1001000000
0100000000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 16 queries

Test #73:

score: 11
Accepted
time: 152ms
memory: 3844kb

input:

10
30
88
88
93
93
100
94
100
100
100
100
94
100
96
97
100
96

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0100100000
0001000101
1001000000
0000010000
0000010000
0010000000
0100000010
1000000000
1000001000
?
0010000000
0000100000
0001000101
1001000000
0010010001
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 17 queries

Test #74:

score: 11
Accepted
time: 119ms
memory: 4112kb

input:

10
52
80
70
80
75
84
94
92
96
94
92
96
96
100
91

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0001100000
0100000000
0001001010
0000010000
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 15 queries

Test #75:

score: 11
Accepted
time: 110ms
memory: 4040kb

input:

10
36
72
72
64
70
85
80
88
88
94
100
98
97
94
94
96
97
92

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101000000
0101000000
1000001010
0100010000
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 18 queries

Test #76:

score: 11
Accepted
time: 72ms
memory: 3952kb

input:

5
17
25
25
25
24
25
23
25
25
25
25
25
24

output:

?
10001
00110
01100
00000
00000
?
11001
01110
01110
10110
10000
?
11001
11110
01110
10110
10001
?
11001
11110
01110
10000
10000
?
11001
00110
01111
10110
00001
?
01001
11011
01111
00100
10000
?
10100
00010
11111
10010
00001
?
11011
10010
11111
10110
10001
?
01001
01111
01010
10010
10001
?
10101
1111...

result:

points 1.0 points  1.0 correct, 13 queries

Subtask #3:

score: 77.6522
Acceptable Answer

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Test #77:

score: 78
Accepted
time: 13ms
memory: 3668kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
6

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 22 queries

Test #78:

score: 78
Accepted
time: 11ms
memory: 3688kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 34 queries

Test #79:

score: 78
Accepted
time: 7ms
memory: 3644kb

input:

3
9
9
9
9
9
8
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
!
001
001
100

result:

points 1.0 points  1.0 correct, 7 queries

Test #80:

score: 78
Accepted
time: 7ms
memory: 3820kb

input:

3
9
9
9
8
9
9
9
9
9
9
9
5

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
!
100
010
010

result:

points 1.0 points  1.0 correct, 12 queries

Test #81:

score: 78
Accepted
time: 7ms
memory: 3608kb

input:

3
9
9
9
8
9
9
9
9
9
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
!
001
001
010

result:

points 1.0 points  1.0 correct, 11 queries

Test #82:

score: 78
Accepted
time: 14ms
memory: 3644kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 34 queries

Test #83:

score: 78
Accepted
time: 4ms
memory: 3528kb

input:

3
8
9
8
7
9
9
7
9
9
9
9
6
9
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
!
011
000
100

result:

points 1.0 points  1.0 correct, 15 queries

Test #84:

score: 78
Accepted
time: 4ms
memory: 3600kb

input:

3
8
9
8
8
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
!
111
000
000

result:

points 1.0 points  1.0 correct, 5 queries

Test #85:

score: 78
Accepted
time: 2ms
memory: 3800kb

input:

3
8
9
9
9
8
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
!
100
100
100

result:

points 1.0 points  1.0 correct, 6 queries

Test #86:

score: 78
Accepted
time: 11ms
memory: 3888kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
!
010
001
010

result:

points 1.0 points  1.0 correct, 15 queries

Test #87:

score: 78
Accepted
time: 8ms
memory: 3812kb

input:

3
8
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
8
9
9
9
9

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 26 queries

Test #88:

score: 78
Accepted
time: 8ms
memory: 3668kb

input:

3
8
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
9
9
9
9

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 25 queries

Test #89:

score: 78
Accepted
time: 14ms
memory: 3892kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
9
8
9
9
9
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 34 queries

Test #90:

score: 78
Accepted
time: 13ms
memory: 3672kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
8
9
9
9
9
9
9
9
9
9
9
8
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 35 queries

Test #91:

score: 78
Accepted
time: 8ms
memory: 3612kb

input:

3
9
9
9
8
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
8
9
9
9
9
9
9
9
9
9
9
9

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 33 queries

Test #92:

score: 78
Accepted
time: 13ms
memory: 3556kb

input:

3
9
9
9
9
9
9
9
9
9
9
9
6
9
9
9
9
9
9
9
9
9
8
9
9
9
9
9
9
9
9
9
9
7

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 33 queries

Test #93:

score: 78
Accepted
time: 9ms
memory: 3672kb

input:

3
9
9
9
9
9
9
8
9
9
9
9
6
9
9
9
9
9
9
9
9
9
8

output:

?
110
001
110
?
111
111
110
?
110
111
101
?
101
111
100
?
011
111
111
?
111
111
010
?
100
111
101
?
111
111
101
?
111
101
111
?
111
101
111
?
111
110
111
?
000
001
010
?
011
111
111
?
011
110
111
?
101
101
111
?
101
101
111
?
011
111
010
?
111
101
011
?
111
110
111
?
111
111
111
?
111
111
111
?
000
...

result:

points 1.0 points  1.0 correct, 22 queries

Test #94:

score: 78
Accepted
time: 23ms
memory: 3788kb

input:

10
30
90
100
100
90

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0100100000
0001000101
1001000000
0000010000
0000010000
0010000000
0100000010
1000000000
1000001000
?
0111111001
0100100000
0001000101
1000000000
0000010000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 5 queries

Test #95:

score: 78
Accepted
time: 36ms
memory: 3764kb

input:

10
50
90
90
100
90
90

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000001000
0100111000
0000000000
1001000000
0000011000
0000000100
0010000000
0100000010
0000000000
1000001000
?
0000001100
0000110100
0000000000
1001000000
0000011000
0000010101
00100000...

result:

points 1.0 points  1.0 correct, 6 queries

Test #96:

score: 78
Accepted
time: 58ms
memory: 4020kb

input:

10
37
64
91
100
91
100
100
100
91

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0001001000
1001000010
0100010000
0000000010
00100000...

result:

points 1.0 points  1.0 correct, 9 queries

Test #97:

score: 78
Accepted
time: 61ms
memory: 3868kb

input:

10
30
84
100
92
88
88
100
94
92

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0100100000
0001000101
1001000000
0000010000
0000010000
0010000000
0100000010
1000000000
1000001000
?
0010000000
0100100000
0001000100
0001000000
0010010001
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 9 queries

Test #98:

score: 78
Accepted
time: 46ms
memory: 3760kb

input:

10
44
76
79
82
93
93
95
92

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000000
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101000000
0000000000
1001000000
0100001000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 8 queries

Test #99:

score: 78
Accepted
time: 90ms
memory: 3744kb

input:

10
36
75
72
75
90
88
88
85
97
97
100
96
98
91

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0101000000
1001000010
0100010000
0000000000
00000000...

result:

points 1.0 points  1.0 correct, 14 queries

Test #100:

score: 78
Accepted
time: 21ms
memory: 3660kb

input:

8
39
54
64
64
59
64
56

output:

?
00000001
00000000
00000000
00100000
00000000
00000100
00000000
00001101
?
00100001
10000001
00000100
10101000
00001100
00000100
00000000
00001101
?
00100000
10000001
00000100
10101000
00001100
00000001
10000000
00000101
?
00000001
10000001
00000100
00100000
01110110
00000001
00100000
00001101
?
00...

result:

points 1.0 points  1.0 correct, 7 queries

Test #101:

score: 78
Accepted
time: 122ms
memory: 3752kb

input:

10
30
79
88
80
80
88
92
97
96
94
99
99
98
100
97

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0100100000
0001000101
1001000000
0000010000
0000010000
0010000000
0100000010
1000000000
1000001000
?
0010000000
0100100000
0001000100
0001000000
0010010001
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 15 queries

Test #102:

score: 78
Accepted
time: 93ms
memory: 3860kb

input:

9
39
61
61
61
66
63
71
79
79
71
77
81
78

output:

?
001100000
000000100
000000000
000000000
000000000
010000000
010000100
000000000
000000000
?
111100000
001000100
000000000
010010000
000000000
010000000
010000100
000000000
010000000
?
111100000
001000100
000000000
010000000
000010000
010000000
010000000
000000000
011000000
?
101100000
010000100
00...

result:

points 1.0 points  1.0 correct, 13 queries

Test #103:

score: 78
Accepted
time: 48ms
memory: 3760kb

input:

10
46
82
72
86
82
95
96
93

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101000000
0101000000
1000001010
0100010000
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 8 queries

Test #104:

score: 78
Accepted
time: 45ms
memory: 3828kb

input:

10
36
72
72
72
93
90
95
95
100
88

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101000000
0101000000
1000001010
0100010000
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 10 queries

Test #105:

score: 78
Accepted
time: 16ms
memory: 3780kb

input:

10
46
73
82
91

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0000000001
1000000010
0000100000
0000000001
00100000...

result:

points 1.0 points  1.0 correct, 4 queries

Test #106:

score: 78
Accepted
time: 38ms
memory: 3816kb

input:

10
50
84
100
76
82
92

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000001000
0100111000
0000000000
1001000000
0000011000
0000000100
0010000000
0100000010
0000000000
1000001000
?
0000001100
0100111100
0000000000
0001000000
0000010000
0000010101
00100000...

result:

points 1.0 points  1.0 correct, 6 queries

Test #107:

score: 78
Accepted
time: 10ms
memory: 3728kb

input:

10
30
90
97
98

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0100100000
0001000101
1001000000
0000010000
0000010000
0010000000
0100000010
1000000000
1000001000
?
0111111001
0100100000
0001000101
1000000000
0000010000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 4 queries

Test #108:

score: 78
Accepted
time: 44ms
memory: 3828kb

input:

10
36
72
72
60
84
94
88
96
98

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101000000
0101000000
1000001010
0100010000
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 9 queries

Test #109:

score: 78
Accepted
time: 52ms
memory: 3864kb

input:

10
30
82
91
91
93
86
92
97
94
97
94
98

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0100100000
0001000101
1001000000
0000010000
0000010000
0010000000
0100000010
1000000000
1000001000
?
0010000000
0100100000
0000000001
1000000000
0010010000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 12 queries

Test #110:

score: 78
Accepted
time: 52ms
memory: 3848kb

input:

10
46
76
73
92
92
93
91
97
97
96
98

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0001100000
0100000000
0001001010
0000010000
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 11 queries

Test #111:

score: 78
Accepted
time: 75ms
memory: 3780kb

input:

10
52
82
70
76
64
88
94
92
96
96
98
95

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0101000000
1001000010
0100010000
0000000000
00000000...

result:

points 1.0 points  1.0 correct, 12 queries

Test #112:

score: 78
Accepted
time: 25ms
memory: 3732kb

input:

10
50
90
84
92
88
98
94
100
97
98

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000001000
0100111000
0000000000
1001000000
0000011000
0000000100
0010000000
0100000010
0000000000
1000001000
?
0000001100
0000110100
0000000000
1001000000
0000011000
0000010101
00100000...

result:

points 1.0 points  1.0 correct, 10 queries

Test #113:

score: 78
Accepted
time: 68ms
memory: 3856kb

input:

10
37
64
86
82
86
86
90
88
88
97
98
91

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0001001000
1001000010
0100010000
0000000010
00100000...

result:

points 1.0 points  1.0 correct, 12 queries

Test #114:

score: 78
Accepted
time: 10ms
memory: 3740kb

input:

10
55
91
97
99
88
96

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000010000
0100100000
0000000000
1001001100
0000010000
0000000000
0010000100
0100000010
0000000000
1100001000
?
0000010001
0100100001
0000000001
1001001101
0000010000
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 6 queries

Test #115:

score: 78
Accepted
time: 32ms
memory: 3820kb

input:

10
30
82
92
93
91
88
96
94

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0100100000
0001000101
1001000000
0000010000
0000010000
0010000000
0100000010
1000000000
1000001000
?
0010000000
0100100000
0000000001
1000000000
0010010000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 8 queries

Test #116:

score: 78
Accepted
time: 63ms
memory: 3812kb

input:

10
44
65
76
85
92
84
94
92
99
99

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000000
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0000000001
1001000000
0100000000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 10 queries

Test #117:

score: 78
Accepted
time: 106ms
memory: 3792kb

input:

10
51
76
76
70
86
96
85
95
100
100
100
100
100
98
97
98

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0101000000
1001000010
0100010000
0000000000
00000000...

result:

points 1.0 points  1.0 correct, 16 queries

Test #118:

score: 78
Accepted
time: 76ms
memory: 3828kb

input:

10
44
76
75
80
85
79
90
94
98
97
97
97
100

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000000
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101000000
0000000000
1001000000
0100001000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 13 queries

Test #119:

score: 78
Accepted
time: 89ms
memory: 3980kb

input:

10
44
70
70
70
75
85
85
85
88
94
96
94
100
98
98

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000000
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101000000
0000000000
1001000000
0100000000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 15 queries

Test #120:

score: 78
Accepted
time: 48ms
memory: 3872kb

input:

10
44
68
86
82
76
92
86

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000000
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0100000000
0100100000
0000100001
1001000000
0100011000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 7 queries

Test #121:

score: 78
Accepted
time: 27ms
memory: 3972kb

input:

10
52
84
72
92
79

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0101000000
1001000010
0100010000
0000000000
00000000...

result:

points 1.0 points  1.0 correct, 5 queries

Test #122:

score: 78
Accepted
time: 45ms
memory: 3976kb

input:

9
41
60
63
60
57
81
81
71
73

output:

?
001100000
000000100
000000000
000000000
000000000
010000000
010000100
000000000
000000000
?
111100000
001000100
000000000
010010000
000000000
010000000
010000100
000001000
010000000
?
111100000
001000100
000000100
010010000
010000000
010000000
010000100
000001010
010000000
?
111100000
000000100
00...

result:

points 1.0 points  1.0 correct, 9 queries

Test #123:

score: 78
Accepted
time: 35ms
memory: 4032kb

input:

9
41
67
75
63
75
65
81
75

output:

?
001100000
000000100
000000000
000000000
000000000
010000000
010000100
000000000
000000000
?
111100000
001000100
000000000
010010000
000000000
010000000
010000100
000001000
010000000
?
111100000
001000100
000000000
010010000
010100000
110000000
010000100
000001010
010000000
?
111100000
000000000
00...

result:

points 1.0 points  1.0 correct, 8 queries

Test #124:

score: 78
Accepted
time: 66ms
memory: 4060kb

input:

8
40
49
52
52
59
60
64
64
59
64
64

output:

?
00000001
00000000
00000000
00100000
00000000
00000100
00000000
00001101
?
00100001
10000001
00000100
10101000
00001100
00000100
00000000
00001101
?
00100000
10000001
00000110
10101000
00001100
00000000
00000000
10000101
?
00000001
10000000
00000110
10001000
00001100
00010100
00000000
00001110
?
00...

result:

points 1.0 points  1.0 correct, 11 queries

Test #125:

score: 78
Accepted
time: 88ms
memory: 3772kb

input:

8
34
52
54
59
64
64
58
59
64
64
56
64
59

output:

?
00000001
00000000
00000000
00100000
00000000
00000100
00000000
00001101
?
00100001
10000000
00000100
10101000
00000100
00000100
00000000
00001101
?
00100001
10000000
00100100
10101000
00000000
00000100
00000100
00000101
?
00100001
00010010
00100100
10101010
00000100
00000100
01000100
00001101
?
00...

result:

points 1.0 points  1.0 correct, 13 queries

Test #126:

score: 78
Accepted
time: 68ms
memory: 3808kb

input:

7
35
43
49
49
49
49
49
49
49
49
43
49
49
49
44
44

output:

?
0000001
0000100
0000100
0000000
1000000
0000000
0100010
?
0100001
0000101
0010111
1000100
1000000
0010100
0100010
?
1100000
0000001
0010011
1000101
1000000
0011100
0110010
?
1100001
0000101
0000001
1000100
1100000
0011100
0111010
?
0000000
0010000
0000101
0000101
1000000
0011100
0110010
?
1100001
...

result:

points 1.0 points  1.0 correct, 16 queries

Test #127:

score: 78
Accepted
time: 22ms
memory: 3684kb

input:

7
35
49
49
43
42

output:

?
0000001
0000100
0000100
0000000
1000000
0000000
0100010
?
0100001
0000101
0010111
1000100
1000000
0010100
0100010
?
0000001
0000101
0010011
0000100
1000000
1010010
0100010
?
0100001
0000101
0010111
1000100
0000000
0000001
0100010
?
0000000
0000001
0000111
1000100
1000000
1011101
0100010
!
0000001
...

result:

points 1.0 points  1.0 correct, 5 queries

Test #128:

score: 78
Accepted
time: 56ms
memory: 4076kb

input:

10
37
68
84
60
86
86
100
88
100

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0000001000
1001000010
0100010000
0000000010
00100000...

result:

points 1.0 points  1.0 correct, 9 queries

Test #129:

score: 78
Accepted
time: 81ms
memory: 4036kb

input:

10
30
91
94
94
76
100
90
93
100
98

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0100100000
0001000101
1001000000
0000010000
0000010000
0010000000
0100000010
1000000000
1000001000
?
0110000100
0000100000
0000000111
1000000000
0000000000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 10 queries

Test #130:

score: 78
Accepted
time: 84ms
memory: 3996kb

input:

10
37
70
75
72
88
88
88
95
84
94
94
100

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0000000000
1001000010
0100010000
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 12 queries

Test #131:

score: 78
Accepted
time: 95ms
memory: 4140kb

input:

10
44
72
76
72
82
82
88
84
94
94
100
98
96
100
100
99

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0000000000
1001000000
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101100000
0000000001
1001000000
0100000000
0000010000
00100000...

result:

points 1.0 points  1.0 correct, 16 queries

Test #132:

score: 78
Accepted
time: 151ms
memory: 4140kb

input:

10
30
88
88
93
93
100
94
100
100
100
100
94
100
96
97
100
96

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0100100000
0001000101
1001000000
0000010000
0000010000
0010000000
0100000010
1000000000
1000001000
?
0010000000
0000100000
0001000101
1001000000
0010010001
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 17 queries

Test #133:

score: 78
Accepted
time: 120ms
memory: 3804kb

input:

10
52
80
70
80
75
84
94
92
96
94
92
96
96
100
91

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0001100000
0100000000
0001001010
0000010000
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 15 queries

Test #134:

score: 78
Accepted
time: 109ms
memory: 3868kb

input:

10
36
72
72
64
70
85
80
88
88
94
100
98
97
94
94
96
97
92

output:

?
0000000000
0100100000
0000000000
1001000000
0000000000
0000000000
0000000000
0100000010
0000000000
0000000000
?
0000000000
0101100000
0100000000
1001000010
0100010000
0000000000
0010000000
0100000010
0000000000
1000001000
?
0000000000
0101000000
0101000000
1000001010
0100010000
0000000000
00100000...

result:

points 1.0 points  1.0 correct, 18 queries

Test #135:

score: 78
Accepted
time: 194ms
memory: 4036kb

input:

100
600
1300
1700
2200
2900
3100
4000
4700
4600
5800
5900
6900
6600
6900
8400
7600

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 16 queries

Test #136:

score: 78
Accepted
time: 192ms
memory: 4048kb

input:

100
600
1400
1900
2400
2500
3200
3400
4300
4700
5900
6400
5600
6100
7000
7300
7500

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 16 queries

Test #137:

score: 78
Accepted
time: 785ms
memory: 4312kb

input:

100
600
1387
1486
1800
2674
3169
3307
3695
3763
4022
5150
4816
5864
4912
5300
5915
5864
5247
5536
6280
6064
7303
7816
7216
7390
7725
8200
7800
7686
7750
8152
8620
8260
8380
8470
8152
8280

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 37 queries

Test #138:

score: 78
Accepted
time: 683ms
memory: 4420kb

input:

100
600
1387
1474
1755
1852
2467
2115
2480
2762
2762
3430
3100
3008
3266
3560
4238
4780
4280
4393
4449
4960
5614
6130
6260
6472
6770
6990
7076
7228
7427
7620
7156
7551
8623
8420
8341
8720
8725

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 38 queries

Test #139:

score: 78
Accepted
time: 1142ms
memory: 4200kb

input:

100
600
1300
1684
2160
2454
2020
2762
2950
3304
3397
3420
3862
3890
3920
4571
4632
4848
5086
5614
5270
5184
5688
6090
6146
6031
6099
6320
6480
7074
6724
6958
7188
6744
7280
7810
6947
7550
7664
7789
8128
8505
8144
7999
8574
8765
8700
9244
8666
9118
8866
9181
9082

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 52 queries

Test #140:

score: 78
Accepted
time: 1749ms
memory: 4288kb

input:

100
595
1090
1552
1648
2010
1830
2032
2020
2198
2281
2629
2902
3340
3192
3795
3540
3868
4720
3920
4228
4470
4356
4852
4900
4890
5264
5425
5608
5940
5520
5752
6379
6464
6382
6248
6815
6800
6700
6962
7180
7133
7570
7435
7816
8164
7678
8128
7606
8250
8419
8724
8402
8753
8942
8605
8934
8986
9055
9240
88...

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 72 queries

Test #141:

score: 78
Accepted
time: 1863ms
memory: 4236kb

input:

100
595
1173
1367
1072
1540
1536
2170
2095
2435
2608
2872
3030
3200
2945
3625
3844
4240
4080
4598
4696
4750
5328
5385
5264
5620
5536
5775
6157
5712
6568
5904
5840
6462
6889
6523
6706
6940
7492
7256
7150
7678
8164
7150
7796
7800
7624
8110
8187
8120
8402
8449
8605
8666
8729
8592
8760
8920
8713
8975
88...

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 75 queries

Test #142:

score: 78
Accepted
time: 1944ms
memory: 4260kb

input:

100
600
1387
1464
1735
1904
1909
2629
2337
3312
2880
3224
3120
3464
3562
3370
3932
4260
3763
3920
4894
4533
4400
5264
5086
4746
5212
5320
5920
6080
6114
6124
5870
5940
6360
6580
6462
7207
7180
7312
7305
7399
7150
7712
7556
7795
7844
7250
8160
7975
8120
8319
8631
8402
8323
8884
8944
8740
8880
8830
92...

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 77 queries

Test #143:

score: 78
Accepted
time: 1858ms
memory: 4496kb

input:

100
600
1367
1450
1648
1270
1909
1916
1728
2530
2560
3115
3196
3700
3464
3686
3214
3520
3609
4228
4160
4825
4342
5008
4995
5811
5042
5560
5782
5536
5288
5392
5920
5660
6010
6396
6724
6237
6308
6787
7100
6810
7255
7354
7868
7928
8215
7807
8128
8300
8530
7760
8334
8504
7960
8446
8167
8372
8713
8830
85...

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 76 queries

Test #144:

score: 78
Accepted
time: 1437ms
memory: 4176kb

input:

100
592
1180
1464
1456
1545
1830
1474
1822
2480
2856
2574
2902
2980
3058
3378
3464
3127
4411
4605
4190
4995
5072
5634
5260
5950
5985
5575
5912
6078
6058
6204
6227
6570
6788
6688
7130
7194
7186
7595
7447
7732
7387
7640
8020
8475
8173
8461
8347
8289
8878
8878
8728
8680
9118
9034
8650
9208
8600
9145
93...

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 63 queries

Test #145:

score: 78
Accepted
time: 1364ms
memory: 4216kb

input:

100
591
1165
1072
1355
1450
1545
1630
1916
2002
2210
2374
2710
2629
3160
3224
3576
3550
3625
4238
4024
3823
4273
4624
5044
5186
5380
5440
5518
5765
5896
5971
6080
6304
6569
6732
6775
6374
7112
6656
7586
7550
7408
7516
7620
7984
7690
8218
7954
8112
8620
8525
8289
8173
8414
8560
9048
8936
9116
9116
88...

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 61 queries

Test #146:

score: 78
Accepted
time: 594ms
memory: 4344kb

input:

100
600
1387
1500
2320
1936
2258
2800
3350
3664
4015
4015
3490
4327
4664
4078
4020
4631
4995
4624
5512
5680
5336
6128
6269
7280
6618
7448
7272
7900
7570
8347
8657
8423
8518

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 34 queries

Test #147:

score: 78
Accepted
time: 492ms
memory: 4376kb

input:

100
595
1278
1572
1486
1866
2725
2240
2531
3016
2846
3695
3695
4357
4336
5296
5164
5629
5629
5535
5443
6094
6559
6745
7210
6931
8180
7864
8416
8398
7570

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 30 queries

Test #148:

score: 78
Accepted
time: 564ms
memory: 4440kb

input:

100
600
1300
1700
2200
2900
3100
4000
4700
4600
5800
5900
6900
6535
6931
7228
8020
7723
7700
7312
7543
7850
8299
8248
8822
8938
9132
8620
8893
9195
8934
9328
9626
9275
9660

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 34 queries

Test #149:

score: 78
Accepted
time: 625ms
memory: 4028kb

input:

100
600
1300
1700
2200
2900
3100
4000
4700
4600
5800
5900
6832
6040
7426
7228
7700
8020
7888
8080
7963
7999
9253
8460
8632
8950
8164
8362
8574
9190
9264
9244
9456
9430
9525
9700
9420

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 36 queries

Test #150:

score: 78
Accepted
time: 593ms
memory: 4072kb

input:

100
600
1300
1700
2200
2900
3100
4000
4700
4555
5545
5347
4400
6832
6436
6931
6337
8020
7866
8020
8008
8130
8224
8482
8416
8536
8866
8804
9269
9337
9076
9373
9454
9425
9487

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 34 queries

Test #151:

score: 78
Accepted
time: 956ms
memory: 4168kb

input:

100
600
1400
1882
2179
2872
2872
2872
2800
3664
4456
4555
5002
5394
5198
6040
6374
6508
6832
7426
7478
8368
7284
7055
8120
7768
7768
7932
8089
8362
8020
8131
8110
8328
8555
8623
8708
8600
8719
9099
8825
9426
9244
9430
9449
9595

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 45 queries

Test #152:

score: 78
Accepted
time: 667ms
memory: 4248kb

input:

100
595
1288
1684
2080
2575
2575
2700
3400
3400
3800
4654
5446
5600
5347
5786
6766
6931
7327
7228
7932
7744
8528
7582
8320
8400
8372
8530
8459
9046
9184
8740
9344
9316
9100
9496
9384
9643
9538
9400
9241

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 40 queries

Test #153:

score: 78
Accepted
time: 809ms
memory: 4364kb

input:

100
595
1288
1684
2080
2575
2575
2700
3434
3169
3466
4512
4414
5492
5538
5200
5538
5872
6832
6508
7150
7720
7274
7120
7888
8344
7274
8344
8575
8592
8341
8848
8593
9310
8574
9145
9175
9312
9120
9504
9256
9586
9575
9472

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 43 queries

Test #154:

score: 78
Accepted
time: 964ms
memory: 4116kb

input:

100
600
1376
1464
1648
1744
2210
2416
2400
2400
3211
3100
3025
3376
3490
3376
3501
3812
4141
4722
4960
5016
5389
6005
5356
5614
5933
5750
6005
6560
6656
6392
7868
6640
7261
8128
8284
8152
8420
8224
8606
8250
8704
8680
8780
8993
8988
9118
8992
9422
9538
9609
9560

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 52 queries

Test #155:

score: 78
Accepted
time: 961ms
memory: 4128kb

input:

100
600
1464
1464
1658
1572
2320
2337
2416
2512
2575
3232
3445
4172
3434
4360
5086
4360
4995
5632
5536
5536
6542
6618
7088
6898
7840
6920
7888
6885
7953
8843
8538
8086
9076
8008
8025
7925
8800
8248
8640
8525
8866
9389
9371
9594
9272
9580
9450

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 48 queries

Test #156:

score: 78
Accepted
time: 531ms
memory: 4240kb

input:

100
600
1300
1700
2200
2900
3070
3600
4200
4555
5644
6832
6766
6962
7129
6931
7746
7769
7775
8091
8050
8183
9006
8530
8719
8712
8407
8980
9031
8768

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 29 queries

Test #157:

score: 77.6522
Acceptable Answer
time: 2087ms
memory: 4120kb

input:

100
592
1165
976
976
1070
1264
1816
1816
1728
1630
1720
1992
2168
2256
2432
2350
2784
3112
3112
3112
3526
3443
3763
4075
4072
3916
3759
4300
3763
5240
5170
4888
5172
5520
5536
5520
6283
6032
5842
6555
6031
6991
6810
6136
6694
7042
6523
7032
7192
7746
7744
7840
7368
7800
7456
8214
8442
8151
8600
8319...

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 0.99554069120 points  0.9955406912 correct, 87 queries

Test #158:

score: 78
Accepted
time: 1879ms
memory: 4284kb

input:

100
592
1165
976
976
1070
1168
1735
2002
1996
2364
1916
2435
2696
3236
3636
3127
3540
3312
3941
4096
4190
4640
4852
4841
5109
4984
5440
5500
6181
6328
6260
5970
6248
6412
6295
6838
7180
7255
6700
6828
7102
7316
7246
7300
7246
7499
7872
8056
8032
7942
8624
8449
8214
8416
8708
8985
8853
9010
9142
8950...

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 74 queries

Test #159:

score: 78
Accepted
time: 1972ms
memory: 4320kb

input:

100
595
1260
1355
1258
1812
1810
1901
1992
2344
1720
2350
2432
2435
2605
2944
3276
3115
3200
3520
4000
3520
3916
3520
4306
4600
4680
4832
5109
5032
5314
5590
5988
5310
5730
5645
5840
5968
6280
6094
6401
6926
6672
7150
7240
6975
7205
7332
7536
7909
7720
7807
8252
8480
8635
8128
8164
8022
8594
8708
87...

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 83 queries

Test #160:

score: 78
Accepted
time: 2092ms
memory: 4248kb

input:

100
592
1165
979
975
1464
1822
1909
1812
2002
2010
2168
2518
3196
2860
3112
3526
3115
3522
3616
3443
3763
4400
4525
4598
4890
4820
5030
5240
4696
5176
5456
5109
5590
5791
5584
5968
6220
6280
6160
6462
6288
6636
6810
6865
6984
7250
6926
7470
7654
7500
7764
7400
7800
8200
8240
7844
8298
8483
8237
8560...

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 82 queries

Test #161:

score: 78
Accepted
time: 2004ms
memory: 4224kb

input:

100
592
1165
975
1076
1537
1165
1352
1810
1628
1992
1996
2344
2350
2524
2690
2604
2944
2604
2866
3526
3030
3760
4072
3916
4225
4375
4687
5101
4598
5444
5100
5170
4820
5310
5584
6100
6031
6694
6160
6694
6404
6637
6932
6932
6932
6976
6828
7085
6810
7244
7600
7930
7650
7750
8011
8108
8073
7807
8068
823...

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 81 queries

Test #162:

score: 78
Accepted
time: 237ms
memory: 4036kb

input:

100
600
1300
1700
2200
2900
3100
4000
4700
4555
5545
5347
4357
6200
5941
6634
7327
6900
7723

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 18 queries

Test #163:

score: 78
Accepted
time: 210ms
memory: 4044kb

input:

100
600
1400
1900
2400
2500
3200
3400
4300
4700
5900
6400
5600
6100
7000
7300
7525
7800

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 17 queries

Test #164:

score: 78
Accepted
time: 296ms
memory: 4216kb

input:

100
600
1300
1700
2179
2476
3100
2900
3763
4414
4951
5050
5688
6160
5884
6570
7060
6634
6993
7984
7030
8176

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 21 queries

Test #165:

score: 78
Accepted
time: 190ms
memory: 3924kb

input:

100
600
1400
1900
2400
2500
3200
3400
4300
4700
5900
6400
5600
6100
7000
7300
7500

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 16 queries

Test #166:

score: 78
Accepted
time: 348ms
memory: 4080kb

input:

100
600
1288
1684
1882
2160
2143
2704
2674
3695
3984
4327
4606
4374
5112
5112
6352
6295
5776
7180
8290
8480
8290
7744

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 23 queries

Test #167:

score: 78
Accepted
time: 248ms
memory: 4112kb

input:

100
600
1300
1700
2278
2575
3000
3664
4700
4753
5347
5248
6634
6931
6374
7256
7942
7426
8119

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 18 queries

Test #168:

score: 78
Accepted
time: 1985ms
memory: 4444kb

input:

100
592
1168
1168
1355
1264
1164
1444
1258
1720
1719
2256
2080
2520
2690
2945
3030
2696
3214
2779
3609
3448
3763
3448
4249
4080
4384
4746
4825
4816
5527
4756
5385
5722
5648
5988
6035
6040
6342
6295
6637
6535
7050
7240
6940
7086
7250
7516
7635
7795
7991
7844
7760
8335
7700
8232
8138
8368
8368
8688
83...

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 78 queries

Test #169:

score: 78
Accepted
time: 2105ms
memory: 4304kb

input:

100
591
1070
1165
1164
1444
1352
1258
1351
1810
1537
1901
2080
1990
1996
2604
2775
2945
3196
3440
3443
3034
3680
3994
3682
3763
3994
4075
4320
4312
4618
5032
4908
5380
5598
5474
5536
6224
6218
6047
6295
6279
6480
7093
7200
7192
7088
7084
7191
7600
6787
7297
7501
7979
7746
8328
7795
8278
8138
8187
86...

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 85 queries

Test #170:

score: 78
Accepted
time: 2049ms
memory: 4276kb

input:

100
591
1165
1165
1258
1258
1444
1076
1810
1628
1352
1719
1812
1812
2170
2710
2791
2872
2960
3443
3775
4024
3692
4006
3768
4384
4671
4533
5239
5456
5104
5248
5740
5722
5791
5722
6035
6218
6520
6637
6283
6652
6580
6865
6976
7030
7615
7088
7144
7550
7648
7840
7452
7979
7942
8362
8237
7816
8200
8298
84...

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 83 queries

Test #171:

score: 77.6522
Acceptable Answer
time: 2068ms
memory: 4296kb

input:

100
591
1168
1264
1355
1634
1822
1996
1816
2010
1916
2095
2710
2530
3206
2953
3364
2872
3520
3194
3917
4225
4302
4300
4610
4746
4450
4900
5446
5248
4672
5030
5578
5512
5515
6031
6096
6047
6096
6283
6172
6472
6808
6700
6100
7030
7296
7348
7556
7654
7450
7984
8032
7840
7800
7932
8214
8280
7979
8319
86...

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 0.99554069120 points  0.9955406912 correct, 87 queries

Test #172:

score: 78
Accepted
time: 2167ms
memory: 4356kb

input:

100
595
1164
1444
1352
1719
1355
1812
2170
2079
2256
2260
2432
2440
2860
3030
2776
3360
3115
3601
3358
4154
3601
4233
4598
4300
3994
4675
4598
4598
4746
4687
4959
5320
5243
5840
5776
6466
6035
6106
6032
6880
6926
6760
6578
7088
7144
7321
7158
7525
7240
7603
7312
7732
7909
7885
8152
7868
8560
8520
80...

output:

?
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct, 85 queries

Test #173:

score: 78
Accepted
time: 70ms
memory: 3952kb

input:

5
17
25
25
25
24
25
23
25
25
25
25
25
24

output:

?
10001
00110
01100
00000
00000
?
11001
01110
01110
10110
10000
?
11001
11110
01110
10110
10001
?
11001
11110
01110
10000
10000
?
11001
00110
01111
10110
00001
?
01001
11011
01111
00100
10000
?
10100
00010
11111
10010
00001
?
11011
10010
11111
10110
10001
?
01001
01111
01010
10010
10001
?
10101
1111...

result:

points 1.0 points  1.0 correct, 13 queries