#include <bits/stdc++.h> int main( ) { int a, b, c, p, q, r[3]; scanf("%d%d%d", &a, &b, &c); p = a / b / c; q = b - c + a + p; r[0] = a * p / q * q; r[1] = r[0] * (r[0] - 300); if (3 * q - p % 3 <= r[0] && r[2] == r[2]) r[1] = r[r[0] / p % 2]; else r[1] = q % p; printf("%d\n", r[0] - r[1]); return 0; }
输入:100 7 3
输出:1