結果

問題 No.51 やる気の問題
ユーザー ktshunktshun
提出日時 2015-05-31 16:26:54
言語 Python2
(2.7.18)
結果
AC  
実行時間 33 ms / 5,000 ms
コード長 140 bytes
コンパイル時間 45 ms
コンパイル使用メモリ 6,620 KB
実行使用メモリ 9,736 KB
最終ジャッジ日時 2023-09-20 18:04:22
合計ジャッジ時間 1,591 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,072 KB
testcase_01 AC 12 ms
6,180 KB
testcase_02 AC 12 ms
6,024 KB
testcase_03 AC 14 ms
6,196 KB
testcase_04 AC 12 ms
6,108 KB
testcase_05 AC 27 ms
8,716 KB
testcase_06 AC 22 ms
7,644 KB
testcase_07 AC 22 ms
7,596 KB
testcase_08 AC 17 ms
6,868 KB
testcase_09 AC 33 ms
9,636 KB
testcase_10 AC 18 ms
7,136 KB
testcase_11 AC 18 ms
6,740 KB
testcase_12 AC 22 ms
7,812 KB
testcase_13 AC 23 ms
7,948 KB
testcase_14 AC 20 ms
7,328 KB
testcase_15 AC 29 ms
8,948 KB
testcase_16 AC 16 ms
6,568 KB
testcase_17 AC 13 ms
6,300 KB
testcase_18 AC 29 ms
9,100 KB
testcase_19 AC 30 ms
9,180 KB
testcase_20 AC 22 ms
7,916 KB
testcase_21 AC 13 ms
6,268 KB
testcase_22 AC 33 ms
9,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding:utf-8 -*-

if __name__ == "__main__":
	w = input()
	d = input()
	for i in range(2,d + 1)[::-1]:
		w = w - w / i ** 2

	print w
0