結果
問題 |
No.1235 ζ関数
|
ユーザー |
|
提出日時 | 2023-09-21 16:40:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 287 bytes |
コンパイル時間 | 245 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-07 10:22:27 |
合計ジャッジ時間 | 1,731 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 WA * 3 |
ソースコード
def Riemann_zeta_function(N): result = 0.0 num = 1 flag = True while flag: result += 1/pow(num,N) if abs(result- int(result)) <= 10**(-10): flag = False return result N = int(input()) print(Riemann_zeta_function(N))