Ограничения: время – 1s/2s, память – 64MiB Ввод: input.txt или стандартный ввод Вывод: output.txt или стандартный вывод
Послать решение Blockly Посылки Темы Где Обсудить (0)
On Christmas, in the evening, there were three flowers in the window, from left to
right: geranium, crocus and violet. Every morning Masha cleans the dust and changes
position of the right flower with central one. In the afternoon, Tanya waters
the flowers and swaps left and central flowers. Output the order of the flowers after `K` days, at night.
The first line of the input file contains a single integer number `M` (`1\ ≤\ M\ ≤\ 12`) that represents
a number of tests. Each of the following `M` lines contains an integer `K` (`1\ ≤\ К\ ≤\ 1000`).
The output for each test contains three Latin letters 'G', 'C' and 'V' (capital
letters, no spaces) representing the order of the flowers in `K` days (from left to right).
G stands for geranium, C for crocus and V for violet.
Четвертьфинальные соревнования Чемпионата мира Восточно-сибирского региона, 2008