[Solution] Doremy’s Paint 3 Solution Codeforces
[Solution] Doremy’s Paint 3 Solution Codeforces time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output An array b1,b2,…,bn�1,�2,…,�� of positive integers is good if all the sums of two adjacent elements are equal to the same value. More formally, the array is good if there exists a k� such that b1+b2=b2+b3=…=bn−1+bn=k�1+�2=�2+�3=…=��−1+��=�. … Read more