結果
問題 | No.1273 はじめのζ関数 |
ユーザー |
![]() |
提出日時 | 2020-10-30 22:16:59 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 279 bytes |
コンパイル時間 | 135 ms |
コンパイル使用メモリ | 82,132 KB |
実行使用メモリ | 64,636 KB |
最終ジャッジ日時 | 2024-07-22 01:04:14 |
合計ジャッジ時間 | 2,719 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 39 WA * 1 |
ソースコード
import sys input = sys.stdin.readline def zeta(n): res = 0 for i in range(1, 1000): if i**n > 10**20: break res += 10**6/i**n return res ans = 0 x = int(input()) for i in range(x, x+300): ans += zeta(i) ans -= 300*10**6 print(int(ans))