1. 程式人生 > >Timus 1644. A Whole Lot of Walnuts 演算法

Timus 1644. A Whole Lot of Walnuts 演算法

The first line of the input contains an integern— the number of experiments conducted by the parrot<nobr>(0 ≤<em>n</em>≤ 100)</nobr>. The followingnlines contain descriptions of these experiments. A description of an experiment consists of a number of walnuts eaten by the parrot (an integer from 3 to 9) and an outcome: “satisfied” in case this number was enough to get the parrot satisfied or “hungry” otherwise. It is known as a fact, that ten walnuts is always enough and two walnuts are always not enough.