HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50620 - Poker

Guest
• Discussion of problem (1)

Section problems

• 50608 - Gangsters
• 50610 - Feasibility
• 50612 - Fun game
• 50614 - Numbers game
• 50615 - Moneybox
• 50617 - KBH
• 50618 - Code Correction
• 50619 - The Mars Rover
• 50620 - Poker
• 50621 - Postal Figures
• 50622 - Sequence
• 50623 - Rectangles
• 50624 - Simple problem
• 50625 - Permutations
• 50626 - The route
• 50627 - Area of a polygon
• 50628 - Matrix

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