Codeforces Global Round 14, B. Phoenix and Puzzle problem B. Phoenix and Puzzle time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Phoenix is playing with a new puzzle, which consists of n identi......