QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#845511#9783. Duloc Networkucup-team1293WA 2ms3820kbC++141.6kb2025-01-06 16:58:362025-01-06 16:58:40

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
1
3
2
2
2
2
1
1
0

output:

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

result:

ok Correct answer with 9 queries.

Test #2:

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

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

input:

4
1
3
2
2
2
2
1
1
0

output:

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

result:

ok Correct answer with 9 queries.

Test #4:

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

input:

2
0
0
0

output:

? 10
? 01
? 11
! 0

result:

ok Correct answer with 3 queries.

Test #5:

score: -100
Wrong Answer
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
9
4
10
11
6
5
6
2
12
7
9
5
4
8
4
7
7
11
4
12
2
13
3
14
3
14
6
16
5
15
3
14
3
16
6
17
7
16
4
17
2
17
2
17
3
16
5
15
5
16
4
15
4
15
5
14
7
13
5
12
4
13
4
14
6
14
6
14
4
13
3
14
0
13
3
12
2...

output:

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

result:

wrong answer Wrong answer.