TopCoder

Caido
主唱太拼命了

User's AC Ratio

66.7% (2/3)

Submission's AC Ratio

37.5% (3/8)

Tags

Description

Input Format

Output Format

Sample Input 1

7 8 5 1
200 400 600 1000 1100 1450 2434
DDKKDKK
100 106 200 399 650 1050 1116 1488
DDDDKKDD
400 1000

Sample Output 1

1020
2 2 3
42.86
4

Sample Input 2

16 16 9.87 2
100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600
DDKKDKDKDKDDDDDK
100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 1400 1500 1600
DKKKDKDKDKDDDDKK
200 300
1400 1600

Sample Output 2

4556
14 0 2
87.50
12

Sample Input 3

6 6 4.01 0
100 300 400 500 600 727
DDDKKK
100 200 300 400 500 600
DDDKKK

Sample Output 3

300
1 0 5
16.67
1

Hints

Problem Source

YTP 2022 國中組初賽 p4

Subtasks

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

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 524288 65536 1 2
1 1000 524288 65536 1 2
2 1000 524288 65536 1 2
3 1000 524288 65536 2
4 1000 524288 65536 2
5 1000 524288 65536 2
6 1000 524288 65536 2
7 1000 524288 65536 2
8 1000 524288 65536 2
9 1000 524288 65536 2
10 1000 524288 65536 2
11 1000 524288 65536 2
12 1000 524288 65536 2
13 1000 524288 65536 2
14 1000 524288 65536 2
15 1000 524288 65536 2
16 1000 524288 65536 2
17 1000 524288 65536 2
18 1000 524288 65536 2
19 1000 524288 65536 2
20 1000 524288 65536 2
21 1000 524288 65536 2
22 1000 524288 65536 2
23 1000 524288 65536 2
24 1000 524288 65536 2
25 1000 524288 65536 2
26 1000 524288 65536 2
27 1000 524288 65536 2
28 1000 524288 65536 2
29 1000 524288 65536 2
30 1000 524288 65536 2
31 1000 524288 65536 2
32 1000 524288 65536 2
33 1000 524288 65536 2
34 1000 524288 65536 2
35 1000 524288 65536 2
36 1000 524288 65536 2
37 1000 524288 65536 2
38 1000 524288 65536 2
39 1000 524288 65536 2
40 1000 524288 65536 2
41 1000 524288 65536 2
42 1000 524288 65536 2
43 1000 524288 65536 2
44 1000 524288 65536 2
45 1000 524288 65536 2
46 1000 524288 65536 2
47 1000 524288 65536 2
48 1000 524288 65536 2
49 1000 524288 65536 2
50 1000 524288 65536 2
51 1000 524288 65536 2
52 1000 524288 65536 2
53 1000 524288 65536 2
54 1000 524288 65536 2