Logo
(追記) (追記ここまで)

32321번 - Magnetic Attractions 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 1024 MB15141392.857%

문제

You have a new job. You are working with magnets. You have a metal bearing that will lie on a 2D plane. You have two magnets: one weak and one strong. You know that the force exerted upon an object by a magnet is inversely proportional to the square of the distance between the two objects, but linearly proportional to the strength of the magnet. The formula is:

force = strength / distance2

Given the locations of two magnets in the 2D plane and the strength of each magnet, determine the area of the region in which a metal ball bearing can be placed in the grid, such that the force of the weaker magnet upon the bearing is more than the force of the stronger magnet, i.e., the bearing is more attracted to the weaker magnet than the stronger magnet.

입력

The first input line contains three integers: s, x, y (1 ≤ s, x, y ≤ 300), representing the strength, x and y coordinate of the weaker magnet. The second input line contains three integers: S, X, Y (1 ≤ S, X, Y ≤ 300), providing the information for the stronger magnet following the same format as the first input line. You are guaranteed that s < S and that the two magnets will not be in the same location.

출력

Print a single number representing the area of the region in which a bearing could be placed such that the force between the bearing and the weak magnet is more than the force between the bearing and the strong magnet. Any answer within an absolute or relative error of 10-6 will be accepted.

Assume that the region is convex and bounded. Note that the region should not include the area where the forces between the bearing and the two magnets are equal.

제한

예제 입력 1

3 10 7
6 9 8

예제 출력 1

12.566371

예제 입력 2

5 5 5
6 6 6

예제 출력 2

188.49556

힌트

출처

University > University of Central Florida > 2024 Local Programming Contest (Final Round) 8번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /