CCC '21 S2 - Modern Art


Submit solution

Points: 1
Time limit: 3.0s
Memory limit: 1G

Problem types
Allowed languages
C++, Python

Sample Input 2

4
5
7
R 3
C 1
C 2
R 2
R 2
C 1
R 4

Output for Sample Input 2

10

Explanation of Output for Sample Input 2

Ten cells are gold in the final pattern determined by the artist's choices:

BGBBB
BGBBB
GBGGG
GBGGG

Comments

There are no comments at the moment.