結果

問題 No.227 簡単ポーカー
コンテスト
ユーザー 奥村英朗
提出日時 2026-01-07 11:34:58
言語 PyPy3
(7.3.17)
結果
AC  
実行時間 48 ms / 5,000 ms
コード長 325 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,577 ms
コンパイル使用メモリ 81,996 KB
実行使用メモリ 53,736 KB
最終ジャッジ日時 2026-01-07 11:35:04
合計ジャッジ時間 1,873 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

hands =  list(map(int, input().split()))
counts = []
for cards in hands:
    counts.append(hands.count(cards))

if 3 in counts and 2 in counts:
    print("FULL HOUSE")
elif 3 in counts:
    print("THREE CARD")
elif counts.count(2) == 4:
    print("TWO PAIR")
elif 2 in counts:
    print("ONE PAIR")
else:
    print("NO HAND")
0