len = W/tan(e*M_PI/180);
while (len+dist<L)
{
dist += len;
A += W/sin(e*M_PI/180);
len = W/tan(e*M_PI/180);
j++;
}
A += (L-dist)/cos(e*M_PI/180);
lastw = (L-dist)*tan(e*M_PI/180);
if (j%2==1)
B = sqrt((W-lastw)*(W-lastw)+L*L);
else
B = sqrt(lastw*lastw+L*L);
p11326題目連結
回ACM題庫目錄
回首頁
沒有留言:
張貼留言