#include<iostream.h>
#include<string.h>
//using namespace std;
char start[100],end[100];
#define pi 3.14159;

 


int main()
{
    int amou,ang,rad;
    double dist;
    while(cin>>start && strcmp("ENDOFINPUT",start))
    {
        cin>>rad>>amou>>ang;
        if(ang>180)
            ang=360-ang;
        cin>>end;
        dist=2*rad*pi;
        dist*=2*double(ang)/360;
        if(dist>amou*5)
            cout<<"NO "<<amou*5<<endl;
        else
            cout<<"YES "<<int(amou*5-dist)/5<<endl;
        
    }
    return 0;
}

 

相关文章:

  • 2021-11-27
  • 2022-03-03
  • 2021-10-28
  • 2022-01-23
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
猜你喜欢
  • 2021-06-07
  • 2022-02-18
  • 2021-10-16
  • 2021-10-05
  • 2021-12-14
  • 2021-12-22
  • 2021-10-16
相关资源
相似解决方案