結果
問題 | No.1273 はじめのζ関数 |
ユーザー |
![]() |
提出日時 | 2020-10-31 01:45:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 172 ms / 2,000 ms |
コード長 | 311 bytes |
コンパイル時間 | 167 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-22 04:17:43 |
合計ジャッジ時間 | 8,177 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 40 |
ソースコード
x=int(input()) def zeta(x): Z=0 for i in range(2,10000000): Z+=i**(-x) if i**(-x)<10**(-17): break return Z if x==2: print(10**6) elif x==3: print(355065) else: ANS=0.3550659331517736 for i in range(3,x): ANS-=zeta(i) print(int(ANS*(10**6)))