blob: 4c1e1184ecca3bcd8386a4c2acbc2c3408968f6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <iostream>
const char *boolean(bool value) { return value ? "TRUE" : "FALSE"; }
int main() {
int count;
if (!(std::cin >> count)) return 1;
for (int i = 0; i < count; ++i) {
int a, b;
if (!(std::cin >> a >> b)) return 1;
double x = a / 8.0, y = b / 8.0;
std::cout << boolean(x < y) << ':' << boolean(x == y) << ':'
<< boolean(2.0 * x == a / 4.0) << ':'
<< boolean(x + y == (a + b) / 8.0) << ':'
<< boolean(x * y == (a * b) / 64.0) << '\n';
}
}
|