用户输出
7219
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#49085 | #1254. 含金量 | Accepted | 100 | 43 ms | 372 K | C++ / 173 B | Undark | 2021-05-21 12:52:05 |
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
float s = b * 1.000 / a;
float d = s * c;
int temp = d;
if (temp == d)
cout << d - 1;
else
cout << temp;
}