参考代码:
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); double x = 1 / scanner.nextDouble(); double y = scanner.nextDouble(); int res = n - (int)Math.ceil(x * y); System.out.print(res); } }
0.0分
5 人评分