Solution :
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Author : Shohanur Rahaman | |
/// URI OJ | |
/// Problem No : 1247 | |
/// Problem Name : Coast Guard | |
/// Level : 2 | |
#include<stdio.h> | |
#include<math.h> | |
int main() | |
{ | |
int D,VF,VG,TW=12; | |
double TF,TG,X; | |
while(scanf("%d %d %d",&D,&VF,&VG)==3){ | |
X= (double )sqrt((TW*TW+(D*D))); | |
TF= (double)TW/VF; | |
TG=(double) (X/VG); | |
if(TG>TF) | |
printf("N\n"); | |
else | |
printf("S\n"); | |
} | |
return 0; | |
} |