結果

問題 No.51 やる気の問題
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-13 18:14:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 250 bytes
コンパイル時間 4,309 ms
コンパイル使用メモリ 71,084 KB
実行使用メモリ 56,260 KB
最終ジャッジ日時 2023-08-20 02:18:23
合計ジャッジ時間 6,327 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,432 KB
testcase_01 AC 121 ms
56,260 KB
testcase_02 AC 122 ms
55,728 KB
testcase_03 AC 121 ms
55,820 KB
testcase_04 AC 121 ms
55,540 KB
testcase_05 AC 126 ms
56,048 KB
testcase_06 AC 124 ms
55,600 KB
testcase_07 AC 124 ms
55,684 KB
testcase_08 AC 126 ms
55,688 KB
testcase_09 AC 128 ms
55,928 KB
testcase_10 AC 124 ms
55,792 KB
testcase_11 AC 120 ms
55,984 KB
testcase_12 AC 124 ms
55,876 KB
testcase_13 AC 124 ms
56,020 KB
testcase_14 AC 125 ms
55,764 KB
testcase_15 AC 122 ms
55,588 KB
testcase_16 AC 120 ms
53,828 KB
testcase_17 AC 120 ms
55,384 KB
testcase_18 AC 123 ms
55,648 KB
testcase_19 AC 118 ms
55,644 KB
testcase_20 AC 122 ms
55,928 KB
testcase_21 AC 123 ms
55,572 KB
testcase_22 AC 125 ms
55,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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