QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#177377#5556. Diabolic DoofenshmirtzGuanYunchangWA 1ms3604kbC++20437b2023-09-12 21:55:382023-09-12 21:55:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 0ms
memory: 3560kb

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: 0ms
memory: 3380kb

input:

0

output:

? 1
! 1

result:

ok Queries used: 2

Test #4:

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

input:

1
0

output:

? 1
? 2
! 2

result:

ok Queries used: 3

Test #5:

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

input:

1
2
1

output:

? 1
? 2
? 4
! 3

result:

ok Queries used: 4

Test #6:

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

input:

1
2
0

output:

? 1
? 2
? 4
! 4

result:

ok Queries used: 4

Test #7:

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

input:

1
2
4
3

output:

? 1
? 2
? 4
? 8
! 5

result:

ok Queries used: 5

Test #8:

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

input:

1
2
4
2

output:

? 1
? 2
? 4
? 8
! 6

result:

ok Queries used: 5

Test #9:

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

input:

1
2
4
1

output:

? 1
? 2
? 4
? 8
! 7

result:

ok Queries used: 5

Test #10:

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

input:

1
2
4
0

output:

? 1
? 2
? 4
? 8
! 8

result:

ok Queries used: 5

Test #11:

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

input:

1
2
4
8
7

output:

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

result:

ok Queries used: 6

Test #12:

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

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: 3448kb

input:

1
2
4
8
0

output:

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

result:

ok Queries used: 6

Test #14:

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

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: 3604kb

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