結果

問題 No.1235 ζ関数
ユーザー komkompikomkompi
提出日時 2020-10-23 20:31:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 123 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 10,556 KB
実行使用メモリ 8,668 KB
最終ジャッジ日時 2023-09-28 15:41:07
合計ジャッジ時間 2,060 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,836 KB
testcase_01 AC 34 ms
8,400 KB
testcase_02 AC 21 ms
8,104 KB
testcase_03 AC 37 ms
8,416 KB
testcase_04 AC 17 ms
7,928 KB
testcase_05 AC 22 ms
7,720 KB
testcase_06 AC 18 ms
7,756 KB
testcase_07 AC 48 ms
8,668 KB
testcase_08 AC 24 ms
8,192 KB
testcase_09 AC 34 ms
8,448 KB
testcase_10 AC 34 ms
8,360 KB
testcase_11 AC 38 ms
8,304 KB
testcase_12 AC 23 ms
8,240 KB
testcase_13 AC 37 ms
8,260 KB
testcase_14 AC 20 ms
8,204 KB
testcase_15 AC 37 ms
8,300 KB
testcase_16 AC 16 ms
7,864 KB
testcase_17 AC 26 ms
8,164 KB
testcase_18 AC 18 ms
7,796 KB
testcase_19 AC 41 ms
8,404 KB
testcase_20 AC 18 ms
7,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Your code here!
N=int(input())

A=[i**N for i in range(1,11)]

ans=0
for a in A:
    ans+=1/a

print(ans)
0