結果
問題 | No.1273 はじめのζ関数 |
ユーザー | HAPPA |
提出日時 | 2020-10-30 21:48:21 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 437 bytes |
コンパイル時間 | 826 ms |
コンパイル使用メモリ | 86,916 KB |
実行使用メモリ | 84,128 KB |
最終ジャッジ日時 | 2023-09-29 05:48:27 |
合計ジャッジ時間 | 10,070 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 249 ms
81,044 KB |
testcase_01 | AC | 253 ms
76,708 KB |
testcase_02 | AC | 254 ms
76,756 KB |
testcase_03 | AC | 258 ms
76,384 KB |
testcase_04 | AC | 246 ms
76,672 KB |
testcase_05 | AC | 239 ms
76,468 KB |
testcase_06 | AC | 254 ms
76,560 KB |
testcase_07 | AC | 248 ms
76,772 KB |
testcase_08 | AC | 260 ms
76,460 KB |
testcase_09 | AC | 257 ms
76,520 KB |
testcase_10 | AC | 258 ms
76,628 KB |
testcase_11 | AC | 245 ms
76,824 KB |
testcase_12 | AC | 249 ms
76,696 KB |
testcase_13 | AC | 260 ms
76,548 KB |
testcase_14 | AC | 247 ms
76,756 KB |
testcase_15 | AC | 252 ms
76,848 KB |
testcase_16 | AC | 251 ms
76,768 KB |
testcase_17 | AC | 253 ms
76,848 KB |
testcase_18 | AC | 253 ms
76,656 KB |
testcase_19 | AC | 253 ms
76,672 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 | -- | - |
ソースコード
import sys from math import floor sys.setrecursionlimit(10 ** 7) input = sys.stdin.readline f_inf = float('inf') mod = 10 ** 9 + 7 def resolve(): def f(n, k): res = 0 for i in range(1, k): res += 1 / pow(i, n) return res x = int(input()) res = 0 for i in range(x, x + 100): res += f(i, 1000) - 1 print(floor(res * 10 ** 6)) if __name__ == '__main__': resolve()