結果

問題 No.51 やる気の問題
ユーザー nCk_cvnCk_cv
提出日時 2016-02-01 20:31:59
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 287 bytes
コンパイル時間 2,042 ms
コンパイル使用メモリ 74,136 KB
実行使用メモリ 57,800 KB
最終ジャッジ日時 2023-10-21 18:31:50
合計ジャッジ時間 6,103 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
57,148 KB
testcase_01 AC 124 ms
57,436 KB
testcase_02 AC 130 ms
57,440 KB
testcase_03 AC 131 ms
57,136 KB
testcase_04 AC 123 ms
57,204 KB
testcase_05 RE -
testcase_06 AC 128 ms
57,376 KB
testcase_07 AC 126 ms
57,188 KB
testcase_08 AC 127 ms
57,544 KB
testcase_09 RE -
testcase_10 AC 133 ms
57,696 KB
testcase_11 AC 124 ms
57,456 KB
testcase_12 AC 124 ms
57,388 KB
testcase_13 AC 124 ms
57,412 KB
testcase_14 AC 127 ms
57,524 KB
testcase_15 RE -
testcase_16 AC 126 ms
57,728 KB
testcase_17 AC 124 ms
57,436 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 130 ms
57,372 KB
testcase_21 AC 112 ms
56,224 KB
testcase_22 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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