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 2 1
1 1 7
2 0 3

Sample Output 1

22695478

Sample Input 2

3 2 1
1 1 7
2 0 2

Sample Output 2

69070

Hints

Problem Source

NPSC 2018 高中組初賽 pB

Subtasks

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

Testdata and Limits

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