結果

問題 No.51 やる気の問題
ユーザー yuki2006yuki2006
提出日時 2014-10-28 14:08:57
言語 Python2
(2.7.18)
結果
AC  
実行時間 26 ms / 5,000 ms
コード長 104 bytes
コンパイル時間 748 ms
コンパイル使用メモリ 6,560 KB
実行使用メモリ 6,072 KB
最終ジャッジ日時 2023-08-28 23:12:58
合計ジャッジ時間 2,304 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,004 KB
testcase_01 AC 11 ms
5,908 KB
testcase_02 AC 11 ms
5,856 KB
testcase_03 AC 12 ms
5,924 KB
testcase_04 AC 11 ms
5,920 KB
testcase_05 AC 21 ms
5,980 KB
testcase_06 AC 18 ms
6,064 KB
testcase_07 AC 18 ms
5,856 KB
testcase_08 AC 15 ms
5,892 KB
testcase_09 AC 26 ms
6,004 KB
testcase_10 AC 16 ms
5,948 KB
testcase_11 AC 15 ms
6,072 KB
testcase_12 AC 18 ms
5,856 KB
testcase_13 AC 19 ms
6,000 KB
testcase_14 AC 17 ms
5,848 KB
testcase_15 AC 22 ms
5,852 KB
testcase_16 AC 14 ms
5,980 KB
testcase_17 AC 12 ms
6,048 KB
testcase_18 AC 23 ms
5,916 KB
testcase_19 AC 23 ms
5,848 KB
testcase_20 AC 18 ms
5,940 KB
testcase_21 AC 12 ms
5,880 KB
testcase_22 AC 25 ms
6,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
D = int(raw_input())

for d in xrange(D, 1, -1):
    N -= N // (d * d)
print N
0