結果

問題 No.1273 はじめのζ関数
ユーザー rlangevinrlangevin
提出日時 2023-03-26 23:02:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,503 ms / 2,000 ms
コード長 197 bytes
コンパイル時間 794 ms
コンパイル使用メモリ 81,844 KB
実行使用メモリ 75,436 KB
最終ジャッジ日時 2023-10-19 13:55:55
合計ジャッジ時間 27,344 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,499 ms
75,348 KB
testcase_01 AC 1,435 ms
75,252 KB
testcase_02 AC 1,170 ms
75,268 KB
testcase_03 AC 142 ms
75,240 KB
testcase_04 AC 1,388 ms
75,260 KB
testcase_05 AC 1,491 ms
75,436 KB
testcase_06 AC 438 ms
75,224 KB
testcase_07 AC 1,415 ms
75,348 KB
testcase_08 AC 62 ms
75,184 KB
testcase_09 AC 947 ms
75,260 KB
testcase_10 AC 78 ms
75,216 KB
testcase_11 AC 1,483 ms
75,360 KB
testcase_12 AC 1,451 ms
75,312 KB
testcase_13 AC 36 ms
53,524 KB
testcase_14 AC 1,367 ms
75,252 KB
testcase_15 AC 1,314 ms
75,252 KB
testcase_16 AC 1,343 ms
75,248 KB
testcase_17 AC 1,393 ms
75,264 KB
testcase_18 AC 1,179 ms
75,264 KB
testcase_19 AC 1,154 ms
75,248 KB
testcase_20 AC 38 ms
53,524 KB
testcase_21 AC 36 ms
53,524 KB
testcase_22 AC 37 ms
53,524 KB
testcase_23 AC 37 ms
53,524 KB
testcase_24 AC 35 ms
53,524 KB
testcase_25 AC 38 ms
53,524 KB
testcase_26 AC 36 ms
53,524 KB
testcase_27 AC 38 ms
53,524 KB
testcase_28 AC 36 ms
53,524 KB
testcase_29 AC 38 ms
53,524 KB
testcase_30 AC 38 ms
53,524 KB
testcase_31 AC 37 ms
53,524 KB
testcase_32 AC 40 ms
53,524 KB
testcase_33 AC 38 ms
53,524 KB
testcase_34 AC 36 ms
53,524 KB
testcase_35 AC 37 ms
53,524 KB
testcase_36 AC 40 ms
53,524 KB
testcase_37 AC 38 ms
53,524 KB
testcase_38 AC 37 ms
53,524 KB
testcase_39 AC 37 ms
53,524 KB
testcase_40 AC 1,503 ms
75,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import pi

x = int(input())
ans = 0
v = 10 ** 6
if x == 2:
    print(v)
    exit()
for i in range(max(3, x), 100):
    for j in range(2, 10000):
        ans += v/pow(j, i)
print(int(ans))
0