結果

問題 No.51 やる気の問題
ユーザー fkwnw3_1243
提出日時 2017-04-25 21:31:42
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 501 bytes
コンパイル時間 2,124 ms
コンパイル使用メモリ 74,396 KB
実行使用メモリ 52,324 KB
最終ジャッジ日時 2024-09-13 09:13:23
合計ジャッジ時間 4,141 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14 RE * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {


    public static void main(String[] args) throws IOException {
        BufferedReader reader =new BufferedReader(new InputStreamReader(System.in));
        int W = Integer.parseInt(reader.readLine());
        int D = Integer.parseInt(reader.readLine());
        for (int i = D; i > 1 ; i--) {
           
            W = W - W/(i*i);
        }
        System.out.println(W);

    }
}
0