結果
問題 |
No.1273 はじめのζ関数
|
ユーザー |
![]() |
提出日時 | 2020-10-31 03:05:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 256 bytes |
コンパイル時間 | 377 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-22 04:27:45 |
合計ジャッジ時間 | 3,298 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 1 WA * 39 |
ソースコード
def f(n): t = [] for i in range(2, 10 ** 3): x = i ** n if x > 1000000000: break t.append(1000000 / x) return sum(t) x = int(input()) result = 1000000 for i in range(2, x): result -= f(i) print(result)