結果
問題 |
No.2976 高階多点評価
|
ユーザー |
|
提出日時 | 2024-02-05 18:26:01 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 213 bytes |
コンパイル時間 | 286 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-28 21:36:13 |
合計ジャッジ時間 | 29,391 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 37 TLE * 1 |
ソースコード
T = int(input()) for _ in range(T): n, x = input().split() n = int(n) x = float(x) res = ((x - 1j)**(-n-1) - (x + 1j)**(-n-1)) * (-1)**n / 2j res *= (x**2 + 1)**(n/2 + 1) print(res.real)