Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main(){
- int D,VF,VG;
- while(cin>>D){
- cin>>VF;
- cin>>VG;
- double v2 = (double)(D*D)+(double)(VF*VF);
- double val=sqrt(v2);
- double t1 = (double)12.0/VF;
- double t2 = (double)val/VG;
- if(t1>t2){
- cout<<"S"<<endl;
- }
- else{
- if(t2>=t1){
- cout<<"N"<<endl;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment