PrologでまったりPart 2
■ このスレッドは過去ログ倉庫に格納されています
0044デフォルトの名無しさん
NGNGThe Pizza-House chalkboard that lists various types of pizza with their ingredients and prices
was wiped out by the rain. You are asked to rewrite the board using the following information.
There are five types of pizza with completely different toppings and prices. Each type of pizza has two toppings:
one from the list of ham, mussels, prawns, salami, and tuna;
the other from the list of avocado, corn, olive, pineaplle, and tomato.
Five prices are $5.00, $6.50, $7.00, $8.50, and $10.00. Other clues are given below.
Hawaiian pizza has mussels and costs over $6.50. Marco-Polo has tomato, but no ham,
which is on the pizza that costs $8.50. Pepperoni costs $7.00 and Super-Supreme has no pineapple.
The price of the pizza that has tuna and corn is not $6.50, and the pizza that costs $5.00 has olive but no salami.
The price of the pizza that has pineapple is not $10.00. The last type of pizza is called Ninja pizza.
You need to determine which pizzas have what toppings and prices.
■ このスレッドは過去ログ倉庫に格納されています