TopCoder

餘切
$\huge\text{owoovo is 8}$

User's AC Ratio

75.0% (3/4)

Submission's AC Ratio

80.0% (4/5)

Tags

Description

Input Format

Output Format

Sample Input 1

9 2
1 1 2 3 3 4 5 6
2 1

Sample Output 1

101000000

Sample Input 2

20 3
1 2 3 4 5 6 7 8 9 10 11 11 8 8 15 16 15 18 7
1 1 2

Sample Output 2

00001100100000000000

Sample Input 3

5 1
1 1 1 1
127

Sample Output 3

00000

Hints

Problem Source

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 2000 2097152 65536
1 2000 2097152 65536
2 2000 2097152 65536
3 2000 2097152 65536
4 2000 2097152 65536
5 2000 2097152 65536
6 2000 2097152 65536
7 2000 2097152 65536
8 2000 2097152 65536
9 2000 2097152 65536
10 2000 2097152 65536
11 2000 2097152 65536
12 2000 2097152 65536
13 2000 2097152 65536
14 2000 2097152 65536
15 2000 2097152 65536
16 2000 2097152 65536
17 2000 2097152 65536
18 2000 2097152 65536
19 2000 2097152 65536
20 2000 2097152 65536
21 2000 2097152 65536
22 2000 2097152 65536
23 2000 2097152 65536
24 2000 2097152 65536
25 2000 2097152 65536
26 2000 2097152 65536
27 2000 2097152 65536
28 2000 2097152 65536
29 2000 2097152 65536
30 2000 2097152 65536
31 2000 2097152 65536
32 2000 2097152 65536
33 2000 2097152 65536
34 2000 2097152 65536
35 2000 2097152 65536
36 2000 2097152 65536
37 2000 2097152 65536
38 2000 2097152 65536
39 2000 2097152 65536
40 2000 2097152 65536
41 2000 2097152 65536
42 2000 2097152 65536
43 2000 2097152 65536
44 2000 2097152 65536
45 2000 2097152 65536
46 2000 2097152 65536
47 2000 2097152 65536
48 2000 2097152 65536
49 2000 2097152 65536
50 2000 2097152 65536
51 2000 2097152 65536
52 2000 2097152 65536
53 2000 2097152 65536
54 2000 2097152 65536
55 2000 2097152 65536
56 2000 2097152 65536
57 2000 2097152 65536
58 2000 2097152 65536
59 2000 2097152 65536
60 2000 2097152 65536
61 2000 2097152 65536
62 2000 2097152 65536