用户输出
7219
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#69199 | #1254. 含金量 | Accepted | 100 | 1249 ms | 11428 K | Java / 1.3 K | zaiz7 | 2022-05-10 23:13:45 |
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
Read in = new Read();
int x = in.nextInt(), y = in.nextInt(), z = in.nextInt();
int i = 1;
for (; i < Integer.MAX_VALUE; i++) {
if ((double) i / z >= (double) y / x)
break;
}
System.out.println(i - 1);
}
static class Read {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer("");
String next() {
while (!st.hasMoreTokens()) try {
st = new StringTokenizer(br.readLine());
} catch (IOException e) {
e.printStackTrace();
}
return st.nextToken();
}
int nextInt() {
return Integer.parseInt(next());
}
int[] readArray(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++) a[i] = nextInt();
return a;
}
long nextLong() {
return Long.parseLong(next());
}
double nextDouble() {
return Double.parseDouble(next());
}
}
}