結果

問題 No.227 簡単ポーカー
ユーザー fV9TwBhUoa9S3eV
提出日時 2019-09-18 09:45:45
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 5,000 ms
コード長 391 bytes
コンパイル時間 141 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-07 19:56:37
合計ジャッジ時間 1,162 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

# No.227 簡単ポーカー
cards = [int(i) for i in input().split()]
numbers = [0] * 14

for i in range(5):
    numbers[cards[i]] += 1

if numbers.count(3) == 1 and numbers.count(2) == 1:
    print('FULL HOUSE')
elif numbers.count(3) == 1:
    print('THREE CARD')
elif numbers.count(2) == 2:
    print('TWO PAIR')
elif numbers.count(2) == 1:
    print('ONE PAIR')
else:
    print('NO HAND')
0