QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#151424#5556. Diabolic DoofenshmirtzMaMengQiWA 1ms3668kbC++20488b2023-08-26 17:12:482023-08-26 17:12:48

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3592kb

input:

1
2
4
8
16
32
22

output:

? 1
? 2
? 4
? 8
? 16
? 32
? 64
! 42

result:

ok Queries used: 8

Test #2:

score: 0
Accepted
time: 1ms
memory: 3552kb

input:

1
2
4
8
16
32
64
128
256
512
1024
711

output:

? 1
? 2
? 4
? 8
? 16
? 32
? 64
? 128
? 256
? 512
? 1024
? 2048
! 1337

result:

ok Queries used: 13

Test #3:

score: 0
Accepted
time: 1ms
memory: 3540kb

input:

0

output:

? 1
! 1

result:

ok Queries used: 2

Test #4:

score: 0
Accepted
time: 0ms
memory: 3536kb

input:

1
0

output:

? 1
? 2
! 2

result:

ok Queries used: 3

Test #5:

score: 0
Accepted
time: 1ms
memory: 3620kb

input:

1
2
1

output:

? 1
? 2
? 4
! 3

result:

ok Queries used: 4

Test #6:

score: 0
Accepted
time: 1ms
memory: 3592kb

input:

1
2
0

output:

? 1
? 2
? 4
! 4

result:

ok Queries used: 4

Test #7:

score: 0
Accepted
time: 1ms
memory: 3668kb

input:

1
2
4
3

output:

? 1
? 2
? 4
? 8
! 5

result:

ok Queries used: 5

Test #8:

score: 0
Accepted
time: 1ms
memory: 3600kb

input:

1
2
4
2

output:

? 1
? 2
? 4
? 8
! 6

result:

ok Queries used: 5

Test #9:

score: 0
Accepted
time: 1ms
memory: 3664kb

input:

1
2
4
1

output:

? 1
? 2
? 4
? 8
! 7

result:

ok Queries used: 5

Test #10:

score: 0
Accepted
time: 1ms
memory: 3596kb

input:

1
2
4
0

output:

? 1
? 2
? 4
? 8
! 8

result:

ok Queries used: 5

Test #11:

score: 0
Accepted
time: 1ms
memory: 3592kb

input:

1
2
4
8
7

output:

? 1
? 2
? 4
? 8
? 16
! 9

result:

ok Queries used: 6

Test #12:

score: 0
Accepted
time: 1ms
memory: 3592kb

input:

1
2
4
8
1

output:

? 1
? 2
? 4
? 8
? 16
! 15

result:

ok Queries used: 6

Test #13:

score: 0
Accepted
time: 1ms
memory: 3528kb

input:

1
2
4
8
0

output:

? 1
? 2
? 4
? 8
? 16
! 16

result:

ok Queries used: 6

Test #14:

score: 0
Accepted
time: 1ms
memory: 3580kb

input:

1
2
4
8
16
15

output:

? 1
? 2
? 4
? 8
? 16
? 32
! 17

result:

ok Queries used: 7

Test #15:

score: -100
Wrong Answer
time: 1ms
memory: 3600kb

input:

1
2
4
8
16
32
64
128
256
512
1024
2048
4096
8192
16384
32768
65536
131072
262144
524288
1048576
2097152
4194304
8388608
16777216
33554432
67108864
134217728
268435456
536870912
1073741824
2147483648
4294967296
8589934592
17179869184
34359738368
68719476736
137438953472
274877906944
549755813888

output:

? 1
? 2
? 4
? 8
? 16
? 32
? 64
? 128
? 256
? 512
? 1024
? 2048
? 4096
? 8192
? 16384
? 32768
? 65536
? 131072
? 262144
? 524288
? 1048576
? 2097152
? 4194304
? 8388608
? 16777216
? 33554432
? 67108864
? 134217728
? 268435456
? 536870912
? 1073741824
? 2147483648
? 4294967296
? 8589934592
? 171798691...

result:

wrong answer format  Unexpected end of file - token expected