結果

問題 No.1273 はじめのζ関数
ユーザー ygd.ygd.
提出日時 2020-10-30 22:57:22
言語 Python3
(3.10.1 + numpy 1.22.3 + scipy 1.8.0)
結果
AC  
実行時間 184 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 797 ms
使用メモリ 42,504 KB
最終ジャッジ日時 2023-02-21 15:35:22
合計ジャッジ時間 9,303 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 181 ms
41,968 KB
testcase_01 AC 181 ms
42,076 KB
testcase_02 AC 180 ms
42,144 KB
testcase_03 AC 182 ms
41,956 KB
testcase_04 AC 182 ms
42,068 KB
testcase_05 AC 181 ms
41,924 KB
testcase_06 AC 180 ms
41,928 KB
testcase_07 AC 181 ms
41,940 KB
testcase_08 AC 181 ms
41,900 KB
testcase_09 AC 182 ms
41,800 KB
testcase_10 AC 182 ms
41,812 KB
testcase_11 AC 183 ms
41,900 KB
testcase_12 AC 183 ms
41,908 KB
testcase_13 AC 183 ms
41,788 KB
testcase_14 AC 183 ms
41,908 KB
testcase_15 AC 183 ms
41,912 KB
testcase_16 AC 180 ms
42,504 KB
testcase_17 AC 183 ms
41,804 KB
testcase_18 AC 184 ms
41,960 KB
testcase_19 AC 182 ms
42,008 KB
testcase_20 AC 181 ms
41,820 KB
testcase_21 AC 181 ms
41,764 KB
testcase_22 AC 181 ms
41,884 KB
testcase_23 AC 181 ms
41,800 KB
testcase_24 AC 181 ms
41,832 KB
testcase_25 AC 184 ms
41,672 KB
testcase_26 AC 182 ms
41,876 KB
testcase_27 AC 182 ms
41,816 KB
testcase_28 AC 183 ms
41,888 KB
testcase_29 AC 182 ms
41,896 KB
testcase_30 AC 183 ms
42,168 KB
testcase_31 AC 181 ms
42,212 KB
testcase_32 AC 180 ms
41,836 KB
testcase_33 AC 181 ms
41,800 KB
testcase_34 AC 182 ms
41,824 KB
testcase_35 AC 183 ms
41,824 KB
testcase_36 AC 183 ms
41,824 KB
testcase_37 AC 182 ms
42,260 KB
testcase_38 AC 182 ms
41,776 KB
testcase_39 AC 183 ms
41,876 KB
testcase_40 AC 184 ms
41,808 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