結果
| 問題 |
No.2976 高階多点評価
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-06 14:45:34 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 561 ms / 1,000 ms |
| コード長 | 213 bytes |
| コンパイル時間 | 249 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 78,700 KB |
| 最終ジャッジ日時 | 2024-11-28 21:36:35 |
| 合計ジャッジ時間 | 22,195 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)