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

5 3
12345
2 1 5
1 1 A
2 1 5

Sample Output 1

1021
267411465

930616025
659780022

Hints

NTUJ cannot show multiple samples, so we merged them here

Problem Source

Migrated from old NTUJ.

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 8000 65536 131072
1 8000 65536 131072
2 8000 65536 131072
3 8000 65536 131072
4 8000 65536 131072
5 8000 65536 131072
6 8000 65536 131072
7 8000 65536 131072
8 8000 65536 131072
9 8000 65536 131072
10 8000 65536 131072
11 8000 65536 131072
12 8000 65536 131072
13 8000 65536 131072
14 8000 65536 131072
15 8000 65536 131072
16 8000 65536 131072