結果

問題 No.227 簡単ポーカー
ユーザー gorugo30gorugo30
提出日時 2021-02-22 23:25:37
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 38 ms / 5,000 ms
コード長 354 bytes
コンパイル時間 1,132 ms
コンパイル使用メモリ 81,468 KB
実行使用メモリ 53,292 KB
最終ジャッジ日時 2023-10-21 17:36:45
合計ジャッジ時間 1,544 ms
ジャッジサーバーID
(参考情報)
judge10 / judge13
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

A = list(map(int, input().split()))
st = set(A)
if len(st) == 2:
    if 2 <= A.count(A[0]) <= 3:
        print("FULL HOUSE")
        exit()
elif len(st) == 3:
    if max([A.count(A[i]) for i in range(5)]) == 3:
        print("THREE CARD")
    else:
        print("TWO PAIR")
    exit()
elif len(st) == 4:
    print("ONE PAIR")
    exit()
print("NO HAND")
0