結果

問題 No.227 簡単ポーカー
ユーザー hykw202207hykw202207
提出日時 2022-08-11 07:23:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 5,000 ms
コード長 347 bytes
コンパイル時間 236 ms
コンパイル使用メモリ 81,772 KB
実行使用メモリ 53,476 KB
最終ジャッジ日時 2023-10-21 14:28:15
合計ジャッジ時間 1,353 ms
ジャッジサーバーID
(参考情報)
judge10 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,476 KB
testcase_01 AC 36 ms
53,476 KB
testcase_02 AC 32 ms
53,476 KB
testcase_03 AC 32 ms
53,476 KB
testcase_04 AC 31 ms
53,476 KB
testcase_05 AC 31 ms
53,476 KB
testcase_06 AC 31 ms
53,476 KB
testcase_07 AC 31 ms
53,476 KB
testcase_08 AC 31 ms
53,476 KB
testcase_09 AC 31 ms
53,476 KB
testcase_10 AC 31 ms
53,476 KB
testcase_11 AC 34 ms
53,476 KB
testcase_12 AC 31 ms
53,476 KB
testcase_13 AC 31 ms
53,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A = list(map(int, input().split()))

from collections import Counter
C = Counter(A).most_common()

if C[0][1] == 3:
    if C[1][1] == 2:
        print("FULL HOUSE")
    else:
        print("THREE CARD")

    exit()

if C[0][1] == 2:
    if C[1][1] == 2:
        print("TWO PAIR")
    else:
        print("ONE PAIR")

    exit()

print("NO HAND")
0