結果

問題 No.227 簡単ポーカー
ユーザー どまおー
提出日時 2018-05-11 10:35:46
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 5,000 ms
コード長 371 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-06-28 03:55:58
合計ジャッジ時間 1,091 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

cs = map(int,input().split())
cd = {}
for c in cs:
    if c in cd: cd[c] += 1
    else: cd[c] = 1
cd = list(cd.values())
cd.sort(reverse=True)
if len(cd) == 5 or len(cd) == 1: print("NO HAND")
elif 3 in cd and 2 in cd: print("FULL HOUSE")
elif 3 in cd : print("THREE CARD")
elif cd[0] == cd[1]: print("TWO PAIR")
elif cd[0] == 2 : print("ONE PAIR")
else: print("NO HAND")
0