結果

問題 No.51 やる気の問題
ユーザー togatogatogatoga
提出日時 2015-08-17 09:31:57
言語 Python2
(2.7.18)
結果
AC  
実行時間 51 ms / 5,000 ms
コード長 150 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 6,576 KB
実行使用メモリ 9,040 KB
最終ジャッジ日時 2023-09-25 12:33:52
合計ジャッジ時間 1,701 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,028 KB
testcase_01 AC 12 ms
6,116 KB
testcase_02 AC 11 ms
6,024 KB
testcase_03 AC 14 ms
6,136 KB
testcase_04 AC 12 ms
6,016 KB
testcase_05 AC 39 ms
8,136 KB
testcase_06 AC 30 ms
7,264 KB
testcase_07 AC 30 ms
7,376 KB
testcase_08 AC 21 ms
6,584 KB
testcase_09 AC 50 ms
9,040 KB
testcase_10 AC 23 ms
6,728 KB
testcase_11 AC 21 ms
6,792 KB
testcase_12 AC 31 ms
7,364 KB
testcase_13 AC 33 ms
7,568 KB
testcase_14 AC 27 ms
6,992 KB
testcase_15 AC 42 ms
8,388 KB
testcase_16 AC 19 ms
6,544 KB
testcase_17 AC 14 ms
6,148 KB
testcase_18 AC 44 ms
8,444 KB
testcase_19 AC 44 ms
8,376 KB
testcase_20 AC 30 ms
7,344 KB
testcase_21 AC 14 ms
6,440 KB
testcase_22 AC 51 ms
8,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
W = input()
D = input()
for i in range(D):
    if (W / ((D - i) ** 2) == W):
        print W
        sys.exit()
    W -= W / ((D - i) ** 2)
0