結果
| 問題 |
No.1539 不可欠な部分
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-04 15:51:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 453 bytes |
| コンパイル時間 | 220 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 22,016 KB |
| 最終ジャッジ日時 | 2024-11-18 21:33:47 |
| 合計ジャッジ時間 | 53,285 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 TLE * 15 |
ソースコード
# 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())))