結果

問題 No.51 やる気の問題
ユーザー yuppe19 😺yuppe19 😺
提出日時 2015-09-07 17:32:39
言語 Python2
(2.7.18)
結果
AC  
実行時間 64 ms / 5,000 ms
コード長 171 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 6,576 KB
実行使用メモリ 6,100 KB
最終ジャッジ日時 2023-09-26 10:00:35
合計ジャッジ時間 2,041 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,940 KB
testcase_01 AC 12 ms
6,088 KB
testcase_02 AC 11 ms
6,044 KB
testcase_03 AC 13 ms
5,880 KB
testcase_04 AC 12 ms
6,044 KB
testcase_05 AC 48 ms
5,840 KB
testcase_06 AC 36 ms
5,876 KB
testcase_07 AC 36 ms
5,848 KB
testcase_08 AC 25 ms
6,092 KB
testcase_09 AC 64 ms
6,100 KB
testcase_10 AC 27 ms
5,944 KB
testcase_11 AC 26 ms
5,948 KB
testcase_12 AC 38 ms
5,964 KB
testcase_13 AC 40 ms
5,852 KB
testcase_14 AC 33 ms
5,988 KB
testcase_15 AC 53 ms
5,944 KB
testcase_16 AC 23 ms
6,048 KB
testcase_17 AC 15 ms
5,840 KB
testcase_18 AC 56 ms
5,840 KB
testcase_19 AC 56 ms
5,988 KB
testcase_20 AC 37 ms
5,856 KB
testcase_21 AC 15 ms
5,840 KB
testcase_22 AC 64 ms
5,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
w = int(raw_input())
d = int(raw_input())

for i in xrange(d-1):
    nokori = d - i
    yaruki = float(w) / nokori / nokori
    w -= int(yaruki)
print w
0