QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#856841#9783. Duloc Networkucup-team5082#WA 1ms3712kbC++202.0kb2025-01-14 17:33:382025-01-14 17:33:39

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

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

result:

ok Correct answer with 11 queries.

Test #2:

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

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: 3584kb

input:

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

output:

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

result:

ok Correct answer with 11 queries.

Test #4:

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

input:

2
0
0
0

output:

? 10
? 01
? 11
! 0

result:

ok Correct answer with 3 queries.

Test #5:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000
? 01111111111111111111111111000000000000000000000000
? 11111111111111111111111111000000000000000000000000
? 01111111111111000000000000000000000000000000000000
? 11111111111111000000000000000000000000000000000000
? 011111110000000000000000000000000...

result:

wrong answer Wrong answer.