TopCoder

User's AC Ratio

100.0% (1/1)

Submission's AC Ratio

50.0% (1/2)

Tags

Description

Input Format

Output Format

Sample Input 1

1 3 2

2 3 2

21 13 5

50216 9973 131

Sample Output 1

100

75825

142108

405787

Hints

NTUJ cannot show multiple samples, so we merged them here.

Problem Source

Migrated from old NTUJ.

shik

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 5000 65536 65536
1 5000 65536 65536
2 5000 65536 65536
3 5000 65536 65536
4 5000 65536 65536
5 5000 65536 65536
6 5000 65536 65536
7 5000 65536 65536
8 5000 65536 65536
9 5000 65536 65536
10 5000 65536 65536
11 5000 65536 65536
12 5000 65536 65536
13 5000 65536 65536
14 5000 65536 65536
15 5000 65536 65536
16 5000 65536 65536
17 5000 65536 65536
18 5000 65536 65536
19 5000 65536 65536
20 5000 65536 65536
21 5000 65536 65536
22 5000 65536 65536
23 5000 65536 65536
24 5000 65536 65536
25 5000 65536 65536
26 5000 65536 65536
27 5000 65536 65536
28 5000 65536 65536
29 5000 65536 65536
30 5000 65536 65536
31 5000 65536 65536
32 5000 65536 65536
33 5000 65536 65536
34 5000 65536 65536
35 5000 65536 65536
36 5000 65536 65536
37 5000 65536 65536
38 5000 65536 65536