Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Cmoss9
Problemset: Tired To Walk
Language: cpp
Time: 0.004 second
Submitted On: 2026-01-04 00:29:29
#include <bits/stdc++.h>
using namespace std;
int main () {
ios_base::sync_with_stdio(0); cin.tie(0);
int scale, speed, y1,x1,y2,x2;
cin >> scale >> speed >> y1 >> x1 >> y2 >> x2;
double distance = scale * sqrt(pow(x1+x2,2) + pow(y1+y2,2));
double time = distance / (speed * 18.0/5.0);
int count = 0;
while (time >= 1.0) {
count++;
time = time - 1.0;
}
cout << count << ' ' << "hr" << ' ';
cout << ceil(time*60) << ' ' << "min";
}