TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

1 10
40
4 4
1 1 1 1
3 4
1 1 2
2 58
5 8
3 47
4 8 9
8 100000
21 37 23 13 32 22 9 39

Sample Output 1

10
24
4
2550
28830
923016564

Hints

Problem Source

Migrated from old NTUJ.

TopCoder SRM

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 10000 65536 200