QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#774225#9783. Duloc Networkucup-team4795#WA 1ms4072kbC++141.6kb2024-11-23 12:31:382024-11-23 12:31:38

详细

Test #1:

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

input:

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

output:

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

result:

ok Correct answer with 12 queries.

Test #2:

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

input:

2
0
0
0

output:

? 10
? 01
? 01
! 0

result:

ok Correct answer with 3 queries.

Test #3:

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

input:

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

output:

? 1000
? 0100
? 0010
? 0001
? 0001
? 1100
? 1101
? 1001
? 0101
? 0010
? 1111
? 1111
! 1

result:

ok Correct answer with 12 queries.

Test #4:

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

input:

2
0
0
0

output:

? 10
? 01
? 10
! 0

result:

ok Correct answer with 3 queries.

Test #5:

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

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
1
11
12
10
11
11
12
13
14
10
9
3
3
5
3
3
0
11
11
2
1
2
4
1
1
3
14
19
12
12
15
13
11
12
13
3
18
18
18
11
16
18
18
17
17
18
18
19
10
14
17
17
16
16
16
15
15
11
11
14
14
13
13
14
14
14
13
5
10
10
10
1...

output:

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

result:

wrong answer Wrong answer.