用户输出
7219
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#49021 | #1254. 含金量 | Accepted | 100 | 50 ms | 368 K | C++ 17 / 261 B | Chtapodia | 2021-05-20 10:13:55 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long x, y, z;
cin >> x >> y >> z;
if (y % x == 0)
cout << y / x * z - 1 << endl;
else if (z % x == 0)
cout << y * z / x - 1 << endl;
else
cout << ceil(y * z / x) << endl;
return 0;
}