QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#775294#9783. Duloc Networkucup-team1645#WA 3ms3624kbC++201.8kb2024-11-23 15:22:152024-11-23 15:22:18

详细

Test #1:

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

input:

4
1
3
2
2
2
1
1
2

output:

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

result:

ok Correct answer with 8 queries.

Test #2:

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

input:

2
0
0

output:

? 10
? 01
! 0

result:

ok Correct answer with 2 queries.

Test #3:

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

input:

4
1
3
2
2
2
1
1
2

output:

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

result:

ok Correct answer with 8 queries.

Test #4:

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

input:

2
0
0

output:

? 10
? 01
! 0

result:

ok Correct answer with 2 queries.

Test #5:

score: 0
Accepted
time: 3ms
memory: 3572kb

input:

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

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 11100000000000000000000000000000000000000000000000
? 000100000000000000000000000000000...

result:

ok Correct answer with 314 queries.

Test #6:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 111000000000000000000000000000000...

result:

ok Correct answer with 146 queries.

Test #7:

score: -100
Wrong Answer
time: 3ms
memory: 3584kb

input:

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

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 11100000000000000000000000000000000000000000000000
? 000100000000000000000000000000000...

result:

wrong answer Wrong answer.