Pizza
InterviewTime limit1sMemory limit1024 MB
Given a slice's area and price and a round pizza's radius and price, print which option gives more pizza per dollar for each dataset.
- Level
Easy1 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
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?
Input
The first line of input contains a single integer n, the number of datasets. Each dataset has two lines. The first line contains two space-separated integers A1 and P1. The second line contains two space-separated integers R1 and P2. All values are positive integers at most . The two options are guaranteed not to give the same amount of pizza per dollar.
Output
For each dataset, print one line containing either "Whole pizza" or "Slice of pizza", depending on which is the better deal.