Submission
Status:
P---P-----
Subtask/Task Score:
20/100
Score: 20
User: un8qe_x3
Problemset: Tired To Walk
Language: cpp
Time: 0.003 second
Submitted On: 2025-10-20 21:52:40
#include<bits/stdc++.h>
#define ll long long
#define ld long double
#define For(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
ld scale, speed;cin >> scale >> speed;
ld y1,x1,y2,x2;cin >> y1 >> x1 >> y2 >> x2;
ld time = (scale*sqrt((pow(x1+x2,2)+pow(y1+y2,2))))*60.0/(speed*3.6);
ld hr = round(time);
ld min = round((time-hr)*60);
cout << hr << " hr " << min << " min";
}