結果
問題 |
No.2976 高階多点評価
|
ユーザー |
👑 |
提出日時 | 2024-11-29 10:36:47 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 464 ms / 1,000 ms |
コード長 | 286 bytes |
コンパイル時間 | 228 ms |
コンパイル使用メモリ | 82,716 KB |
実行使用メモリ | 78,080 KB |
最終ジャッジ日時 | 2024-11-29 10:37:11 |
合計ジャッジ時間 | 22,517 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 38 |
ソースコード
#入力形式チェック import math as m I=input for t in [0]*int(I()): N,X=I().split() if len(X)==7: assert(X[:2]=="0.") else: assert(len(X)==8) assert(X[:3]=="-0.") assert("00000"<=X[-5:]<="99999") X=float(X) c=m.acos(-X/m.sqrt(X*X+1)) print(m.sin(int(N)*c+c)/m.sin(c))