用户输出
7219
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#69085 | #1254. 含金量 | Accepted | 100 | 58 ms | 508 K | C++ 11 / 608 B | 该起什么名字 | 2022-04-25 11:48:49 |
#include <bits/stdc++.h>
#define F(i, n, m) for (int i = n; i < m; i++)
typedef unsigned long long ull;
typedef long long ll;
using namespace std;
inline int read() {
int num = 0;
char c;
bool flag = false;
while ((c = getchar()) == ' ' || c == '\n' || c == '\r')
;
if (c == '-')
flag = true;
else
num = c - '0';
while (isdigit(c = getchar())) num = num * 10 + c - '0';
return (flag ? -1 : 1) * num;
}
int main() {
std::ios::sync_with_stdio(false);
int x, y, z;
x = read();
y = read();
z = read();
cout << floor(z * y / x) - !(z * y % x);
return 0;
}