Cucumber Conundrum

아직 제출이 없습니다시간 제한2초메모리 제한512 MB

문제

Maj loves pickled cucumber (also known as pickles). However, her partner is not as keen on filling a sandwich with pickles. Maj would like to maximize the amount of pickles on a sandwich, while still avoiding being judged by her partner.

Both Maj's sandwich and the pickles have a circular shape. The sandwich has radius ss cm and the pickles have radius rr cm.

Maj has exactly nn pickles. She wants to place as many of them as possible on her sandwich, as long as:

  • at most zz \\% of the area of the sandwich is covered by pickles.
  • no two pickles overlap (but they are allowed to touch).

How many pickles can Maj place on her sandwich?

입력

The input consists of:

  • one line with the decimal numbers ss and rr (1s101 \le s \le 10, 0.5rs0.5 \le r \le s, at most 66 digits after the decimal point), the radius of the sandwich and the radius of a pickle, in centimetres.
  • one line with the integers nn and zz (1n71 \le n \le 7, 0z1000 \le z \le 100), the number of pickles Maj have, and the maximum area she may cover with them, in percent.

출력

Output the maximum number of pickles Maj can place on her sandwich. The input will always be constructed such that this number does not change if the radius of the sandwich increases or decreases by 10610^{-6}.