Submission
Status:
Compilation Error
Subtask/Task Score:
Score: 0
User: Karatat007
Problemset: Tired To Walk
Language: cpp
Time: 0.000 second
Submitted On: 2026-10-07 14:21:35
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
long double scale,speed,y1,x1,y2,x2,time;
cin >> scale >> speed >> y1 >> x1 >> y2 >> x2;
time = scale * sqrt((x1+x2)*(x1+x2)+(y1+y2)*(y1+y2)) / (speed * 18.0L / 5.0L);
int h,min;
h = time/60;
min = time%60;
cout << h << ' ' << "hr" << ' ' << min << ' ' << "min";
}