結果

問題 No.227 簡単ポーカー
ユーザー mkawa2mkawa2
提出日時 2019-12-15 08:58:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 5,000 ms
コード長 611 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 10,940 KB
実行使用メモリ 8,692 KB
最終ジャッジ日時 2023-09-11 04:19:36
合計ジャッジ時間 1,197 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,568 KB
testcase_01 AC 19 ms
8,488 KB
testcase_02 AC 21 ms
8,464 KB
testcase_03 AC 19 ms
8,616 KB
testcase_04 AC 19 ms
8,460 KB
testcase_05 AC 19 ms
8,620 KB
testcase_06 AC 19 ms
8,568 KB
testcase_07 AC 19 ms
8,484 KB
testcase_08 AC 19 ms
8,472 KB
testcase_09 AC 20 ms
8,676 KB
testcase_10 AC 19 ms
8,692 KB
testcase_11 AC 19 ms
8,520 KB
testcase_12 AC 19 ms
8,556 KB
testcase_13 AC 19 ms
8,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from collections import Counter

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]

def main():
    a=LI()
    c=list(Counter(a).values())
    if 3 in c and 2 in c:
        print("FULL HOUSE")
    elif 3 in c:
        print("THREE CARD")
    elif c.count(2)==2:
        print("TWO PAIR")
    elif 2 in c:
        print("ONE PAIR")
    else:
        print("NO HAND")
main()
0