QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#776642#9783. Duloc Networkucup-team4741#WA 2ms3848kbC++202.0kb2024-11-23 19:50:232024-11-23 19:50:24

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3556kb

input:

4
1
3
2
2
2
2

output:

? 1000
? 0100
? 0010
? 0001
? 0110
? 1001
! 1

result:

ok Correct answer with 6 queries.

Test #2:

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

input:

2
0

output:

? 10
! 0

result:

ok Correct answer with 1 queries.

Test #3:

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

input:

4
1
3
2
2
2
1

output:

? 1000
? 0100
? 0010
? 0001
? 0110
? 0111
! 1

result:

ok Correct answer with 6 queries.

Test #4:

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

input:

2
0

output:

? 10
! 0

result:

ok Correct answer with 1 queries.

Test #5:

score: 0
Accepted
time: 2ms
memory: 3624kb

input:

50
3
1
1
1
1
4
3
1
1
2
3
3
2
1
2
4
3
1
1
1
2
4
1
3
1
4
3
2
2
2
4
2
2
1
1
2
1
2
4
1
1
3
3
3
6
2
1
3
2
3
8
5
6
9
8
11
9
12
10
11
14
12
11
11
12
14
13
11
11
11
13
12
11
12
12
10
13
15
12
13
12
11
13
14
15
15
15
16
14
16
13
15
14
15
13
13
14
13
15
12
13
12
14
12
13
13
13
12
13
11
10
11
11
10
13
10
11
10...

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 00010000000000000000000000000000000000000000000000
? 00001000000000000000000000000000000000000000000000
? 000001000000000000000000000000000...

result:

ok Correct answer with 159 queries.

Test #6:

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

input:

50
10
13
8
6
13
8
10
8
8
8
9
13
15
11
9
10
14
6
16
10
15
10
7
8
10
10
10
13
10
15
9
10
11
5
16
10
14
11
10
9
9
15
11
10
7
11
12
10
9
10
21
26
27
31
32
33
34
35
36
36
36
35
34
33
33
32
31
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
21
28
35
37
39
39
39
38
6
5
20
25
2
21

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 00010000000000000000000000000000000000000000000000
? 00001000000000000000000000000000000000000000000000
? 000001000000000000000000000000000...

result:

ok Correct answer with 98 queries.

Test #7:

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

input:

50
1
3
1
4
3
1
1
1
1
3
1
1
1
1
3
5
1
1
1
1
3
2
5
1
2
1
4
1
2
3
4
3
3
2
3
1
1
1
1
3
2
2
1
3
4
2
4
2
3
2
6
6
8
7
10
7
8
7
6
6
7
7
7
8
7
5
7
7
6
9
9
8
8
9
12
12
10
11
11
11
10
11
12
13
13
13
11
12
11
10
11
11
12
11
10
11
14
13
16
14
14
14
13
13
14
15
16
15
16
14
14
14
13
12
11
12
11
10
11
11
9
10
8
9
7...

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 00010000000000000000000000000000000000000000000000
? 00001000000000000000000000000000000000000000000000
? 000001000000000000000000000000000...

result:

ok Correct answer with 139 queries.

Test #8:

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

input:

50
2
14
8
8
7
12
12
8
8
9
9
10
8
8
4
8
9
9
9
11
13
11
8
7
9
12
7
5
6
4
7
8
10
5
5
10
8
4
10
9
11
7
10
8
6
8
10
7
5
9
20
24
28
29
31
32
33
33
36
35
36
35
35
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
18
23
27
30
30
33
5
14
13
3
12
1

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 00010000000000000000000000000000000000000000000000
? 00001000000000000000000000000000000000000000000000
? 000001000000000000000000000000000...

result:

ok Correct answer with 99 queries.

Test #9:

score: 0
Accepted
time: 2ms
memory: 3556kb

input:

