시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 1024 MB | 758 | 569 | 530 | 74.543% |
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.
3 8 4 7 9 9 2 4 7 841 108 8 606
Whole pizza Whole pizza Slice of pizza
High School > PLU High School Programming Contest > PLU 2019 > Novice 10번