TopCoder

User's AC Ratio

33.3% (1/3)

Submission's AC Ratio

12.5% (1/8)

Tags

Description

Input Format

Output Format

Sample Input 1

1
N
PASS
PASS
PASS
PASS

Sample Output 1

ALL PASS

Sample Input 2

3
E
1C
1NT
2C
PASS
PASS
PASS
C2 C3 C4 CA
CK C5 C6 C7
CQ C8 C9 CT
CJ S2 S3 S4
SA S5 S6 S7
SK S8 S9 ST
SQ SJ H2 H3
HA H4 H5 H6
H7 HK H8 H9
HQ HJ HT D2
DA D3 D4 D5
DK D6 D7 D8
DQ D9 DT DJ
S
1C
X
PASS
PASS
PASS
C2 C3 C4 CA
CK C5 C6 C7
CQ C8 C9 CT
CJ S2 S3 S4
SA S5 S6 S7
SK S8 S9 ST
SQ SJ H2 H3
HA H4 H5 H6
H7 HK H8 H9
HQ HJ HT D2
DA D3 D4 D5
DK D6 D7 D8
DQ D9 DT DJ
W
3C
X
XX
PASS
PASS
PASS
C2 C3 C4 CA
CK C5 C6 C7
CQ C8 C9 CT
CJ S2 S3 S4
SA S5 S6 S7
SK S8 S9 ST
SQ SJ H2 H3
HA H4 H5 H6
H7 HK H8 H9
HQ HJ HT D2
DA D3 D4 D5
DK D6 D7 D8
DQ D9 DT DJ

Sample Output 2

2CE=
1CXS+1
3CXXW-1

Sample Input 3

1
E
1C
XX
PASS
PASS
PASS
C2 C3 C4 CA
CK C5 C6 C7
CQ C8 C9 CT
CJ S2 S3 S4
SA S5 S6 S7
SK S8 S9 ST
SQ SJ H2 H3
HA H4 H5 H6
H7 HK H8 H9
HQ HJ HT D2
DA D3 D4 D5
DK D6 D7 D8
DQ D9 DT DJ

Sample Output 3

error

Hints

Problem Source

YTP 2022 高中組初賽 p5

Subtasks

No. Testdata Range Constraints Score
1 0~2 範例測資 0
2 0~32 無額外限制 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