50
3
1
1
1
2
1
1
1
1
5
1
2
1
1
1
1
3
1
1
2
1
1
1
2
2
1
1
1
1
3
1
2
1
1
2
3
1
2
3
2
1
3
1
2
3
1
2
2
1
1
4
4
5
7
5
5
6
6
6
6
5
5
5
6
5
5
6
5
5
4
5
6
5
5
5
4
5
5
5
7
3
4
4
4
4
5
5
4
5
5
4
4
6
4
4
4
4
4
4
4
3
3
5
4
5
3
4
5
4
4
4
4
4
4
4
3
4
4
4
5
5
4
3
4
5
6
4
5
4
4
5
4
3
5
4
5
7
6
7
7
7
8
9
8
7
6
9
7
8...

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 00010000000000000000000000000000000000000000000000
? 00001000000000000000000000000000000000000000000000
? 000001000000000000000000000000000...

result:

ok Correct answer with 218 queries.

Test #10:

score: 0
Accepted
time: 2ms
memory: 3628kb

input:

100
1
2
1
1
1
1
1
1
3
3
1
1
2
3
4
1
2
2
2
1
2
2
1
2
2
1
1
1
3
2
1
2
2
1
4
1
1
1
3
2
4
1
3
2
3
3
3
1
1
1
1
2
1
2
2
4
3
1
2
1
1
1
1
3
3
3
2
1
1
2
1
2
2
3
2
1
5
3
5
1
1
1
1
1
1
1
1
3
4
1
2
1
2
1
1
2
1
3
2
1
5
6
8
7
6
6
8
9
6
6
7
6
6
6
7
6
5
6
6
8
6
6
6
6
8
4
6
6
6
6
6
6
7
5
6
6
6
8
5
6
8
6
6
5
9
9
7
8
...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 602 queries.

Test #11:

score: 0
Accepted
time: 2ms
memory: 3656kb

input:

100
11
13
9
11
8
7
15
12
8
8
7
6
9
12
11
9
10
9
11
16
10
8
9
8
10
6
8
9
13
10
9
7
5
11
14
6
11
16
7
7
8
8
11
8
13
15
11
12
11
11
11
9
10
12
10
6
11
10
5
13
9
9
6
6
6
12
7
12
10
10
9
11
7
11
5
6
9
6
5
9
5
16
11
13
13
10
5
5
8
8
12
11
5
8
8
10
8
10
8
10
22
27
35
40
43
47
52
52
55
57
63
65
66
68
69
70
...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 198 queries.

Test #12:

score: 0
Accepted
time: 2ms
memory: 3624kb

input:

100
5
3
3
4
2
2
2
8
4
5
4
4
2
2
3
4
6
5
1
4
3
3
2
5
5
2
2
4
3
4
4
4
4
1
3
5
3
4
4
3
3
4
1
3
3
2
5
5
5
1
3
4
3
4
2
2
4
2
1
3
3
7
3
5
5
6
6
1
3
2
3
3
3
2
1
6
3
5
5
3
4
4
2
2
1
5
7
3
3
1
6
2
2
5
2
5
3
3
6
4
13
14
17
19
22
25
27
28
31
31
33
35
33
34
32
33
34
35
36
39
39
43
42
43
43
42
42
45
43
44
46
49
...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 207 queries.

Test #13:

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

input:

100
1
1
1
3
1
1
3
1
4
1
2
3
4
1
1
2
4
1
3
2
1
3
2
4
1
3
1
1
2
1
1
1
3
1
1
4
1
1
1
1
4
1
2
1
3
3
1
1
3
4
1
2
2
3
3
1
1
1
1
4
1
1
1
1
1
2
2
2
2
1
2
2
2
2
2
1
1
2
5
1
2
2
1
1
2
2
2
4
1
1
1
5
4
1
3
1
1
1
2
1
5
6
6
6
7
6
7
6
7
5
9
7
9
8
10
9
10
10
13
12
10
10
9
10
10
11
10
12
13
10
11
13
10
11
10
11
10
1...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

wrong answer Wrong answer.