QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#775224#9783. Duloc Networkucup-team3634#WA 2ms3856kbC++2328.5kb2024-11-23 15:05:072024-11-23 15:05:08

详细

Test #1:

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

input:

4
1
3
2
2
2
2
1

output:

? 1000
? 0100
? 0010
? 0001
? 1100
? 0110
? 0011
! 1

result:

ok Correct answer with 7 queries.

Test #2:

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

input:

2
0
0
0

output:

? 10
? 01
? 11
! 0

result:

ok Correct answer with 3 queries.

Test #3:

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

input:

4
1
3
2
2
2
2
1

output:

? 1000
? 0100
? 0010
? 0001
? 1100
? 0110
? 0011
! 1

result:

ok Correct answer with 7 queries.

Test #4:

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

input:

2
0
0
0

output:

? 10
? 01
? 11
! 0

result:

ok Correct answer with 3 queries.

Test #5:

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

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

output:

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

result:

ok Correct answer with 243 queries.

Test #6:

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

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
19
19
12
18
18
16
15
16
18
13
13
17
28
20
21
23
22
20
24
17
17
23
18
19
23
24
19
13
12
15
17
19
21
19
22
21
16
15
14
19
21
21
21
18
18
17
22
22
17
15
17
21
17
18
18

output:

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

result:

ok Correct answer with 105 queries.

Test #7:

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

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
4
5
9
12
13
14
13
6
11
10
12
12
6
11
12
14
7
4
6
12
13
14
15
14
7
3
5
12
13
8
10
11
14
15
9
6
5
15
9
12
11
13
11
12
12
5
7
7
12
13
12
5
5
6
13
13
5
11
12
12
13
14
7
13
14
15
16
5
4
4
16
21
22
23
10...

output:

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

result:

ok Correct answer with 259 queries.

Test #8:

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

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
15
20
14
15
23
17
18
22
17
14
15
17
17
17
15
11
12
21
26
13
20
19
19
12
16
17
21
18
18
11
15
18
16
10
9
10
17
22
12
18
12
19
12
17
15
19
14
10
18
14
14
13
12
21
17
14
18
12
15
16
14
1...

output:

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

result:

ok Correct answer with 124 queries.

Test #9:

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

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

output:

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

result:

ok Correct answer with 238 queries.

Test #10:

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

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
3
4
5
6
7
6
5
6
7
8
11
14
15
16
17
7
5
5
17
18
9
16
17
18
21
10
16
10
21
22
24
23
11
14
12
22
16...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok Correct answer with 566 queries.

Test #11:

score: -100
Wrong Answer
time: 2ms
memory: 3856kb

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
23
19
18
19
25
18
31
26
35
22
25
20
26
18
16
20
...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

wrong answer Wrong answer.