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

26566번 - Pizza 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB15191173109977.286%

문제

There’s a pizza store which serves pizza in two sizes: either a pizza slice, with area A1 and price P1, or a circular pizza, with radius R1 and price P2. You want to maximize the amount of pizza you get per dollar. Should you pick the pizza slice or the whole pizza?

입력

The first line of input will contain a single integer n that indicates the number datasets to follow. Each dataset is comprised of two lines. The first line contains two space-separated integers A1 and P1. Similarly, the second line contains two space-separated integers R1 and P2. It is guaranteed that all values are positive integers at most 103. We furthermore guarantee that the two will not be worth the same amount of pizza per dollar.

출력

For each data set, print on a single line, either “Whole pizza” or “Slice of pizza” depending on which is the better deal.

제한

예제 입력 1

3
8 4
7 9
9 2
4 7
841 108
8 606

예제 출력 1

Whole pizza
Whole pizza
Slice of pizza

힌트

출처

School > PLU High School Programming Contest > PLU 2019 > Novice 10번

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

출처

대학교 대회

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

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