Submission

Status:

----------

Subtask/Task Score:

0/100

Score: 0

User: JRomsponCH

Problemset: ASCII

Language: cpp

Time: 0.003 second

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

#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";
}