포럼
문제 ICPC00282

J. Joint Jog Jam

스페셜 저지 — 출력을 사용자 정의 프로그램으로 검사하므로 여러 정답이 인정될 수 있습니다.
설명

Like so many good stories, this one begins with a claim that Kari is a faster runner than Ola, who of course challenges Kari to a run-down.

Dubbed (rather ironically) Non-Competitive Pace Challenge,

they want to see who can run the furthest in a certain amount of time \(t\). Clearly they both choose to run in straight lines with constant speed.

Kari wrote an app to make sure that Ola does not cheat, but the app requires that their phones constantly communicate over Bluetooth.

After their run, Kari needs to ensure that they were never too far apart from each other at any time during the run. Write a program that computes the maximum distance between Kari and Ola at any point during the run.

제약
입력 형식

The input consists of a single line containing eight integers describing four points:
- the starting position of Kari,
- the starting position of Ola,
- the ending position of Kari, and
- the ending position of Ola,

in that order. Each point is given by two integers \(x\) and \(y\) (\(0 \le x, y \le 10^4\)), the coordinates of the point.

출력 형식

Output the maximum distance between Kari and Ola during their run, with an absolute or relative error of at most \(10^{-6}\).

예제 1
입력
0 0 0 0 1 1 2 2
출력
1.4142135624
예제 2
입력
0 0 0 1 0 2 2 1
출력
2.2360679775
예제 3
입력
5 0 10 0 5 0 10 0
출력
5
문제 정보

생성자가 기록되지 않았습니다.

출처 ICPC NCPC 2021

평가 및 의견

J. Joint Jog Jam

개요
출제자 난이도 Unrated 레이팅 미적용 의견 0 / 1 공개 집계 (커뮤니티 난이도, 주요 주제, 품질)는 의견이 충분히 모이면 공개됩니다.

Log in to rate problems.

개별 의견

아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.

풀이 제출

J. Joint Jog Jam

게스트로 둘러보고 있습니다. 로그인하면 풀이를 제출하고 진행 상황을 확인할 수 있습니다. 로그인하고 제출하기
공개
C++20 Tab 들여쓰기 · Ctrl+/ 주석 토글 · Enter 자동 들여쓰기
1 1 1 0 공백: 4 · UTF-8