結果

問題 No.51 やる気の問題
ユーザー aaaaasatori
提出日時 2018-02-14 20:34:56
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 255 bytes
コンパイル時間 3,667 ms
コンパイル使用メモリ 74,644 KB
実行使用メモリ 54,384 KB
最終ジャッジ日時 2024-12-23 04:28:45
合計ジャッジ時間 8,140 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14 RE * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No51 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int W = sc.nextInt();
		int D = sc.nextInt();
		while(D != 1) {
			W -= (W/(D*D));
			D--;
		}
		System.out.println(W);
	}
}
0