QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#774830#9783. Duloc Networkucup-team3727#RE 30ms11208kbPython34.8kb2024-11-23 13:58:142024-11-23 13:58:14

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 11ms
memory: 11056kb

input:

4
1
3
2
2
2
2
2
2
2
1

output:

? 1000
? 0100
? 0010
? 0001
? 1100
? 1010
? 0110
? 1001
? 0101
? 0011
! 1

result:

ok Correct answer with 10 queries.

Test #2:

score: 0
Accepted
time: 17ms
memory: 11000kb

input:

2
0
0

output:

? 10
? 01
! 0

result:

ok Correct answer with 2 queries.

Test #3:

score: 0
Accepted
time: 9ms
memory: 11004kb

input:

4
1
3
2
2
2
2
2
2
2
1

output:

? 1000
? 0100
? 0010
? 0001
? 1100
? 1010
? 0110
? 1001
? 0101
? 0011
! 1

result:

ok Correct answer with 10 queries.

Test #4:

score: 0
Accepted
time: 9ms
memory: 11036kb

input:

2
0
0

output:

? 10
? 01
! 0

result:

ok Correct answer with 2 queries.

Test #5:

score: 0
Accepted
time: 17ms
memory: 11116kb

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
4
4
2
4
2
2
4
2
2
2
7
5
5
4
5
6
2
4
4
4
7
4
2
2
2
2
5
4
4
2
2
2
2
5
4
2
5
3
3
3
3
5
5
3
3
6
4
4
4
4
6
6
4
4
3
6
4
4
4
4
7
6
3
4
5
6
3
3
3
3
3
5
5
3
3
4
5
5
4
1
2
2
2
5
2
2
2
3
4
4
3
5
3
3
3
3
6
5
3...

output:

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

result:

ok Correct answer with 1275 queries.

Test #6:

score: 0
Accepted
time: 26ms
memory: 11208kb

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
19
14
19
13
16
12
22
24
19
18
17
20
14
13
18
17
19
16
15
19
16
17
18
15
14
17
14
15
18
18
14
13
19
15
16
16
17
19
15
13
19
15
17
13
13
17
16
13
12
20
16
19
17
15
17...

output:

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

result:

ok Correct answer with 1275 queries.

Test #7:

score: 0
Accepted
time: 30ms
memory: 11184kb

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
4
2
4
5
7
5
4
6
4
7
2
4
2
5
4
2
4
2
5
4
2
2
4
2
5
2
2
2
2
4
2
5
2
2
2
1
4
5
4
7
6
4
4
4
4
2
4
2
5
4
2
2
2
2
4
2
4
2
5
4
2
2
2
2
4
2
2
4
2
5
4
2
2
2
2
4
2
2
2
4
2
3
4
2
2
2
2
4
2
2
2
4
6
4
7
5
4
4
4...

output:

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

result:

ok Correct answer with 1275 queries.

Test #8:

score: 0
Accepted
time: 20ms
memory: 11120kb

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
15
10
20
10
18
14
9
17
15
15
14
23
16
17
18
14
22
18
18
15
22
10
19
16
13
14
18
17
10
19
15
13
15
18
17
14
10
17
16
17
13
19
18
15
15
11
19
13
13
14
18
21
14
14
17
12
18
16
16
16
17
1...

output:

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

result:

ok Correct answer with 1275 queries.

Test #9:

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

input:

50
3
1
1
1
2
1
1
1
1
5
1
2
1
1
1
1
3
1
1
2
1
1
1
2
2
1
1
1
1
3
1
2
1
1
2
3
1
2
3
2
1
3
1
2
3
1
2
2
1
1
4
4
2
2
2
2
3
3
3
2
4
2
2
2
3
4
2
2
2
3
2
4
2
2
2
3
2
2
4
2
2
2
3
2
2
2
8
5
6
6
7
6
6
4
5
4
2
2
2
3
2
2
2
2
6
5
3
3
3
4
3
3
3
3
7
3
4
2
2
2
3
2
2
2
2
6
2
3
4
2
2
2
3
2
2
2
2
6
2
2
2
4
2
2
2
3
2
2
2...

output:

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

result:

ok Correct answer with 1275 queries.

Test #10:

score: -100
Dangerous Syscalls

input:

100
1
2
1
1
1
1
1
1
3
3
1
1
2
3
4
1
2
2
2
1
2
2
1
2
2
1
1
1
3
2
1
2
2
1
4
1
1
1
3
2
4
1
3
2
3
3
3
1
1
1
1
2
1
2
2
4
3
1
2
1
1
1
1
3
3
3
2
1
1
2
1
2
2
3
2
1
5
3
5
1
1
1
1
1
1
1
1
3
4
1
2
1
2
1
1
2
1
3
2
1
3
2
3
2
3
2
2
3
2
2
2
3
2
2
2
2
3
2
2
2
0
2
3
2
2
2
2
2
4
5
4
4
4
4
4
4
4
5
4
4
4
4
4
4
6
2
3
2
...

output:

? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
? 00100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result: