結果

問題 No.227 簡単ポーカー
ユーザー 学ぶマン
提出日時 2025-07-01 21:50:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 343 bytes
コンパイル時間 529 ms
コンパイル使用メモリ 82,056 KB
実行使用メモリ 55,392 KB
最終ジャッジ日時 2025-07-01 21:50:07
合計ジャッジ時間 2,211 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
A = list(map(int, input().split()))
c = Counter(A).most_common()

ans = 'NO HAND'
if len(c) == 2:
    if c[0][1] == 3:
        ans = 'FULL HOUSE'
elif len(c) == 3:
    if c[0][1] == 3:
        ans = 'THREE CARD'
    elif c[0][1] == 2:
        ans = 'TWO PAIR'
elif len(c) == 4:
    ans = 'ONE PAIR'

print(ans)
0