#include using namespace std; #define rep(i,n) for(ll i=0;i=0;i--) #define perl(i,r,l) for(ll i=r-1;i>=l;i--) #define fi first #define se second #define pb push_back #define ins insert #define pqueue(x) priority_queue,greater> #define all(x) (x).begin(),(x).end() #define CST(x) cout<; using vvl=vector>; using pl=pair; using vpl=vector; using vvpl=vector; ll MOD=1000000007; ll MOD9=998244353; int inf=1e9+10; ll INF=4e18; ll dy[8]={1,0,-1,0,1,1,-1,-1}; ll dx[8]={0,1,0,-1,1,-1,1,-1}; template inline bool chmax(T &a, T b) { return ((a < b) ? (a = b, true) : (false)); } template inline bool chmin(T &a, T b) { return ((a > b) ? (a = b, true) : (false)); } using ld=long double; struct sushi{ ld x,y,r,v,a; }; struct point{ ld x,y; }; ld w; const ld pi=3.1415926535; ld dist(point a,point b){ ld len=(a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y); return sqrt(len); } pair calc(sushi s,point p,ld time){//pとsの出会う最小の時間とその座標 ld ng=0,ok=inf; ll loop=100; point ret; while(loop--){ ld mid=(ok+ng)/2; ld now=time+mid; ret.x=s.x+s.r*cos((s.v*now+s.a)*pi/180); ret.y=s.y+s.r*sin((s.v*now+s.a)*pi/180); ld need=dist(ret,p)/w; if(need<=mid)ok=mid; else ng=mid; } return {time+ok,ret}; } int main(){ ll n;cin >> n >>w; vector s(n); rep(i,n){ cin >> s[i].x >> s[i].y >> s[i].r >> s[i].v >> s[i].a; } point start;start.x=0,start.y=0; /*rep(i,3){ auto ans=calc(s[i],start,0); cout << ans.se.x <<" " << ans.se.y <>> dp(1<>(n)); rep(bit,1<j auto to=calc(s[j],dp[bit][i].se,dp[bit][i].fi); if(dp[bit|(1<to.fi){ dp[bit|(1<