結果

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

ソースコード

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