Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: JRomsponCH

Problemset: Tired To Walk

Language: cpp

Time: 0.002 second

Submitted On: 2025-09-28 18:11:58

#include<iostream>
#include<cmath>
using namespace std;

int main() {
    int scale, speed, y1, x1, y2, x2;
    cin>>scale>>speed>>y1>>x1>>y2>>x2;
    float distance = scale*sqrt((x1 + x2)*(x1 + x2) + (y1 + y2)*(y1 + y2));
    int time = ceil((distance/(speed*(18.00/5)))*60);
    int hour = time / 60;
    int minute = time % 60;
    cout<<hour<<" hr "<<minute<<" min";
}