結果

問題 No.227 簡単ポーカー
コンテスト
ユーザー tookunn_1213
提出日時 2015-08-14 19:18:00
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 87 ms / 5,000 ms
コード長 476 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 147 ms
コンパイル使用メモリ 77,480 KB
最終ジャッジ日時 2025-12-03 16:12:08
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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