結果

問題 No.1271 初めての級数
ユーザー morningsugarmorningsugar
提出日時 2021-08-30 14:22:17
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 82 bytes
コンパイル時間 948 ms
コンパイル使用メモリ 87,116 KB
実行使用メモリ 79,336 KB
最終ジャッジ日時 2023-08-15 12:11:04
合計ジャッジ時間 3,170 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 72 ms
71,180 KB
testcase_02 AC 72 ms
71,460 KB
testcase_03 AC 72 ms
71,372 KB
testcase_04 AC 72 ms
71,500 KB
testcase_05 AC 72 ms
71,368 KB
testcase_06 AC 72 ms
71,176 KB
testcase_07 AC 72 ms
71,376 KB
testcase_08 AC 73 ms
71,608 KB
testcase_09 AC 72 ms
71,428 KB
testcase_10 AC 76 ms
71,612 KB
testcase_11 AC 72 ms
71,648 KB
testcase_12 AC 73 ms
71,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

k = int(input())
l = 1 / k
x = 0
for i in range(1,k+1):
    x = x + 1/i
print(l*x)
0