結果

問題 No.227 簡単ポーカー
ユーザー YU Hirose
提出日時 2024-05-30 23:08:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 52 ms / 5,000 ms
コード長 380 bytes
コンパイル時間 195 ms
コンパイル使用メモリ 82,156 KB
実行使用メモリ 54,928 KB
最終ジャッジ日時 2024-12-20 21:43:00
合計ジャッジ時間 1,565 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
a = list(map(int, input().split()))
co = Counter(a)
if len(co) == 2 and max(co.values()) == 3:
    print("FULL HOUSE")
elif len(co) == 3 and max(co.values()) == 3:
    print("THREE CARD")
elif len(co) == 3 and max(co.values()) == 2:
    print("TWO PAIR")
elif len(co) == 4 and max(co.values()) == 2:
    print("ONE PAIR")
else:
    print("NO HAND")
0