QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#774240#9783. Duloc Networkucup-team4795#WA 1ms4112kbC++141.7kb2024-11-23 12:37:222024-11-23 12:37:29

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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 #2:

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

input:

2
0
0
0

output:

? 10
? 01
? 01
! 0

result:

ok Correct answer with 3 queries.

Test #3:

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

input:

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

output:

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

result:

ok Correct answer with 12 queries.

Test #4:

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

input:

2
0
0
0

output:

? 10
? 01
? 01
! 0

result:

ok Correct answer with 3 queries.

Test #5:

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

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

output:

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

result:

wrong answer Wrong answer.