Three card poker
Al Three Card Poker es poden fer les següents figures:
- Straight flush: 3 cartes amb números consecutius del mateix pal
- Three of a kind: 3 cartes del mateix número
- Straight: 3 cartes amb números consecutius
- Flush: 3 cartes del mateix pal
- Pair: 2 cartes del mateix número
- High number: cap de les anteriors
En la nostra versió del joc, jugarem només amb els números, no amb els pals. Així, les figures possibles seran:
- Three of a kind
- Straight
- Pair
- High number
Input Format
L'entrada consta de 3 números enters corresponents als números de les cartes.
Constraints
No hi ha
Output Format
S'imprimirà la figura de més valor.
{ THREE OF A KIND
| PAIR
| STRAIGHT
| HIGH CARD
}
Test Case 1
Input
1 1 1
Output
THREE OF A KIND
Test Case 2
Input
1 1 2
Output
PAIR
Test Case 3
Input
1 1 3
Output
PAIR
Test Case 4
Hidden: this is a private test case!
Test Case 5
Hidden: this is a private test case!
Test Case 6
Hidden: this is a private test case!
Test Case 7
Input
1 2 3
Output
STRAIGHT
Test Case 8
Hidden: this is a private test case!
Test Case 9
Hidden: this is a private test case!
Test Case 10
Hidden: this is a private test case!
Test Case 11
Input
1 3 3
Output
PAIR
Test Case 12
Hidden: this is a private test case!
Test Case 13
Hidden: this is a private test case!
Test Case 14
Hidden: this is a private test case!
Test Case 15
Input
1 4 3
Output
HIGH CARD
Test Case 16
Hidden: this is a private test case!
Test Case 17
Hidden: this is a private test case!
Test Case 18
Hidden: this is a private test case!
Test Case 19
Input
2 1 3
Output
STRAIGHT
Test Case 20
Hidden: this is a private test case!
Test Case 21
Hidden: this is a private test case!
Test Case 22
Hidden: this is a private test case!
Test Case 23
Input
2 2 3
Output
PAIR
Test Case 24
Hidden: this is a private test case!
Test Case 25
Hidden: this is a private test case!
Test Case 26
Hidden: this is a private test case!
Test Case 27
Input
2 3 3
Output
PAIR
Test Case 28
Hidden: this is a private test case!
Test Case 29
Hidden: this is a private test case!
Test Case 30
Hidden: this is a private test case!
Test Case 31
Input
2 4 3
Output
STRAIGHT
Test Case 32
Hidden: this is a private test case!
Test Case 33
Hidden: this is a private test case!
Test Case 34
Hidden: this is a private test case!
Test Case 35
Input
3 1 3
Output
PAIR
Test Case 36
Hidden: this is a private test case!
Test Case 37
Hidden: this is a private test case!
Test Case 38
Hidden: this is a private test case!
Test Case 39
Input
3 2 3
Output
PAIR
Test Case 40
Hidden: this is a private test case!
Test Case 41
Hidden: this is a private test case!
Test Case 42
Hidden: this is a private test case!
Test Case 43
Input
3 3 3
Output
THREE OF A KIND
Test Case 44
Hidden: this is a private test case!
Test Case 45
Hidden: this is a private test case!
Test Case 46
Hidden: this is a private test case!
Test Case 47
Input
3 4 3
Output
PAIR
Test Case 48
Hidden: this is a private test case!
Test Case 49
Hidden: this is a private test case!
Test Case 50
Hidden: this is a private test case!
Test Case 51
Input
4 1 3
Output
HIGH CARD
Test Case 52
Hidden: this is a private test case!
Test Case 53
Hidden: this is a private test case!
Test Case 54
Hidden: this is a private test case!
Test Case 55
Input
4 2 3
Output
STRAIGHT
Test Case 56
Hidden: this is a private test case!
Test Case 57
Hidden: this is a private test case!
Test Case 58
Hidden: this is a private test case!
Test Case 59
Input
4 3 3
Output
PAIR
Test Case 60
Hidden: this is a private test case!
Test Case 61
Hidden: this is a private test case!
Test Case 62
Hidden: this is a private test case!
Test Case 63
Input
4 4 3
Output
PAIR
Test Case 64
Hidden: this is a private test case!
CC BY-NC-SA 4.0