Codeforces Round 472 (rated, Div. 2, based on VK Cup 2018 Round 2)
1 problems from Codeforces Round 472 (rated, Div. 2, based on VK Cup 2018 Round 2) (contest 957), difficulty 1300-1300. 1/1 solutions verified against sample I/O.
Codeforces Round 472 (rated, Div. 2, based on VK Cup 2018 Round 2)
Div. 2 | 1 problems | 1/1 verified | Difficulty 1300-1300 | 1m 2s
| # | Problem | Rating | Tags | Accepted | Time | ✓ |
|---|---|---|---|---|---|---|
| A | Tritonic Iridescence | 1300 | implementation | 5,996 | 1m 2s | ✓ |
Practice
›
Codeforces Solutions
›
Codeforces Round 472 (rated, Div. 2, based on VK Cup 2018 Round 2)
›
CF 957A - Tritonic Iridescence
We are given a one-dimensional strip of length $n$, where each position is either already painted in one of three colors or left blank. The blank positions must be filled using the same three colors so that no two adjacent positions end up sharing the same color.