結果
問題 |
No.2976 高階多点評価
|
ユーザー |
|
提出日時 | 2024-11-28 21:46:23 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 558 ms / 1,000 ms |
コード長 | 212 bytes |
コンパイル時間 | 163 ms |
コンパイル使用メモリ | 82,584 KB |
実行使用メモリ | 79,088 KB |
最終ジャッジ日時 | 2024-11-28 21:46:46 |
合計ジャッジ時間 | 23,077 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 38 |
ソースコード
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)