TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

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

Sample Output 1

0
1

Sample Input 2

4 2
12 9 7 11
2
17 2 2 2
5 1 2 1

Sample Output 2

0
0

Sample Input 3

10 3
4 17 19 20 22 24 26 11 16 13
5
15 6 10 3
30 1 7 0
22 8 9 3
23 3 10 2
18 1 8 1

Sample Output 3

0
0
0
1
1

Hints

Problem Source

NPSC 2020 高中組初賽 pF

Subtasks

No. Testdata Range Constraints Score
1 0~2 範例測資 0
2 0~24 無額外限制 100

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 7000 1048576 1048576 1 2
1 7000 1048576 1048576 1 2
2 7000 1048576 1048576 1 2
3 7000 1048576 1048576 2
4 7000 1048576 1048576 2
5 7000 1048576 1048576 2
6 7000 1048576 1048576 2
7 7000 1048576 1048576 2
8 7000 1048576 1048576 2
9 7000 1048576 1048576 2
10 7000 1048576 1048576 2
11 7000 1048576 1048576 2
12 7000 1048576 1048576 2
13 7000 1048576 1048576 2
14 7000 1048576 1048576 2
15 7000 1048576 1048576 2
16 7000 1048576 1048576 2
17 7000 1048576 1048576 2
18 7000 1048576 1048576 2
19 7000 1048576 1048576 2
20 7000 1048576 1048576 2
21 7000 1048576 1048576 2
22 7000 1048576 1048576 2
23 7000 1048576 1048576 2
24 7000 1048576 1048576 2