結果

問題 No.51 やる気の問題
ユーザー kzyKTkzyKT
提出日時 2015-03-23 23:29:07
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 304 bytes
コンパイル時間 3,988 ms
コンパイル使用メモリ 71,760 KB
実行使用メモリ 56,212 KB
最終ジャッジ日時 2023-09-11 09:48:28
合計ジャッジ時間 8,283 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,740 KB
testcase_01 AC 125 ms
55,680 KB
testcase_02 AC 124 ms
56,008 KB
testcase_03 AC 126 ms
55,664 KB
testcase_04 AC 125 ms
56,020 KB
testcase_05 RE -
testcase_06 AC 126 ms
55,648 KB
testcase_07 AC 126 ms
56,212 KB
testcase_08 AC 126 ms
55,888 KB
testcase_09 RE -
testcase_10 AC 126 ms
56,192 KB
testcase_11 AC 127 ms
56,108 KB
testcase_12 AC 129 ms
56,120 KB
testcase_13 AC 125 ms
55,592 KB
testcase_14 AC 126 ms
55,668 KB
testcase_15 RE -
testcase_16 AC 125 ms
55,392 KB
testcase_17 AC 127 ms
55,796 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 126 ms
55,928 KB
testcase_21 AC 126 ms
55,720 KB
testcase_22 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.lang.*;
import java.util.*;
import java.math.*;

public class Main {
    static Scanner cin = new Scanner(System.in);
    public static void main(String[] args) {
	int w=cin.nextInt();
	int d=cin.nextInt();
	for(int i=d; i>1; i--) w-=w/(i*i);
	System.out.println(w);
    }
}
0