結果

問題 No.1271 初めての級数
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-10-07 09:52:24
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 87 bytes
コンパイル時間 322 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 71,560 KB
最終ジャッジ日時 2023-09-30 09:00:49
合計ジャッジ時間 2,308 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 74 ms
71,560 KB
testcase_02 AC 74 ms
71,504 KB
testcase_03 AC 79 ms
71,328 KB
testcase_04 AC 75 ms
71,248 KB
testcase_05 AC 75 ms
71,256 KB
testcase_06 AC 74 ms
71,240 KB
testcase_07 AC 75 ms
71,256 KB
testcase_08 AC 76 ms
71,420 KB
testcase_09 AC 74 ms
71,412 KB
testcase_10 AC 77 ms
71,472 KB
testcase_11 AC 74 ms
71,508 KB
testcase_12 AC 76 ms
71,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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