QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#775066#9783. Duloc Networkucup-team6004#WA 3ms3672kbC++172.0kb2024-11-23 14:37:392024-11-23 14:37:39

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
1
2
1
2
1

output:

? 1000
? 0110
? 1110
? 1100
? 0011
! 1

result:

ok Correct answer with 5 queries.

Test #2:

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

input:

2
0

output:

? 10
! 0

result:

ok Correct answer with 1 queries.

Test #3:

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

input:

4
1
2
1
2
1

output:

? 1000
? 0110
? 1110
? 1100
? 0011
! 1

result:

ok Correct answer with 5 queries.

Test #4:

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

input:

2
0

output:

? 10
! 0

result:

ok Correct answer with 1 queries.

Test #5:

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

input:

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

output:

? 10000000000000000000000000000000000000000000000000
? 01111111111111111111111111000000000000000000000000
? 11111111111111111111111111000000000000000000000000
? 01111111111111000000000000000000000000000000000000
? 11111111111111000000000000000000000000000000000000
? 011111110000000000000000000000000...

result:

ok Correct answer with 271 queries.

Test #6:

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

input:

50
10
25
24
36
35
33
34
29
30
19
21
19
25
23
36
34
34
35
26
32
12
22
26
37
32
22
18
26
22
36
33
30
35
23
33
18
27
36
32
32
34
20
16
27
21
36
31
36
35
21
15
28
36
36
36
18
16
28
20
37
31
34
20
13
29
37
30
38
28
17
29
19
38
29
38
29
21
30
39
34
26
23
30
18
39
28
36
27
22
31
39
27
34
24
20
31
17
39
26
...

output:

? 10000000000000000000000000000000000000000000000000
? 01111111111111111111111111000000000000000000000000
? 11111111111111111111111111000000000000000000000000
? 01111111111111000000000000000000000000000000000000
? 11111111111111000000000000000000000000000000000000
? 011111110000000000000000000000000...

result:

ok Correct answer with 237 queries.

Test #7:

score: -100
Wrong Answer
time: 3ms
memory: 3672kb

input:

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

output:

? 10000000000000000000000000000000000000000000000000
? 01111111111111111111111111000000000000000000000000
? 11111111111111111111111111000000000000000000000000
? 01111111111111000000000000000000000000000000000000
? 11111111111111000000000000000000000000000000000000
? 000000000000001111111000000000000...

result:

wrong answer Wrong answer.