[SOLUTION] Two Characters, Two Colors Solution Codeforces

G. Two Characters, Two Colors time limit per test 4 seconds memory limit per test 512 megabytes input standard input output standard output You are given a string consisting of characters 0 and/or 1. You have to paint every character of this string into one of two colors, red or blue. If you paint the i�-th character red, you … Read more