TopCoder

User's AC Ratio

100.0% (4/4)

Submission's AC Ratio

100.0% (4/4)

Tags

Description

Input Format

Output Format

Sample Input 1

5 6
abcda
1 1 5
1 1 1
0 4 b
1 1 5
1 2 4
1 2 5

Sample Output 1

NO
YES
YES
YES
NO

Sample Input 2

5 6
abaaa
1 1 5
1 1 3
0 2 a
1 1 5
1 2 4
1 2 5

Sample Output 2

NO
YES
YES
YES
YES

Sample Input 3

9 11
stakataka
0 1 a
1 1 9
1 3 9
0 5 z
1 5 7
0 8 t
1 5 9
0 6 b
0 4 b
0 1 a
1 1 9

Sample Output 3

NO
YES
NO
NO
YES

Hints

Problem Source

YTP 2021 高中組復活賽 p4

Subtasks

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

Testdata and Limits

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