QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#118715 | #5702. Colors | xiaossr# | 22 | 1ms | 3712kb | C++17 | 2.3kb | 2023-07-03 21:41:33 | 2024-05-31 18:55:08 |
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: 9
Accepted
Test #1:
score: 9
Accepted
time: 1ms
memory: 3640kb
input:
7 1 1 1 1 0
output:
? 1 ? 7 ? 2 ? 6 ? 3 = 4
result:
ok OK (5 queries)
Test #2:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
49 1 1 1 1 1 0
output:
? 1 ? 49 ? 2 ? 48 ? 3 ? 47 = 45
result:
ok OK (6 queries)
Test #3:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
10 1 1 1 1 1 1 1 1 1 0
output:
? 1 ? 10 ? 2 ? 9 ? 3 ? 8 ? 4 ? 7 ? 5 ? 6 = 2
result:
ok OK (10 queries)
Test #4:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
26 1 1 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:
? 1 ? 26 ? 2 ? 25 ? 3 ? 24 ? 4 ? 23 ? 5 ? 22 ? 6 ? 21 ? 7 ? 20 ? 8 ? 19 ? 9 ? 18 ? 10 ? 17 ? 11 ? 16 ? 12 ? 15 ? 13 ? 14 = 1
result:
ok OK (26 queries)
Test #5:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
23 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 1 ? 23 ? 2 ? 22 ? 3 ? 21 ? 4 ? 20 ? 5 ? 19 ? 6 ? 18 ? 7 = 12
result:
ok OK (13 queries)
Test #6:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
56 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 1 ? 56 ? 2 ? 55 ? 3 ? 54 ? 4 ? 53 ? 5 ? 52 ? 6 ? 51 ? 7 ? 50 ? 8 ? 49 ? 9 ? 48 ? 10 ? 47 ? 11 ? 46 ? 12 ? 45 ? 13 ? 44 = 32
result:
ok OK (26 queries)
Test #7:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
52 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 1 ? 52 ? 2 ? 51 ? 3 ? 50 ? 4 ? 49 ? 5 ? 48 ? 6 ? 47 ? 7 ? 46 ? 8 ? 45 ? 9 = 37
result:
ok OK (17 queries)
Test #8:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
43 0 1 1 1 1 1 0
output:
? 1 ? 43 ? 2 ? 42 ? 3 ? 41 ? 4 = 38
result:
ok OK (7 queries)
Test #9:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
46 0 1 1 1 1 1 1 1 0
output:
? 1 ? 46 ? 2 ? 45 ? 3 ? 44 ? 4 ? 43 ? 5 = 39
result:
ok OK (9 queries)
Test #10:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
11 0 1 1 1 1 1 1 1 1 1 1
output:
? 1 ? 11 ? 2 ? 10 ? 3 ? 9 ? 4 ? 8 ? 5 ? 7 ? 6 = 1
result:
ok OK (11 queries)
Test #11:
score: 0
Accepted
time: 1ms
memory: 3636kb
input:
14 0 1 1 0
output:
? 1 ? 14 ? 2 ? 13 = 12
result:
ok OK (4 queries)
Test #12:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
23 1 1 1 1 0
output:
? 1 ? 23 ? 2 ? 22 ? 3 = 20
result:
ok OK (5 queries)
Test #13:
score: 0
Accepted
time: 1ms
memory: 3700kb
input:
47 1 1 1 1 1 1 1 1 1 1 0
output:
? 1 ? 47 ? 2 ? 46 ? 3 ? 45 ? 4 ? 44 ? 5 ? 43 ? 6 = 38
result:
ok OK (11 queries)
Test #14:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
44 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 1 ? 44 ? 2 ? 43 ? 3 ? 42 ? 4 ? 41 ? 5 ? 40 ? 6 ? 39 ? 7 ? 38 ? 8 ? 37 = 30
result:
ok OK (16 queries)
Test #15:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
54 0 1 1 1 1 1 1 1 1 1 0
output:
? 1 ? 54 ? 2 ? 53 ? 3 ? 52 ? 4 ? 51 ? 5 ? 50 ? 6 = 45
result:
ok OK (11 queries)
Test #16:
score: 0
Accepted
time: 1ms
memory: 3700kb
input:
53 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 1 ? 53 ? 2 ? 52 ? 3 ? 51 ? 4 ? 50 ? 5 ? 49 ? 6 ? 48 ? 7 ? 47 ? 8 ? 46 ? 9 ? 45 ? 10 ? 44 ? 11 ? 43 ? 12 ? 42 ? 13 ? 41 ? 14 ? 40 ? 15 ? 39 ? 16 ? 38 ? 17 ? 37 = 21
result:
ok OK (34 queries)
Test #17:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
35 0 0
output:
? 1 ? 35 = 35
result:
ok OK (2 queries)
Test #18:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
37 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 1 ? 37 ? 2 ? 36 ? 3 ? 35 ? 4 ? 34 ? 5 ? 33 ? 6 ? 32 ? 7 ? 31 ? 8 ? 30 = 23
result:
ok OK (16 queries)
Test #19:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
26 1 1 0
output:
? 1 ? 26 ? 2 = 25
result:
ok OK (3 queries)
Test #20:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
64 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 1 ? 64 ? 2 ? 63 ? 3 ? 62 ? 4 ? 61 ? 5 ? 60 ? 6 ? 59 ? 7 ? 58 ? 8 ? 57 ? 9 ? 56 ? 10 ? 55 ? 11 ? 54 ? 12 ? 53 ? 13 ? 52 ? 14 ? 51 ? 15 ? 50 ? 16 = 35
result:
ok OK (31 queries)
Test #21:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
57 1 1 1 1 1 1 1 1 0
output:
? 1 ? 57 ? 2 ? 56 ? 3 ? 55 ? 4 ? 54 ? 5 = 50
result:
ok OK (9 queries)
Test #22:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
2 1 0
output:
? 1 ? 2 = 2
result:
ok OK (2 queries)
Test #23:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
2 1 1
output:
? 1 ? 2 = 1
result:
ok OK (2 queries)
Test #24:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
3 0 0
output:
? 1 ? 3 = 3
result:
ok OK (2 queries)
Test #25:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
3 0 1 0
output:
? 1 ? 3 ? 2 = 2
result:
ok OK (3 queries)
Test #26:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
3 0 1 1
output:
? 1 ? 3 ? 2 = 1
result:
ok OK (3 queries)
Test #27:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
4 1 0
output:
? 1 ? 4 = 4
result:
ok OK (2 queries)
Test #28:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
4 1 1 0
output:
? 1 ? 4 ? 2 = 3
result:
ok OK (3 queries)
Test #29:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
4 1 1 1 0
output:
? 1 ? 4 ? 2 ? 3 = 2
result:
ok OK (4 queries)
Test #30:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
4 1 1 1 1
output:
? 1 ? 4 ? 2 ? 3 = 1
result:
ok OK (4 queries)
Test #31:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
5 0 0
output:
? 1 ? 5 = 5
result:
ok OK (2 queries)
Test #32:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
5 0 1 0
output:
? 1 ? 5 ? 2 = 4
result:
ok OK (3 queries)
Test #33:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
5 0 1 1 0
output:
? 1 ? 5 ? 2 ? 4 = 3
result:
ok OK (4 queries)
Test #34:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
5 0 1 1 1 0
output:
? 1 ? 5 ? 2 ? 4 ? 3 = 2
result:
ok OK (5 queries)
Test #35:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
5 0 1 1 1 1
output:
? 1 ? 5 ? 2 ? 4 ? 3 = 1
result:
ok OK (5 queries)
Test #36:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
6 0 0
output:
? 1 ? 6 = 6
result:
ok OK (2 queries)
Test #37:
score: 0
Accepted
time: 1ms
memory: 3700kb
input:
6 0 1 0
output:
? 1 ? 6 ? 2 = 5
result:
ok OK (3 queries)
Test #38:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
6 0 1 1 0
output:
? 1 ? 6 ? 2 ? 5 = 4
result:
ok OK (4 queries)
Test #39:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
6 0 1 1 1 0
output:
? 1 ? 6 ? 2 ? 5 ? 3 = 3
result:
ok OK (5 queries)
Test #40:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
6 0 1 1 1 1 0
output:
? 1 ? 6 ? 2 ? 5 ? 3 ? 4 = 2
result:
ok OK (6 queries)
Test #41:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
6 0 1 1 1 1 1
output:
? 1 ? 6 ? 2 ? 5 ? 3 ? 4 = 1
result:
ok OK (6 queries)
Test #42:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
7 1 0
output:
? 1 ? 7 = 7
result:
ok OK (2 queries)
Test #43:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
7 1 1 0
output:
? 1 ? 7 ? 2 = 6
result:
ok OK (3 queries)
Test #44:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
7 1 1 1 0
output:
? 1 ? 7 ? 2 ? 6 = 5
result:
ok OK (4 queries)
Test #45:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
7 1 1 1 1 0
output:
? 1 ? 7 ? 2 ? 6 ? 3 = 4
result:
ok OK (5 queries)
Test #46:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
7 1 1 1 1 1 0
output:
? 1 ? 7 ? 2 ? 6 ? 3 ? 5 = 3
result:
ok OK (6 queries)
Test #47:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
7 1 1 1 1 1 1 0
output:
? 1 ? 7 ? 2 ? 6 ? 3 ? 5 ? 4 = 2
result:
ok OK (7 queries)
Test #48:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
7 1 1 1 1 1 1 1
output:
? 1 ? 7 ? 2 ? 6 ? 3 ? 5 ? 4 = 1
result:
ok OK (7 queries)
Test #49:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
8 0 0
output:
? 1 ? 8 = 8
result:
ok OK (2 queries)
Test #50:
score: 0
Accepted
time: 1ms
memory: 3644kb
input:
8 0 1 0
output:
? 1 ? 8 ? 2 = 7
result:
ok OK (3 queries)
Test #51:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
8 0 1 1 0
output:
? 1 ? 8 ? 2 ? 7 = 6
result:
ok OK (4 queries)
Test #52:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
8 0 1 1 1 0
output:
? 1 ? 8 ? 2 ? 7 ? 3 = 5
result:
ok OK (5 queries)
Test #53:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
8 0 1 1 1 1 0
output:
? 1 ? 8 ? 2 ? 7 ? 3 ? 6 = 4
result:
ok OK (6 queries)
Test #54:
score: 0
Accepted
time: 1ms
memory: 3636kb
input:
8 0 1 1 1 1 1 0
output:
? 1 ? 8 ? 2 ? 7 ? 3 ? 6 ? 4 = 3
result:
ok OK (7 queries)
Test #55:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
8 0 1 1 1 1 1 1 0
output:
? 1 ? 8 ? 2 ? 7 ? 3 ? 6 ? 4 ? 5 = 2
result:
ok OK (8 queries)
Test #56:
score: 0
Accepted
time: 1ms
memory: 3560kb
input:
8 0 1 1 1 1 1 1 1
output:
? 1 ? 8 ? 2 ? 7 ? 3 ? 6 ? 4 ? 5 = 1
result:
ok OK (8 queries)
Test #57:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
18 1 1 0
output:
? 1 ? 18 ? 2 = 17
result:
ok OK (3 queries)
Test #58:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
18 1 0
output:
? 1 ? 18 = 18
result:
ok OK (2 queries)
Test #59:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
37 0 1 0
output:
? 1 ? 37 ? 2 = 36
result:
ok OK (3 queries)
Test #60:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
37 0 0
output:
? 1 ? 37 = 37
result:
ok OK (2 queries)
Test #61:
score: 0
Accepted
time: 1ms
memory: 3704kb
input:
63 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
? 1 ? 63 ? 2 ? 62 ? 3 ? 61 ? 4 ? 60 ? 5 ? 59 ? 6 ? 58 ? 7 ? 57 ? 8 ? 56 ? 9 ? 55 ? 10 ? 54 ? 11 ? 53 ? 12 ? 52 ? 13 ? 51 ? 14 ? 50 ? 15 ? 49 ? 16 ? 48 ? 17 ? 47 ? 18 ? 46 ? 19 ? 45 ? 20 ? 44 ? 21 ? 43 ? 22 ? 42 ? 23 ? 41 ? 24 ? 40 ? 25 ? 39 ? 26 ? 38 ? 27 ? 37 ? 28 ? 36 ? 29 ? 35 ? 30 ? 34 ? 31 ? 33...
result:
ok OK (63 queries)
Test #62:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
63 1 0
output:
? 1 ? 63 = 63
result:
ok OK (2 queries)
Test #63:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
63 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 1 ? 63 ? 2 ? 62 ? 3 ? 61 ? 4 ? 60 ? 5 ? 59 ? 6 ? 58 ? 7 ? 57 ? 8 ? 56 ? 9 ? 55 ? 10 ? 54 ? 11 ? 53 ? 12 ? 52 ? 13 ? 51 ? 14 ? 50 ? 15 ? 49 ? 16 ? 48 ? 17 ? 47 ? 18 ? 46 ? 19 ? 45 ? 20 ? 44 ? 21 ? 43 ? 22 ? 42 ? 23 ? 41 ? 24 ? 40 ? 25 ? 39 ? 26 ? 38 ? 27 ? 37 ? 28 ? 36 ? 29 ? 35 ? 30 ? 34 ? 31 ? 33...
result:
ok OK (63 queries)
Test #64:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
63 1 1 0
output:
? 1 ? 63 ? 2 = 62
result:
ok OK (3 queries)
Test #65:
score: 0
Accepted
time: 1ms
memory: 3552kb
input:
63 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 1 ? 63 ? 2 ? 62 ? 3 ? 61 ? 4 ? 60 ? 5 ? 59 ? 6 ? 58 ? 7 ? 57 ? 8 ? 56 ? 9 ? 55 ? 10 ? 54 ? 11 ? 53 ? 12 ? 52 ? 13 ? 51 ? 14 ? 50 ? 15 ? 49 ? 16 ? 48 ? 17 ? 47 ? 18 ? 46 ? 19 ? 45 ? 20 ? 44 ? 21 ? 43 ? 22 ? 42 ? 23 ? 41 ? 24 ? 40 ? 25 ? 39 ? 26 ? 38 ? 27 ? 37 ? 28 ? 36 ? 29 ? 35 ? 30 ? 34 ? 31 ? 33...
result:
ok OK (62 queries)
Test #66:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
63 1 1 1 0
output:
? 1 ? 63 ? 2 ? 62 = 61
result:
ok OK (4 queries)
Test #67:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
63 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 1 ? 63 ? 2 ? 62 ? 3 ? 61 ? 4 ? 60 ? 5 ? 59 ? 6 ? 58 ? 7 ? 57 ? 8 ? 56 ? 9 ? 55 ? 10 ? 54 ? 11 ? 53 ? 12 ? 52 ? 13 ? 51 ? 14 ? 50 ? 15 ? 49 ? 16 ? 48 ? 17 ? 47 ? 18 ? 46 ? 19 ? 45 ? 20 ? 44 ? 21 ? 43 ? 22 ? 42 ? 23 ? 41 ? 24 ? 40 ? 25 ? 39 ? 26 ? 38 ? 27 ? 37 ? 28 ? 36 ? 29 ? 35 ? 30 ? 34 ? 31 = 4
result:
ok OK (61 queries)
Test #68:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
63 1 1 1 1 0
output:
? 1 ? 63 ? 2 ? 62 ? 3 = 60
result:
ok OK (5 queries)
Test #69:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
63 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 1 ? 63 ? 2 ? 62 ? 3 ? 61 ? 4 ? 60 ? 5 ? 59 ? 6 ? 58 ? 7 ? 57 ? 8 ? 56 ? 9 ? 55 ? 10 ? 54 ? 11 ? 53 ? 12 ? 52 ? 13 ? 51 ? 14 ? 50 ? 15 ? 49 ? 16 ? 48 ? 17 ? 47 ? 18 ? 46 ? 19 ? 45 ? 20 ? 44 ? 21 ? 43 ? 22 ? 42 ? 23 ? 41 ? 24 ? 40 ? 25 ? 39 ? 26 ? 38 ? 27 ? 37 ? 28 ? 36 ? 29 ? 35 ? 30 ? 34 = 5
result:
ok OK (60 queries)
Test #70:
score: 0
Accepted
time: 1ms
memory: 3652kb
input:
63 1 1 1 1 1 0
output:
? 1 ? 63 ? 2 ? 62 ? 3 ? 61 = 59
result:
ok OK (6 queries)
Subtask #2:
score: 13
Accepted
Dependency #1:
100%
Accepted
Test #71:
score: 13
Accepted
time: 0ms
memory: 3580kb
input:
123 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
? 61 ? 1 ? 60 ? 2 ? 59 ? 3 ? 58 ? 4 ? 57 ? 5 ? 56 ? 6 ? 55 ? 7 ? 54 ? 8 ? 53 ? 9 ? 52 ? 10 ? 51 ? 11 ? 50 ? 12 ? 49 ? 13 ? 48 ? 14 ? 47 ? 15 ? 46 ? 16 ? 45 ? 17 ? 44 ? 18 ? 43 ? 19 ? 42 ? 20 ? 41 ? 21 ? 40 ? 22 ? 39 ? 23 ? 38 ? 24 ? 37 ? 25 ? 36 ? 26 ? 35 ? 27 ? 34 ? 28 ? 33 ? 29 ? 32 ? 30 ? 31 = 1
result:
ok OK (61 queries)
Test #72:
score: 0
Accepted
time: 1ms
memory: 3652kb
input:
123 0 0 0
output:
? 61 ? 1 ? 123 = 123
result:
ok OK (3 queries)
Test #73:
score: 0
Accepted
time: 1ms
memory: 3704kb
input:
123 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 61 ? 1 ? 60 ? 2 ? 59 ? 3 ? 58 ? 4 ? 57 ? 5 ? 56 ? 6 ? 55 ? 7 ? 54 ? 8 ? 53 ? 9 ? 52 ? 10 ? 51 ? 11 ? 50 ? 12 ? 49 ? 13 ? 48 ? 14 ? 47 ? 15 ? 46 ? 16 ? 45 ? 17 ? 44 ? 18 ? 43 ? 19 ? 42 ? 20 ? 41 ? 21 ? 40 ? 22 ? 39 ? 23 ? 38 ? 24 ? 37 ? 25 ? 36 ? 26 ? 35 ? 27 ? 34 ? 28 ? 33 ? 29 ? 32 ? 30 ? 31 = 2
result:
ok OK (61 queries)
Test #74:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
123 0 0 1 0
output:
? 61 ? 1 ? 123 ? 2 = 122
result:
ok OK (4 queries)
Test #75:
score: 0
Accepted
time: 1ms
memory: 3692kb
input:
123 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 61 ? 1 ? 60 ? 2 ? 59 ? 3 ? 58 ? 4 ? 57 ? 5 ? 56 ? 6 ? 55 ? 7 ? 54 ? 8 ? 53 ? 9 ? 52 ? 10 ? 51 ? 11 ? 50 ? 12 ? 49 ? 13 ? 48 ? 14 ? 47 ? 15 ? 46 ? 16 ? 45 ? 17 ? 44 ? 18 ? 43 ? 19 ? 42 ? 20 ? 41 ? 21 ? 40 ? 22 ? 39 ? 23 ? 38 ? 24 ? 37 ? 25 ? 36 ? 26 ? 35 ? 27 ? 34 ? 28 ? 33 ? 29 ? 32 ? 30 = 3
result:
ok OK (60 queries)
Test #76:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
123 0 0 1 1 0
output:
? 61 ? 1 ? 123 ? 2 ? 122 = 121
result:
ok OK (5 queries)
Test #77:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
123 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 61 ? 1 ? 60 ? 2 ? 59 ? 3 ? 58 ? 4 ? 57 ? 5 ? 56 ? 6 ? 55 ? 7 ? 54 ? 8 ? 53 ? 9 ? 52 ? 10 ? 51 ? 11 ? 50 ? 12 ? 49 ? 13 ? 48 ? 14 ? 47 ? 15 ? 46 ? 16 ? 45 ? 17 ? 44 ? 18 ? 43 ? 19 ? 42 ? 20 ? 41 ? 21 ? 40 ? 22 ? 39 ? 23 ? 38 ? 24 ? 37 ? 25 ? 36 ? 26 ? 35 ? 27 ? 34 ? 28 ? 33 ? 29 ? 32 = 4
result:
ok OK (59 queries)
Test #78:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
123 0 0 1 1 1 0
output:
? 61 ? 1 ? 123 ? 2 ? 122 ? 3 = 120
result:
ok OK (6 queries)
Test #79:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
123 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 61 ? 1 ? 60 ? 2 ? 59 ? 3 ? 58 ? 4 ? 57 ? 5 ? 56 ? 6 ? 55 ? 7 ? 54 ? 8 ? 53 ? 9 ? 52 ? 10 ? 51 ? 11 ? 50 ? 12 ? 49 ? 13 ? 48 ? 14 ? 47 ? 15 ? 46 ? 16 ? 45 ? 17 ? 44 ? 18 ? 43 ? 19 ? 42 ? 20 ? 41 ? 21 ? 40 ? 22 ? 39 ? 23 ? 38 ? 24 ? 37 ? 25 ? 36 ? 26 ? 35 ? 27 ? 34 ? 28 ? 33 ? 29 = 5
result:
ok OK (58 queries)
Test #80:
score: 0
Accepted
time: 1ms
memory: 3712kb
input:
123 0 0 1 1 1 1 0
output:
? 61 ? 1 ? 123 ? 2 ? 122 ? 3 ? 121 = 119
result:
ok OK (7 queries)
Test #81:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
66 1 0 1 0
output:
? 33 ? 1 ? 66 ? 2 = 65
result:
ok OK (4 queries)
Test #82:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
80 0 1 1 1 1 1 1 1 1 1 1 0
output:
? 40 ? 1 ? 39 ? 2 ? 38 ? 3 ? 37 ? 4 ? 36 ? 5 ? 35 ? 6 = 30
result:
ok OK (12 queries)
Test #83:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
114 1 0 1 1 1 1 1 1 1 0
output:
? 57 ? 1 ? 114 ? 2 ? 113 ? 3 ? 112 ? 4 ? 111 ? 5 = 107
result:
ok OK (10 queries)
Test #84:
score: 0
Accepted
time: 1ms
memory: 3584kb
input:
95 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 47 ? 1 ? 95 ? 2 ? 94 ? 3 ? 93 ? 4 ? 92 ? 5 ? 91 ? 6 ? 90 ? 7 ? 89 ? 8 ? 88 ? 9 ? 87 ? 10 ? 86 ? 11 ? 85 ? 12 ? 84 ? 13 ? 83 ? 14 ? 82 ? 15 ? 81 ? 16 = 66
result:
ok OK (32 queries)
Test #85:
score: 0
Accepted
time: 1ms
memory: 3636kb
input:
87 0 0 1 1 1 1 0
output:
? 43 ? 1 ? 87 ? 2 ? 86 ? 3 ? 85 = 83
result:
ok OK (7 queries)
Test #86:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
103 0 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 51 ? 1 ? 50 ? 2 ? 49 ? 3 ? 48 ? 4 ? 47 ? 5 ? 46 ? 6 ? 45 = 40
result:
ok OK (13 queries)
Test #87:
score: 0
Accepted
time: 1ms
memory: 3652kb
input:
71 0 0 1 1 1 1 1 1 0
output:
? 35 ? 1 ? 71 ? 2 ? 70 ? 3 ? 69 ? 4 ? 68 = 65
result:
ok OK (9 queries)
Test #88:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
72 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 36 ? 1 ? 72 ? 2 ? 71 ? 3 ? 70 ? 4 ? 69 ? 5 ? 68 ? 6 ? 67 ? 7 ? 66 ? 8 ? 65 ? 9 ? 64 ? 10 ? 63 ? 11 ? 62 ? 12 ? 61 ? 13 ? 60 = 48
result:
ok OK (27 queries)
Test #89:
score: 0
Accepted
time: 1ms
memory: 3584kb
input:
104 0 0 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 52 ? 1 ? 104 ? 2 ? 103 ? 3 ? 102 ? 4 ? 101 ? 5 ? 100 ? 6 ? 99 ? 7 = 93
result:
ok OK (14 queries)
Test #90:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
93 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 46 ? 1 ? 45 ? 2 ? 44 ? 3 ? 43 ? 4 ? 42 ? 5 ? 41 ? 6 ? 40 ? 7 ? 39 ? 8 ? 38 ? 9 ? 37 ? 10 ? 36 ? 11 ? 35 ? 12 ? 34 ? 13 ? 33 ? 14 ? 32 ? 15 ? 31 ? 16 ? 30 ? 17 = 14
result:
ok OK (34 queries)
Test #91:
score: 0
Accepted
time: 1ms
memory: 3704kb
input:
65 1 0 1 1 1 1 0
output:
? 32 ? 1 ? 65 ? 2 ? 64 ? 3 ? 63 = 61
result:
ok OK (7 queries)
Test #92:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
118 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 59 ? 1 ? 58 ? 2 ? 57 ? 3 ? 56 ? 4 ? 55 ? 5 ? 54 ? 6 ? 53 ? 7 ? 52 ? 8 ? 51 ? 9 ? 50 ? 10 ? 49 ? 11 ? 48 ? 12 ? 47 ? 13 ? 46 ? 14 ? 45 ? 15 ? 44 ? 16 ? 43 ? 17 ? 42 ? 18 ? 41 ? 19 ? 40 ? 20 ? 39 ? 21 ? 38 ? 22 ? 37 ? 23 ? 36 ? 24 ? 35 ? 25 ? 34 ? 26 ? 33 ? 27 ? 32 ? 28 ? 31 = 4
result:
ok OK (57 queries)
Test #93:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
75 0 0 1 1 1 1 1 1 1 0
output:
? 37 ? 1 ? 75 ? 2 ? 74 ? 3 ? 73 ? 4 ? 72 ? 5 = 68
result:
ok OK (10 queries)
Test #94:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
108 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 54 ? 1 ? 53 ? 2 ? 52 ? 3 ? 51 ? 4 ? 50 ? 5 ? 49 ? 6 ? 48 ? 7 ? 47 ? 8 ? 46 ? 9 ? 45 ? 10 ? 44 ? 11 ? 43 ? 12 ? 42 ? 13 ? 41 ? 14 ? 40 ? 15 = 26
result:
ok OK (30 queries)
Test #95:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
97 1 0 1 1 1 0
output:
? 48 ? 1 ? 97 ? 2 ? 96 ? 3 = 94
result:
ok OK (6 queries)
Test #96:
score: 0
Accepted
time: 1ms
memory: 3708kb
input:
106 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 53 ? 1 ? 52 ? 2 ? 51 ? 3 ? 50 ? 4 ? 49 ? 5 ? 48 ? 6 ? 47 ? 7 ? 46 ? 8 ? 45 ? 9 ? 44 ? 10 ? 43 ? 11 ? 42 ? 12 ? 41 ? 13 ? 40 ? 14 ? 39 ? 15 ? 38 ? 16 ? 37 ? 17 ? 36 ? 18 ? 35 ? 19 ? 34 ? 20 ? 33 ? 21 ? 32 ? 22 ? 31 ? 23 ? 30 ? 24 ? 29 ? 25 = 5
result:
ok OK (50 queries)
Test #97:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
84 0 0 1 1 1 0
output:
? 42 ? 1 ? 84 ? 2 ? 83 ? 3 = 81
result:
ok OK (6 queries)
Test #98:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
68 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 34 ? 1 ? 68 ? 2 ? 67 ? 3 ? 66 ? 4 ? 65 ? 5 ? 64 ? 6 ? 63 ? 7 ? 62 ? 8 ? 61 ? 9 ? 60 ? 10 ? 59 ? 11 ? 58 ? 12 ? 57 = 46
result:
ok OK (25 queries)
Test #99:
score: 0
Accepted
time: 1ms
memory: 3652kb
input:
89 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 44 ? 1 ? 89 ? 2 ? 88 ? 3 ? 87 ? 4 ? 86 ? 5 ? 85 ? 6 ? 84 ? 7 ? 83 ? 8 ? 82 = 75
result:
ok OK (17 queries)
Test #100:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
97 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 48 ? 1 ? 97 ? 2 ? 96 ? 3 ? 95 ? 4 ? 94 ? 5 ? 93 ? 6 ? 92 ? 7 ? 91 ? 8 ? 90 ? 9 ? 89 ? 10 = 80
result:
ok OK (20 queries)
Test #101:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
89 1 0 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 44 ? 1 ? 89 ? 2 ? 88 ? 3 ? 87 ? 4 ? 86 ? 5 ? 85 ? 6 ? 84 ? 7 = 78
result:
ok OK (14 queries)
Test #102:
score: 0
Accepted
time: 1ms
memory: 3532kb
input:
72 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 36 ? 1 ? 35 ? 2 ? 34 ? 3 ? 33 ? 4 ? 32 ? 5 ? 31 ? 6 ? 30 ? 7 ? 29 ? 8 ? 28 ? 9 ? 27 ? 10 ? 26 ? 11 ? 25 ? 12 ? 24 ? 13 ? 23 ? 14 = 10
result:
ok OK (28 queries)
Test #103:
score: 0
Accepted
time: 1ms
memory: 3636kb
input:
95 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 47 ? 1 ? 46 ? 2 ? 45 ? 3 ? 44 ? 4 ? 43 ? 5 ? 42 ? 6 ? 41 ? 7 ? 40 ? 8 ? 39 ? 9 ? 38 ? 10 ? 37 ? 11 ? 36 ? 12 ? 35 ? 13 ? 34 ? 14 ? 33 ? 15 ? 32 ? 16 ? 31 ? 17 = 15
result:
ok OK (34 queries)
Test #104:
score: 0
Accepted
time: 1ms
memory: 3612kb
input:
106 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 53 ? 1 ? 52 ? 2 ? 51 ? 3 ? 50 ? 4 ? 49 ? 5 ? 48 ? 6 ? 47 ? 7 ? 46 ? 8 ? 45 ? 9 ? 44 ? 10 ? 43 ? 11 ? 42 ? 12 ? 41 ? 13 ? 40 ? 14 ? 39 ? 15 ? 38 ? 16 ? 37 ? 17 ? 36 ? 18 ? 35 ? 19 ? 34 ? 20 ? 33 ? 21 ? 32 ? 22 ? 31 ? 23 ? 30 ? 24 ? 29 = 6
result:
ok OK (49 queries)
Test #105:
score: 0
Accepted
time: 1ms
memory: 3656kb
input:
107 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 53 ? 1 ? 52 ? 2 ? 51 ? 3 ? 50 ? 4 ? 49 ? 5 ? 48 ? 6 ? 47 ? 7 ? 46 ? 8 ? 45 ? 9 ? 44 ? 10 ? 43 ? 11 ? 42 ? 12 ? 41 ? 13 ? 40 ? 14 ? 39 ? 15 ? 38 ? 16 ? 37 ? 17 ? 36 ? 18 ? 35 ? 19 ? 34 ? 20 ? 33 ? 21 ? 32 ? 22 ? 31 ? 23 ? 30 ? 24 ? 29 ? 25 = 5
result:
ok OK (50 queries)
Test #106:
score: 0
Accepted
time: 1ms
memory: 3584kb
input:
86 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
output:
? 43 ? 1 ? 42 ? 2 ? 41 ? 3 ? 40 ? 4 ? 39 ? 5 ? 38 ? 6 ? 37 ? 7 ? 36 ? 8 ? 35 ? 9 ? 34 ? 10 ? 33 ? 11 ? 32 ? 12 ? 31 ? 13 ? 30 ? 14 ? 29 ? 15 ? 28 ? 16 ? 27 ? 17 ? 26 ? 18 = 9
result:
ok OK (36 queries)
Subtask #3:
score: 0
Wrong Answer
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Test #107:
score: 21
Accepted
time: 1ms
memory: 3652kb
input:
992
output:
= 1
result:
ok OK (0 queries)
Test #108:
score: -21
Wrong Answer
time: 0ms
memory: 3648kb
input:
992
output:
= 1
result:
wrong answer Wrong guess
Subtask #4:
score: 0
Skipped
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
0%
Subtask #5:
score: 0
Skipped
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
0%