Tawla
Time limit3sMemory limit256 MB
For each pair of dice rolls, print the combined nickname with the larger value first, using special names for doubles and for 5 and 6.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
Sanggeun and Changyoung play a dice game. Each die is a cube numbered 1 to 6, and every face has a nickname.
- 1: Yakk
- 2: Doh
- 3: Seh
- 4: Ghar
- 5: Bang
- 6: Sheesh
Each player rolls one die. If the two numbers differ, the players call the nickname of the larger number first and the nickname of the smaller number second. Rolling 1 and 2 gives "Doh Yakk", rolling 3 and 5 gives "Bang Seh", and rolling 6 and 4 gives "Sheesh Ghar".
If the two numbers are equal, the players use these names instead.
- 1 and 1: Habb Yakk
- 2 and 2: Dobara
- 3 and 3: Dousa
- 4 and 4: Dorgy
- 5 and 5: Dabash
- 6 and 6: Dosh
The pair 5 and 6 is the one exception. "Sheesh Bang" sounds bad, so the players call it "Sheesh Beesh".
Given the two numbers, print the call that Sanggeun and Changyoung shout.
Input
The first line has the number of tests . ()
Each of the next lines has two numbers and separated by a space. ()
Output
For each test, print one line with Case n: followed by the call. is the test number, starting at 1.