結果

問題 No.227 簡単ポーカー
ユーザー flax_fluxflax_flux
提出日時 2018-02-26 08:07:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 15 ms / 5,000 ms
コード長 556 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 10,556 KB
実行使用メモリ 7,964 KB
最終ジャッジ日時 2023-08-14 02:06:42
合計ジャッジ時間 1,089 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,964 KB
testcase_01 AC 14 ms
7,940 KB
testcase_02 AC 14 ms
7,932 KB
testcase_03 AC 14 ms
7,852 KB
testcase_04 AC 14 ms
7,812 KB
testcase_05 AC 14 ms
7,812 KB
testcase_06 AC 14 ms
7,956 KB
testcase_07 AC 13 ms
7,956 KB
testcase_08 AC 14 ms
7,824 KB
testcase_09 AC 14 ms
7,816 KB
testcase_10 AC 14 ms
7,964 KB
testcase_11 AC 14 ms
7,812 KB
testcase_12 AC 13 ms
7,816 KB
testcase_13 AC 14 ms
7,812 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!python3
# -*- coding: utf-8 -*-

card_list = list(map(int, input().split()))
card_list.sort()
card_set = len(set(card_list))
# フルハウス
if card_set == 2:
    if card_list.count(card_list[1]) == 2 or card_list.count(card_list[1]) == 3:
        print("FULL HOUSE")
    else:
        print("NO HAND")
# スリーカード
elif card_set == 3:
    if card_list.count(card_list[2]) == 3:
        print("THREE CARD")
    else:
        print("TWO PAIR")
# ワンペア
elif card_set == 4:
    print("ONE PAIR")
# ノーハンド
else:
    print("NO HAND")
0