結果

問題 No.1271 初めての級数
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2020-10-30 21:25:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 158 ms / 2,000 ms
コード長 88 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 76,636 KB
最終ジャッジ日時 2023-09-29 04:42:52
合計ジャッジ時間 3,114 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 154 ms
76,636 KB
testcase_01 AC 158 ms
76,632 KB
testcase_02 AC 156 ms
76,412 KB
testcase_03 AC 153 ms
76,348 KB
testcase_04 AC 152 ms
76,564 KB
testcase_05 AC 152 ms
76,348 KB
testcase_06 AC 153 ms
76,516 KB
testcase_07 AC 153 ms
76,464 KB
testcase_08 AC 151 ms
76,376 KB
testcase_09 AC 153 ms
76,448 KB
testcase_10 AC 152 ms
76,444 KB
testcase_11 AC 152 ms
76,432 KB
testcase_12 AC 152 ms
76,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

k = int(input())

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