QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#784867#9783. Duloc Networkucup-team1817#WA 1ms3684kbC++231.0kb2024-11-26 16:11:522024-11-26 16:11:53

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

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

result:

ok Correct answer with 12 queries.

Test #2:

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

input:

2
0
0
0

output:

? 10
? 11
? 01
! 0

result:

ok Correct answer with 3 queries.

Test #3:

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

input:

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

output:

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

result:

ok Correct answer with 12 queries.

Test #4:

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

input:

2
0
0
0

output:

? 10
? 11
? 01
! 0

result:

ok Correct answer with 3 queries.

Test #5:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000
? 11111111111111111111111111000000000000000000000000
? 01111111111111111111111111000000000000000000000000
? 11111111111110000000000000000000000000000000000000
? 01111111111110000000000000000000000000000000000000
? 111111100000000000000000000000000...

result:

wrong answer Wrong answer.