TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

5
3 0
1 2 3
3 1
1 2 3
3 2
1 2 3
3 3
1 2 3
10 4
7 1 2 3 5 8 9 4 6 10

Sample Output 1

1
0
3
2
729800

Hints

Problem Source

NPSC 2019 高中組決賽 pE

Subtasks

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

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 4000 1048576 1048576 1 2
1 4000 1048576 1048576 2
2 4000 1048576 1048576 2
3 4000 1048576 1048576 2
4 4000 1048576 1048576 2
5 4000 1048576 1048576 2
6 4000 1048576 1048576 2
7 4000 1048576 1048576 2
8 4000 1048576 1048576 2
9 4000 1048576 1048576 2
10 4000 1048576 1048576 2