結果

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

ソースコード

diff #

#!/usr/bin/env python

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

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