結果
問題 |
No.1235 ζ関数
|
ユーザー |
![]() |
提出日時 | 2020-10-25 09:56:22 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 1,846 ms / 2,000 ms |
コード長 | 271 bytes |
コンパイル時間 | 371 ms |
コンパイル使用メモリ | 81,920 KB |
実行使用メモリ | 90,496 KB |
最終ジャッジ日時 | 2025-06-20 10:46:13 |
合計ジャッジ時間 | 48,916 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
import sys, time s = time.time() sys.setrecursionlimit(2147483647) input = lambda:sys.stdin.readline().rstrip() def resolve(): n = int(input()) ans = 0 i = 1 while time.time() - s < 1.8: ans += 1 / pow(i, n) i += 1 print(ans) resolve()