結果

問題 No.227 簡単ポーカー
ユーザー utsumidaisukeutsumidaisuke
提出日時 2017-03-10 23:47:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 525 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 10,752 KB
実行使用メモリ 7,956 KB
最終ジャッジ日時 2023-09-06 14:39:37
合計ジャッジ時間 1,244 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,800 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 15 ms
7,788 KB
testcase_06 AC 15 ms
7,908 KB
testcase_07 WA -
testcase_08 AC 13 ms
7,792 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

card = input().split()
card_set = set(card)

if len(card_set) == 5 or 1:
    print('NO HAND')
elif len(card_set) == 4:
    print('ONE PAIR')
elif len(card_set) == 3:
    mx1 = 0
    for i in card_set:
        n = card.count(i)
        mx1 = max(mx1, n)
    if mx1 == 3:
        print('THREE CARD')
    else:
        print('TWO PAIR')
elif len(card_set) == 2:
    mx2 = 0
    for i in card_set:
        n = card.count(i)
        mx2 = max(mx2, n)
    if mx2 == 4:
        print('NO HAND')
    else:
        print('FULL HOUSE')
0