結果

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

ソースコード

diff #

#!/usr/bin/env python

incards = []
incards = input().split()

doub = 0
trip = 0
for i in set(incards):
    if incards.count(i) == 3:
        trip += 1
    elif incards.count(i) == 2:
        doub += 1

if trip == 1:
    if doub == 1:
        print('FULL HOUSE')
    else:
        print('THREE CARD')
elif doub == 2:
    print('TWO PAIR')
elif doub == 1:
    print('ONE PAIR')
else:
    print('NO HAND')
0