結果
問題 | No.1273 はじめのζ関数 |
ユーザー |
![]() |
提出日時 | 2020-10-30 22:17:52 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 288 bytes |
コンパイル時間 | 231 ms |
コンパイル使用メモリ | 82,444 KB |
実行使用メモリ | 75,804 KB |
最終ジャッジ日時 | 2024-07-22 01:05:55 |
合計ジャッジ時間 | 3,522 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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**30: break res += 10**10/i**n return res ans = 0 x = int(input()) for i in range(x, x+300): ans += zeta(i) ans -= 300*10**10 print(int(ans//10**4))