QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#775160#9783. Duloc Networkucup-team5046#WA 12ms4060kbC++143.0kb2024-11-23 14:56:092024-11-23 14:56:09

详细

Test #1:

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

input:

4
1
3
2
2
2
1
3
2
2
1
0

output:

? 1000
? 0100
? 0010
? 0001
? 0110
? 1110
? 0100
? 1100
? 0010
? 1110
? 1111
! 1

result:

ok Correct answer with 11 queries.

Test #2:

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

input:

2
0
0
0

output:

? 10
? 01
? 11
! 0

result:

ok Correct answer with 3 queries.

Test #3:

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

input:

4
1
3
2
2
2
1
3
2
2
1
0

output:

? 1000
? 0100
? 0010
? 0001
? 0110
? 1110
? 0100
? 1100
? 0010
? 1110
? 1111
! 1

result:

ok Correct answer with 11 queries.

Test #4:

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

input:

2
0
0
0

output:

? 10
? 01
? 11
! 0

result:

ok Correct answer with 3 queries.

Test #5:

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

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
13
14
13
14
9
12
4
7
5
6
3
6
3
12
14
12
14
12
15
6
9
4
7
7

output:

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

result:

ok Correct answer with 74 queries.

Test #6:

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

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
25
24
36
35
33
34
29
30
19
21
13
19
26
24
37
35
31
34
23
30
12
22
8
21
26
23
37
34
32
35
22
32
18
30
6
22
27
23
36
33
30
35
23
33
18
32
13
30
27
22
36
32
32
34
20
3...

output:

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

result:

ok Correct answer with 513 queries.

Test #7:

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

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
16
16
17
18
10
9
6
5
4
5
1
17
16
16
17
9
8
7
6
4
4
4
16
15
16
17
13
16
4
7
1
5
6

output:

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

result:

ok Correct answer with 83 queries.

Test #8:

score: 0
Accepted
time: 4ms
memory: 3756kb

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
23
24
32
31
26
26
14
14
10
10
7
8
5
24
24
30
31
32
34
23
26
20
23
14
17
24
23
29
30
30
34
21
28
14
26
8
23
25
23
31
31
29
33
23
31
15
28
8
26
26
22
33
31
30
33
24
34
18
31
7
28
27
22
...

output:

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

result:

ok Correct answer with 514 queries.

Test #9:

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

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
16
15
13
13
7
7
4
4
2
5
1
2
16
15
13
13
7
7
4
4
2
4
2
16
14
12
14
7
7
5
7
3
3
1
1
15
14
12
13
7
8
5
6
1
2
0
14
14
13
13
10
10
5
5
1
1
1

output:

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

result:

ok Correct answer with 107 queries.

Test #10:

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

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
28
29
25
24
15
14
9
10
4
3
3
4
0
29
29
25
25
22
22
11
11
4
4
5
5
1

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 126 queries.

Test #11:

score: 0
Accepted
time: 12ms
memory: 3788kb

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
49
48
65
64
62
63
49
50
35
40
19
27
13
23
17
50
...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 1234 queries.

Test #12:

score: -100
Wrong Answer
time: 0ms
memory: 3752kb

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
36
36
46
46
29
32
21
24
12
16
4
8
13

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

wrong answer Wrong answer.