結果

問題 No.227 簡単ポーカー
コンテスト
ユーザー どまおー
提出日時 2018-05-11 10:32:11
言語 Python3
(3.14.3 + numpy 2.4.2 + scipy 1.17.0)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 353 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 567 ms
コンパイル使用メモリ 20,832 KB
実行使用メモリ 15,488 KB
最終ジャッジ日時 2026-03-16 14:28:03
合計ジャッジ時間 2,550 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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