結果

問題 No.1273 はじめのζ関数
ユーザー ygd.ygd.
提出日時 2020-10-30 22:57:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 235 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 559 ms
コンパイル使用メモリ 10,508 KB
実行使用メモリ 45,260 KB
最終ジャッジ日時 2023-09-29 08:01:34
合計ジャッジ時間 12,973 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 225 ms
44,992 KB
testcase_01 AC 226 ms
45,100 KB
testcase_02 AC 224 ms
45,072 KB
testcase_03 AC 224 ms
45,056 KB
testcase_04 AC 229 ms
45,040 KB
testcase_05 AC 229 ms
45,208 KB
testcase_06 AC 227 ms
45,172 KB
testcase_07 AC 224 ms
45,060 KB
testcase_08 AC 224 ms
45,260 KB
testcase_09 AC 227 ms
45,068 KB
testcase_10 AC 223 ms
45,044 KB
testcase_11 AC 225 ms
45,044 KB
testcase_12 AC 223 ms
44,984 KB
testcase_13 AC 225 ms
44,844 KB
testcase_14 AC 230 ms
45,072 KB
testcase_15 AC 222 ms
45,104 KB
testcase_16 AC 228 ms
45,080 KB
testcase_17 AC 225 ms
45,044 KB
testcase_18 AC 223 ms
45,112 KB
testcase_19 AC 235 ms
45,100 KB
testcase_20 AC 226 ms
45,040 KB
testcase_21 AC 226 ms
44,980 KB
testcase_22 AC 226 ms
44,976 KB
testcase_23 AC 225 ms
44,820 KB
testcase_24 AC 229 ms
44,928 KB
testcase_25 AC 226 ms
44,992 KB
testcase_26 AC 220 ms
45,044 KB
testcase_27 AC 217 ms
45,060 KB
testcase_28 AC 226 ms
44,920 KB
testcase_29 AC 220 ms
44,872 KB
testcase_30 AC 221 ms
44,956 KB
testcase_31 AC 223 ms
44,928 KB
testcase_32 AC 217 ms
45,076 KB
testcase_33 AC 224 ms
45,096 KB
testcase_34 AC 224 ms
44,872 KB
testcase_35 AC 224 ms
44,952 KB
testcase_36 AC 221 ms
45,032 KB
testcase_37 AC 222 ms
44,864 KB
testcase_38 AC 220 ms
45,144 KB
testcase_39 AC 220 ms
45,072 KB
testcase_40 AC 225 ms
45,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from scipy.special import zeta
x=int(input())
if x == 2:
  print(pow(10,6));exit()
MAX = pow(10,2)
ans = 0
for n in range(x,MAX):
  temp = zeta(n)*pow(10,6) - pow(10,6)
  #temp *= pow(10,6)
  ans += temp
  #print(temp)
#print(ans)
ans = int(ans)
print(ans)
0