- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
#include<cstdio>
#include<iostream>
#include<cmath>
#include<string>
int main()
{
long long a, b, c, e = (bool)(std::cout << (std::cin >> a >> b >> c && (a == 0 || (b != 0 && c == 0)) ? "0" : (b == 0 ? "IMPOSSIBLE" : std::to_string((a / b + (a % b != 0 ? 1 : 0)) * c))));
}