結果
問題 |
No.1539 不可欠な部分
|
ユーザー |
|
提出日時 | 2022-09-04 15:51:44 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 960 ms / 2,000 ms |
コード長 | 453 bytes |
コンパイル時間 | 204 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 78,084 KB |
最終ジャッジ日時 | 2024-11-18 21:35:38 |
合計ジャッジ時間 | 31,142 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
# import pypyjit # pypyjit.set_param('max_unroll_recursion=-1') from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline x = 1/(math.e*math.pi*math.pi) def g(t,N): return math.exp(math.cos(t/N)) def f(N): S = g(0,N)+g(x,N) for i in range(1,64): S += g(x*i/64,N)*2 return x*S/128 for _ in range(int(input())): print(f(int(input())))