| “壹零杯”第三届西华师范大学程序设计竞赛 |
|---|
| Finished |
Alice is playing a card game called Bullfighting.
The game is played with a standard deck of cards, but only ranks A through 10 are kept. The point value of each card is defined as follows:
In each round, Alice is dealt $$$5$$$ cards. She must arrange these $$$5$$$ cards into two groups to determine her hand's power:
The rank of the hand is determined by the following rules:
The ranks are ordered as follows: $$$$$$ \text{No Bull} \lt \text{Bull } 1 \lt \text{Bull } 2 \lt \dots \lt \text{Bull } 9 \lt \text{Bull Bull} $$$$$$
Given 5 cards, please help Alice find the highest rank she can achieve by arranging them optimally.
The first line contains an integer $$$t$$$ ($$$1 \le t \le 100$$$), representing the number of test cases.
Each test case consists of a single line containing $$$5$$$ integers $$$c_1, c_2, c_3, c_4, c_5$$$ ($$$1 \le c_i \le 10$$$), representing the point values of the $$$5$$$ cards Alice holds.
It is guaranteed that the cards are drawn from a single standard deck, meaning that for any rank $$$k \in [1, 10]$$$, it appears at most $$$4$$$ times in a hand.
For each test case, output the highest rank Alice can obtain in a single line. The output must be one of the following strings:
31 2 3 4 510 10 10 5 51 2 3 4 8
Bull 5Bull BullNo Bull
For the first case (1 2 3 4 5):
For the second case (10 10 10 5 5):
| Name |
|---|


