Submission
Status:
P-PPP-P-PP
Subtask/Task Score:
70/100
Score: 70
User: wasupum
Problemset: Tired To Walk
Language: c
Time: 0.002 second
Submitted On: 2025-12-05 19:34:31
#include <stdio.h>
#include <math.h>
int main(void){
int scale,speed,y1,x1,y2,x2;
scanf("%d %d %d %d %d %d",&scale,&speed,&y1,&x1,&y2,&x2);
double dt = scale*sqrt(pow(x1+x2,2)+pow(y1+y2,2));
double time = dt/(speed*18/5);
int hr = (int)time;
int m = (int)ceil((time-hr)*60);
printf("%d hr %d min",hr,m);
return 0;
}