結果

問題 No.51 やる気の問題
ユーザー m2543315647m2543315647
提出日時 2015-05-22 16:30:02
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 228 bytes
コンパイル時間 3,345 ms
コンパイル使用メモリ 72,256 KB
実行使用メモリ 56,472 KB
最終ジャッジ日時 2023-09-20 09:06:13
合計ジャッジ時間 7,334 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
53,840 KB
testcase_01 AC 125 ms
56,028 KB
testcase_02 AC 125 ms
56,356 KB
testcase_03 AC 127 ms
55,804 KB
testcase_04 AC 123 ms
55,988 KB
testcase_05 RE -
testcase_06 AC 124 ms
55,724 KB
testcase_07 AC 125 ms
55,700 KB
testcase_08 AC 124 ms
55,792 KB
testcase_09 RE -
testcase_10 AC 127 ms
56,472 KB
testcase_11 AC 126 ms
55,936 KB
testcase_12 AC 123 ms
55,876 KB
testcase_13 AC 125 ms
55,992 KB
testcase_14 AC 125 ms
55,888 KB
testcase_15 RE -
testcase_16 AC 123 ms
55,820 KB
testcase_17 AC 125 ms
55,772 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 123 ms
55,592 KB
testcase_21 AC 123 ms
56,036 KB
testcase_22 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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