TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

The PDF version of this problem can be downloaded here.

The PDF file of all problems can be downloaded HERE

Input Format

Output Format

Sample Input 1

14
YGWBWBYWYYRYBR
YGPYBWWBPGWBRG
YYWYBWBYGPBWGB
RGGRGYBPRYPRPG
RBYGRYWGBPYRGY
BYBBPWRBPWYGBP
GBBRRWPPWGPPBG
RPRWYRBBGGGBRW
GRBYBYRWPGGBGR
BYYRRWYYYGPPGB
BRYBGWGGRWWYRB
WWPPYYWPRPYGWY
WYPRGBRBWPBRBY
RBGBWWYWPWPYRG
GRGBRWPBGYPYGBYGPGRWBYPGR

Sample Output 1

2535

Hints

Problem Source

Migrated from old NTUJ.

dreamoon

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 2000 65536 200