QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#780854#9783. Duloc Networkucup-team4851WA 1ms4012kbC++201.2kb2024-11-25 13:36:572024-11-25 13:36:57

詳細信息

Test #1:

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

input:

4
0
2
1
3
1
2
2

output:

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

result:

ok Correct answer with 7 queries.

Test #2:

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

input:

2
0
0
0

output:

? 11
? 10
? 01
! 0

result:

ok Correct answer with 3 queries.

Test #3:

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

input:

4
0
2
1
3
1
2
2

output:

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

result:

ok Correct answer with 7 queries.

Test #4:

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

input:

2
0
0
0

output:

? 11
? 10
? 01
! 0

result:

ok Correct answer with 3 queries.

Test #5:

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

input:

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

output:

? 11111111111111111111111111111111111111111111111111
? 11111111111111111111111110000000000000000000000000
? 11111111111110000000000000000000000000000000000000
? 11111110000000000000000000000000000000000000000000
? 11110000000000000000000000000000000000000000000000
? 110000000000000000000000000000000...

result:

ok Correct answer with 99 queries.

Test #6:

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

input:

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

output:

? 11111111111111111111111111111111111111111111111111
? 11111111111111111111111110000000000000000000000000
? 11111111111110000000000000000000000000000000000000
? 11111110000000000000000000000000000000000000000000
? 11110000000000000000000000000000000000000000000000
? 110000000000000000000000000000000...

result:

wrong answer Wrong answer.