TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

8 8 4
Diamond 3 3 1 1
Triangle 4 4 3 2
Rectangle 1 1 2 2 3
Circle 6 6 2 4

Sample Output 1

4 4 4 11 0 0 0 0 0

Hints

The final distribution of different colors:

00000000

03300000

03310000

00111000

00022240

00002444

00004444

00000444

Problem Source

Migrated from old NTUJ.

ACM ICPC Dalian 2011

Subtasks

No. Testdata Range Score

Testdata and Limits

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