Mario and Transformation Problem Code: TRANSFORM | CodeChef Solution | Python3

Pubblicato il: 16 aprile 2022
sul canale di: Python Coder
2,057
10

Mario transforms each time he eats a mushroom as follows:

If he is currently small, he turns normal.
If he is currently normal, he turns huge.
If he is currently huge, he turns small.
Given that Mario was initially normal, find his size after eating X mushrooms.

Input Format
The first line of input will contain one integer T, the number of test cases. Then the test cases follow.
Each test case contains a single line of input, containing one integer X.
Output Format
For each test case, output in a single line Mario's size after eating X mushrooms.

Print:

NORMAL, if his final size is normal.
HUGE, if his final size is huge.
SMALL, if his final size is small.
You may print each character of the answer in either uppercase or lowercase (for example, the strings Huge, hUgE, huge and HUGE will all be treated as identical).

Constraints
1≤T≤100
1≤X≤100
Sample Input 1
3
2
4
12
Sample Output 1
SMALL
HUGE
NORMAL
Explanation
Test case 1: Mario's initial size is normal. On eating the first mushroom, he turns huge. On eating the second mushroom, he turns small.

Test case 2: Mario's initial size is normal. On eating the first mushroom, he turns huge. On eating the second mushroom, he turns small. On eating the third mushroom, he turns normal. On eating the fourth mushroom, he turns huge.


In questa pagina del sito puoi guardare il video online Mario and Transformation Problem Code: TRANSFORM | CodeChef Solution | Python3 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Python Coder 16 aprile 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,057 volte e gli è piaciuto 10 spettatori. Buona visione!