Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: SayRo

Problemset: Tired To Walk

Language: cpp

Time: 0.002 second

Submitted On: 2026-10-04 11:21:05

#include<bits/stdc++.h>
using namespace std;

int main(){
    cin.tie(nullptr)->sync_with_stdio(0);
    int sc,sp,y1,x1,y2,x2;
    cin>>sc>>sp>>y1>>x1>>y2>>x2;
    float dist=sc*sqrt((pow((x1+x2),2)+pow((y1+y2),2)));
    float time=dist/(sp*(18.0/5));
    int hr=floor(time),mi=ceil((time-hr)*60);
    cout<<hr<<" hr "<<mi<<" min";
}