HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


50620 - Poker

Guest
• Discussion of problem (1)

Section problems

• 50952 - Print All Numbers from N d...
• 50900 - Put the Numbers in Descend...
• 50884 - Area and Perimeter Of The ...
• 50899 - How Many Years
• 50610 - Feasibility
• 50612 - Fun game
• 50617 - KBH
• 50618 - Code Correction
• 50620 - Poker
• 50621 - Postal Figures
• 50630 - Radio Station
• 50631 - Robots
• 50251 - Symmetric matrix
• 50244 - Chessboard Pattern
• 50428 - Three Times
• 50879 - Passed or Failed
• 50387 - Passengers in the Train

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