結果

問題 No.1273 はじめのζ関数
ユーザー ayaoniayaoni
提出日時 2020-10-30 21:36:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 578 bytes
コンパイル時間 651 ms
コンパイル使用メモリ 86,836 KB
実行使用メモリ 76,600 KB
最終ジャッジ日時 2023-09-29 05:11:39
合計ジャッジ時間 6,638 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
76,416 KB
testcase_01 AC 93 ms
76,388 KB
testcase_02 AC 93 ms
76,528 KB
testcase_03 AC 96 ms
76,600 KB
testcase_04 AC 93 ms
76,328 KB
testcase_05 AC 79 ms
76,420 KB
testcase_06 AC 93 ms
76,308 KB
testcase_07 AC 91 ms
76,176 KB
testcase_08 AC 93 ms
76,180 KB
testcase_09 AC 89 ms
76,320 KB
testcase_10 AC 93 ms
76,308 KB
testcase_11 AC 76 ms
75,984 KB
testcase_12 AC 90 ms
76,324 KB
testcase_13 AC 95 ms
76,308 KB
testcase_14 AC 93 ms
76,404 KB
testcase_15 AC 90 ms
76,256 KB
testcase_16 AC 89 ms
76,320 KB
testcase_17 AC 95 ms
76,496 KB
testcase_18 AC 93 ms
76,232 KB
testcase_19 AC 91 ms
76,368 KB
testcase_20 WA -
testcase_21 TLE -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
def LS2(): return list(sys.stdin.readline().rstrip())


x = I()
ans = 0
for i in range(2,10000):
    if pow(i,x-1) <= 10**10:
        ans += (1/i**(x-1))/(i-1)
print(int(ans*10**6))
0