結果

問題 No.227 簡単ポーカー
ユーザー foumi
提出日時 2019-04-03 09:30:23
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 5,000 ms
コード長 390 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-12-17 13:52:35
合計ジャッジ時間 1,233 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

cards = input().split()
count = []
for i in cards:
    count.append(cards.count(i))

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