結果

問題 No.1235 ζ関数
ユーザー LyricalMaestroLyricalMaestro
提出日時 2024-01-14 02:56:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 59,892 KB
最終ジャッジ日時 2024-01-14 02:56:48
合計ジャッジ時間 2,448 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
59,764 KB
testcase_01 AC 43 ms
59,892 KB
testcase_02 AC 42 ms
59,892 KB
testcase_03 AC 43 ms
59,892 KB
testcase_04 AC 43 ms
59,764 KB
testcase_05 AC 43 ms
59,892 KB
testcase_06 AC 44 ms
59,892 KB
testcase_07 AC 43 ms
59,892 KB
testcase_08 AC 43 ms
59,892 KB
testcase_09 AC 44 ms
59,892 KB
testcase_10 AC 43 ms
59,892 KB
testcase_11 AC 42 ms
59,892 KB
testcase_12 AC 43 ms
59,892 KB
testcase_13 AC 42 ms
59,892 KB
testcase_14 AC 43 ms
59,892 KB
testcase_15 AC 43 ms
59,892 KB
testcase_16 AC 43 ms
59,764 KB
testcase_17 AC 43 ms
59,892 KB
testcase_18 AC 43 ms
59,892 KB
testcase_19 AC 43 ms
59,892 KB
testcase_20 AC 43 ms
59,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

## https://yukicoder.me/problems/no/1235


def main():
    N = int(input())
    answer = 0
    for i in range(1, 100001):
        f = pow(1 / i, N)
        answer += f
    print(answer)



if __name__ == "__main__":
    main()
0