結果

問題 No.1235 ζ関数
ユーザー kozykozy
提出日時 2020-09-21 12:52:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,560 ms / 2,000 ms
コード長 104 bytes
コンパイル時間 339 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 10,368 KB
最終ジャッジ日時 2023-11-13 07:52:54
合計ジャッジ時間 13,464 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
9,984 KB
testcase_01 AC 854 ms
10,240 KB
testcase_02 AC 220 ms
10,112 KB
testcase_03 AC 1,035 ms
10,368 KB
testcase_04 AC 27 ms
9,984 KB
testcase_05 AC 280 ms
10,112 KB
testcase_06 AC 89 ms
10,112 KB
testcase_07 AC 1,560 ms
10,368 KB
testcase_08 AC 352 ms
10,240 KB
testcase_09 AC 864 ms
10,240 KB
testcase_10 AC 918 ms
10,368 KB
testcase_11 AC 1,019 ms
10,368 KB
testcase_12 AC 365 ms
10,240 KB
testcase_13 AC 1,058 ms
10,368 KB
testcase_14 AC 211 ms
10,112 KB
testcase_15 AC 1,016 ms
10,368 KB
testcase_16 AC 27 ms
9,984 KB
testcase_17 AC 464 ms
10,240 KB
testcase_18 AC 101 ms
10,112 KB
testcase_19 AC 1,232 ms
10,368 KB
testcase_20 AC 99 ms
10,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def zeta2(a):
  q=0
  for i in range(1,100):
    q+=1/pow(i,a)
  return q
N=int(input())
print(zeta2(N))
0