結果

問題 No.227 簡単ポーカー
ユーザー tookunn_1213
提出日時 2015-08-14 19:18:00
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 5,000 ms
コード長 476 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-07-18 09:29:22
合計ジャッジ時間 717 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

A = map(int,raw_input().split())
li = [0 for i in range(14)]
setA = set(A)
for a in A:
	li[a] += 1
ans = 'NO HAND'
if len(setA) == 2 and ((li[list(setA)[0]] >= 2 and li[list(setA)[1]] >= 3) or (li[list(setA)[0]] >= 3 and li[list(setA)[1]] >= 2)):
	ans = 'FULL HOUSE'
elif len(setA) == 3 and (li[list(setA)[0]] >= 3 or li[list(setA)[1]] >= 3 or li[list(setA)[2]] >= 3):
	ans = 'THREE CARD'
elif len(setA) == 3:
	ans = 'TWO PAIR'
elif len(setA) == 4:
	ans = 'ONE PAIR'
print ans
0