結果

問題 No.227 簡単ポーカー
ユーザー Beginer_
提出日時 2025-05-09 22:57:57
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 5,000 ms
コード長 358 bytes
コンパイル時間 265 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 10,368 KB
最終ジャッジ日時 2025-05-09 22:57:59
合計ジャッジ時間 1,655 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

cards= list(map(int, input().split()))
counts = Counter(cards)
freqs= sorted(counts.values(), reverse=True)

if freqs == [3, 2]:
    print("FULL HOUSE")
elif freqs == [3, 1, 1]:
    print("THREE CARD")
elif freqs == [2, 2, 1]:
    print("TWO PAIR")
elif freqs == [2, 1, 1, 1]:
    print("ONE PAIR")
else:
    print("NO HAND")
0