시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 (추가 시간 없음) 512 MB 19 12 4 50.000%

문제

Write a function P3:

  • A point P on a surface of a cube C which has (0, 0, 0) and (100, 100, 100) as its vertex, with its planes parallel to the planes made by axes. 
  • input parameter: x, y, z which make a point P(x, y, z) be on the surface of C
    • Each of x, y, z is either an integer or a float.
  • return value: the minimum distance of (x, y, z) to (100, 100, 100) with these following restrictions:
    • You have to be on the surface of C.
    • You can move to different planes by passing the corner.
    • The answer must have an absolute or relative error less than 10−6.

제출할 수 있는 언어

PyPy3

채점 및 기타 정보

  • 예제는 채점하지 않는다.