結果

問題 No.1235 ζ関数
ユーザー ytqm3ytqm3
提出日時 2022-11-12 16:45:28
言語 Python3
(3.10.1 + numpy 1.22.3 + scipy 1.8.0)
結果
AC  
実行時間 20 ms / 2,000 ms
コード長 90 bytes
コンパイル時間 307 ms
使用メモリ 7,952 KB
最終ジャッジ日時 2023-02-26 16:37:22
合計ジャッジ時間 2,330 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 19 ms
7,880 KB
testcase_01 AC 20 ms
7,864 KB
testcase_02 AC 20 ms
7,868 KB
testcase_03 AC 18 ms
7,856 KB
testcase_04 AC 19 ms
7,768 KB
testcase_05 AC 20 ms
7,804 KB
testcase_06 AC 19 ms
7,868 KB
testcase_07 AC 19 ms
7,864 KB
testcase_08 AC 19 ms
7,856 KB
testcase_09 AC 19 ms
7,856 KB
testcase_10 AC 18 ms
7,780 KB
testcase_11 AC 19 ms
7,808 KB
testcase_12 AC 19 ms
7,864 KB
testcase_13 AC 18 ms
7,752 KB
testcase_14 AC 18 ms
7,800 KB
testcase_15 AC 19 ms
7,864 KB
testcase_16 AC 18 ms
7,756 KB
testcase_17 AC 18 ms
7,796 KB
testcase_18 AC 18 ms
7,764 KB
testcase_19 AC 18 ms
7,952 KB
testcase_20 AC 18 ms
7,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = 0.0
for i in range(10000):
  ans += (1.0 / (i + 1)) ** N
print(ans)
0