結果

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

ソースコード

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: print("NO HAND")
elif 3 in cd and 2 in cd: print("FULL HOUSE")
elif 3 in cd or 4 in cd or 5 in cd: print("THREE CARD")
elif cd[0] == cd[1]: print("TWO PAIR")
elif cd[0] == 2 : print("ONE PAIR")
0