QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#774271#9783. Duloc Networkucup-team5046#WA 1ms4100kbC++142.7kb2024-11-23 12:47:542024-11-23 12:47:59

詳細信息

Test #1:

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

input:

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

output:

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

result:

ok Correct answer with 16 queries.

Test #2:

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

input:

2
0
0
0
0

output:

? 10
? 01
? 01
? 11
! 0

result:

ok Correct answer with 4 queries.

Test #3:

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

input:

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

output:

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

result:

ok Correct answer with 16 queries.

Test #4:

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

input:

2
0
0
0
0

output:

? 10
? 01
? 01
? 11
! 0

result:

ok Correct answer with 4 queries.

Test #5:

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

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
13
14
13
14
9
12
3
6
2
5
1
4

output:

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

result:

ok Correct answer with 62 queries.

Test #6:

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

input:

50
10
13
8
6
13
8
10
8
8
8
9
13
15
11
9
10
14
6
16
10
15
10
7
8
10
10
10
13
10
15
9
10
11
5
16
10
14
11
10
9
9
15
11
10
7
11
12
10
9
10
25
24
36
35
33
34
29
30
19
21
13
19
13
19
26
24
37
35
31
34
23
30
12
22
8
21
8
21
26
23
37
34
32
35
22
32
18
30
6
22
6
22
27
23
36
33
30
35
23
33
18
32
13
30
13
30
...

output:

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

result:

ok Correct answer with 610 queries.

Test #7:

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

input:

50
1
3
1
4
3
1
1
1
1
3
1
1
1
1
3
5
1
1
1
1
3
2
5
1
2
1
4
1
2
3
4
3
3
2
3
1
1
1
1
3
2
2
1
3
4
2
4
2
3
2
16
16
16
17
13
14
8
9
4
5
3
4

output:

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

result:

ok Correct answer with 62 queries.

Test #8:

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

input:

50
2
14
8
8
7
12
12
8
8
9
9
10
8
8
4
8
9
9
9
11
13
11
8
7
9
12
7
5
6
4
7
8
10
5
5
10
8
4
10
9
11
7
10
8
6
8
10
7
5
9
23
24
30
31
32
33
23
24
20
21
14
15

output:

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

result:

wrong answer Wrong answer.