結果
問題 |
No.1273 はじめのζ関数
|
ユーザー |
![]() |
提出日時 | 2020-10-30 23:41:42 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 405 bytes |
コンパイル時間 | 206 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 16,384 KB |
最終ジャッジ日時 | 2024-07-22 03:18:47 |
合計ジャッジ時間 | 2,746 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 39 WA * 1 |
ソースコード
def f(n): for i in range(2, 131072 + 1): x = i ** n if x > 1000000000000: break t.append(1000000 / x) x = int(input()) t = [] for i in range(x, 32): f(i) print(int(sum(t))) #t.extend([0] * (32 * 131072 - len(t))) #t.sort() #x = 1 #while x < 32 * 131072: # for i in range(0, 32 * 131072, x * 2): # t[i] += t[i + x] # x *= 2 #print(int(t[0]))