結果

問題 No.1271 初めての級数
ユーザー Ldio03Ldio03
提出日時 2020-10-30 22:01:18
言語 Python3
(3.10.1 + numpy 1.22.3 + scipy 1.8.0)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 137 bytes
コンパイル時間 125 ms
使用メモリ 9,816 KB
最終ジャッジ日時 2023-02-21 12:33:51
合計ジャッジ時間 1,350 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 17 ms
9,776 KB
testcase_01 AC 17 ms
7,692 KB
testcase_02 AC 16 ms
7,664 KB
testcase_03 AC 16 ms
7,724 KB
testcase_04 AC 16 ms
7,656 KB
testcase_05 AC 16 ms
7,708 KB
testcase_06 AC 16 ms
7,652 KB
testcase_07 AC 16 ms
9,816 KB
testcase_08 AC 16 ms
7,692 KB
testcase_09 AC 16 ms
9,656 KB
testcase_10 AC 16 ms
7,648 KB
testcase_11 AC 16 ms
7,680 KB
testcase_12 AC 15 ms
9,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

k = int(input())
print(sum(1/i for i in range(1,k+1))/k if k !=0 else 1.6449340668482264364724151666460251892189499012067984377355582293)
0