- محدودیت زمان: ۱ ثانیه
- محدودیت حافظه: ۲۵۶ مگابایت
In 16th century Naples, a Galette flatbread was referred to as a pizza. Known as the dish for poor people, it was sold in the street and was not considered a kitchen recipe for a long time. This was later replaced by oil, tomatoes (after Europeans came into contact with the Americas) or fish. An often recounted story holds that on 11 June 1889, to honour the Queen consort of Italy, Margherita of Savoy, the Neapolitan pizza-maker Raffaele Esposito created the "Pizza Margherita", a pizza garnished with tomatoes, mozzarella, and basil, to represent the national colours of Italy as on the Italian flag.
Ehsan and Yasaman usually eat very much and can eat a whole small pizza each in normal occasions. They only have one rule which is that they “never share Pizza” with anyone. Now imagine how hungry they are after a five hours ACM contest. After a five hour contest they need to eat as quickly as possible, so they usually decide to order one giant pizza instead of several small ones and forget about their “never share Pizza” rule. They wonder whether it is possible to put the big rectangular pizza on the surface of the round table such that it does not overhang the border of the table. Since they are so hungry and knocked out, your job is to write a program that helps them!
ورودی
The first line of input shows the number of test cases $T$.
$$1 \leq T \leq 100$$
Each of following $T$ lines contains three space separated integers $r, w, l$ indicating radius of table, width and length of the pizza.
$$ 1 \leq r, w, l \leq 1000 $$
خروجی
For each test case you should print a line indicating whether the pizza overhangs the table or not. If the pizza overhangs the border of the table, you should print Pizza does not fit on the table.
, otherwise print Pizza fits on the table.
.
مثالها
ورودی نمونه ۱
3
38 40 60
35 30 70
50 60 80
خروجی نمونه ۱
Pizza fits on the table.
Pizza does not fit on the table.
Pizza fits on the table.
ارسال پاسخ برای این سؤال