HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Fyodor Menshikov. Training > problem:


01F. 50620 - Poker

Guest
• Discussion of problem (1)

Volume problems

• 01A. 50650 - Prime numbers
• 01B. 50600 - Expression
• 01C. 50601 - Increasing sequence
• 01D. 50660 - Triangle and the point
• 01E. 50661 - nth Power of a Digit
• 01F. 50620 - Poker
• 02A. 50662 - Prime numbers (2)
• 02B. 50625 - Permutations
• 02C. 50626 - The route
• 02D. 50667 - Intersecting Line Seg...
• 02E. 50607 - Long sum
• 02F. 50647 - Spiral
• 03A. 50633 - The prime factors
• 03B. 50720 - Permutations (2)

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Автор: Фёдор Меньшиков, ВГПУ.

There are given 5 are integers. Among them:
If there are 5 same integers, then print "Impossible",
otherwise if there are 4 same integer, then print "Four of a Kind",
otherwise if there are 3 by 2, then print "Full House",
otherwise if the integers are consecutive (sorting not important), then print "Straight",
otherwise if there are 3 same integers, print "Three of a Kind",
otherwise if there are 2 by 2 by 1, then output "Two Pairs",
otherwise if there are 2 same integers, then output "One Pair",
otherwise print "Nothing".

Input:
The first line contains five numbers separated by a space.

Output:
Displayed one line - the result of analysis.
Restrictions:
All the numbers from 1 to 13 inclusive.
Input 1 Input 2 Input 3 Input 4 Input 5
1 3 9 3 2
1 5 5 4 4
1 5 2 4 3
10 11 12 13 1
2 2 2 5 5
Output 1 Output 2 Output 3 Output 4 Output 5
One Pair
Two Pairs
Straight
Nothing
Full House

Для отправки решений необходимо выполнить вход.

www.contester.ru