|
|
вернуться в форумThink of what makes sum even or odd #include <iostream> int main() { int n; std::cin >> n; n = n % 4; if (n == 2 || n == 1) { std::cout << "grimy"; } else { std::cout << "black"; } } only amount of odd numbers matters and it changes every 2 numbers so for 1, 2 - 1 odd for 3, 4 - 2 odd numbers and so on |
|
|