Codeforces Round #597 (Div. 2)
Codeforces Round #597 (Div. 2) -----比赛传送门----- A - Good ol’ Numbers Coloring Problem Description Consider the set of all nonnegative integers: 0,1,2,…. Given two integers a and b (1≤a,b≤104). We paint all the numbers in increasing number first we paint 0, then we paint 1, then 2 and so on. Each number is painted white or black. We paint a number i according to the following rules: if i=0, it is colored white; if i≥a and i−a is colored white, i is also colored white; if i≥b and i−b is colored white, i is also colored white; if i is still not colored white, it is colored black. In this way, each