QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#773628#9783. Duloc Networkucup-team4778#WA 24ms3848kbC++232.0kb2024-11-23 09:37:552024-11-23 09:37:57

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

? 1111
? 1110
? 1101
? 1100
? 1011
? 0111
? 0011
? 1001
? 0101
? 0110
? 0100
? 0001
? 1000
? 1010
? 0010
! 1

result:

ok Correct answer with 15 queries.

Test #2:

score: 0
Accepted
time: 14ms
memory: 3700kb

input:

2
0
0
0

output:

? 11
? 10
? 01
! 0

result:

ok Correct answer with 3 queries.

Test #3:

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

input:

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

output:

? 1111
? 1110
? 1101
? 1100
? 1011
? 0111
? 0011
? 1001
? 0101
? 0110
? 0100
? 0001
? 1000
? 1010
? 0010
! 1

result:

ok Correct answer with 15 queries.

Test #4:

score: 0
Accepted
time: 15ms
memory: 3648kb

input:

2
0
0
0

output:

? 11
? 10
? 01
! 0

result:

ok Correct answer with 3 queries.

Test #5:

score: 0
Accepted
time: 24ms
memory: 3784kb

input:

50
15
16
15
16
16
16
17
16
17
16
16
17
16
14
15
15
16
16
16
16
16
17
15
19
19
19
19
20
20
21
18
20
19
18
20
19
19
19
19
19
20
18
18
19
19
19
19
20
21
16
17
16
17
17
15
16
17
18
16
17
17
17
17
18
17
17
16
17
17
17
18
16
17
17
20
21
17
17
21
21
22
21
21
22
21
18
20
21
21
19
20
21
22
19
20
21
21
22
20
...

output:

? 11111010101001101100000101110101011001101000110110
? 11111010101001101100000101110101011000101000110110
? 01111010101001101100000101110101011001101000110110
? 01111010101001101100000101110101011000101000110110
? 11111010101001001100000101110101011001101000110110
? 111110101010011010000001011101010...

result:

ok Correct answer with 3500 queries.

Test #6:

score: -100
Wrong Answer
time: 15ms
memory: 3848kb

input:

50
26
27
27
28
27
27
28
28
27
28
27
27
28
27
28
27
28
27
27
28
27
27
28
28
24
25
25
26
25
26
25
25
26
25
25
26
25
26
25
26
25
26
25
26
25
26
25
26
26
27
27
28
27
27
28
27
28
27
27
28
27
28
27
28
27
28
27
28
27
27
28
28
23
24
24
25
24
24
25
24
25
24
25
25
24
24
25
24
24
25
24
25
24
25
34
35
33
34
34
...

output:

? 10000011111111100001010010000100010101001011111100
? 10000011110111100001010010000100010101001011111100
? 10000001111111100001010010000100010101001011111100
? 10000001110111100001010010000100010101001011111100
? 10000011111110100001010010000100010101001011111100
? 100000111111111000010100100001000...

result:

wrong answer Wrong answer.