//poj 1299
//sep9
#include <iostream>
using namespace std;
const double pi=3.14159;
char s[32];
int main()
{
while(scanf("%s",s)==1&&strcmp(s,"ENDOFINPUT")!=0){
double x,y,z;
scanf("%lf%lf%lf",&x,&y,&z);
scanf("%*s");
z=min(z,360-z);
double d=z/90*pi*x;
if(d/5<=y)
printf("YES %d\n",int(y-d/5));
else
printf("NO %d\n",int(y*5));
}
return 0;
}
poj 1299 Polar Explorer 水题
最新推荐文章于 2021-04-26 22:41:22 发布