結果

問題 No.227 簡単ポーカー
コンテスト
ユーザー 奥村英朗
提出日時 2026-01-07 11:34:58
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 26 ms / 5,000 ms
+ 111µs
コード長 325 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,794 ms
コンパイル使用メモリ 82,264 KB
実行使用メモリ 56,240 KB
最終ジャッジ日時 2026-10-11 06:20:36
合計ジャッジ時間 1,621 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

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