QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#775315#9783. Duloc Networkucup-team1645#WA 2ms3828kbC++201.9kb2024-11-23 15:27:442024-11-23 15:27:48

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
1
3
2
2
1
2

output:

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

result:

ok Correct answer with 6 queries.

Test #2:

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

input:

2
0
0

output:

? 10
? 01
! 0

result:

ok Correct answer with 2 queries.

Test #3:

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

input:

4
1
3
2
2
1
2

output:

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

result:

ok Correct answer with 6 queries.

Test #4:

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

input:

2
0
0

output:

? 10
? 01
! 0

result:

ok Correct answer with 2 queries.

Test #5:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 11100000000000000000000000000000000000000000000000
? 000100000000000000000000000000000...

result:

ok Correct answer with 239 queries.

Test #6:

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

input:

50
10
13
19
8
21
6
22
13
30
8
32
10
33
8
34
8
35
8
35
9
34
13
35
15
36
11
35
9
34
10
33
14
32
6
31
16
31
10
30
15
29
10
28
7
27
8
26
10
25
10
24
10
23
13
22
10
21
15
20
9
19
10
18
11
17
5
16
16
15
10
14
14
13
11
12
10
11
9
10
9
9
15
8
11
7
10
6
7
5
11
4
12
3
10
2
9
1
10

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 11100000000000000000000000000000000000000000000000
? 000100000000000000000000000000000...

result:

ok Correct answer with 98 queries.

Test #7:

score: -100
Wrong Answer
time: 2ms
memory: 3828kb

input:

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

output:

? 10000000000000000000000000000000000000000000000000
? 01000000000000000000000000000000000000000000000000
? 11000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000
? 11100000000000000000000000000000000000000000000000
? 000100000000000000000000000000000...

result:

wrong answer Wrong answer.