用户输出
7219
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#69206 | #1254. 含金量 | Accepted | 100 | 57 ms | 504 K | C++ / 322 B | zjdfy | 2022-05-10 23:29:37 |
#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
double x;
double y;
double z;
cin >> x;
cin >> y;
cin >> z;
double yuanshen;
double wo;
yuanshen = y / x;
wo = y / x * z;
int zhengshu = (int)wo;
if (wo == zhengshu) {
cout << zhengshu - 1;
} else {
cout << zhengshu;
}
}