結果
問題 | No.1273 はじめのζ関数 |
ユーザー |
![]() |
提出日時 | 2020-10-30 22:07:30 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 226 bytes |
コンパイル時間 | 182 ms |
コンパイル使用メモリ | 82,580 KB |
実行使用メモリ | 84,740 KB |
最終ジャッジ日時 | 2024-07-22 00:44:40 |
合計ジャッジ時間 | 16,834 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 1 |
other | AC * 20 WA * 1 TLE * 1 -- * 18 |
ソースコード
import sys input = sys.stdin.readline def zeta(n): res = 0 for i in range(1, 1000): res += 1/i**n return res*10**6 ans = 0 x = int(input()) for i in range(x, x+300): ans += zeta(i)-10**6 print(int(ans))