結果

問題 No.227 簡単ポーカー
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-10-21 09:56:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 5,000 ms
コード長 423 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 81,744 KB
実行使用メモリ 53,500 KB
最終ジャッジ日時 2023-10-20 11:19:08
合計ジャッジ時間 1,354 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

A = input().split()
B = set(A)
if len(B) == 1 or len(B) == 5:
    print("NO HAND")
elif len(B) == 4:
    print("ONE PAIR")
elif len(B) == 3:
    if A.count(list(B)[0]) == 2 or A.count(list(B)[1]) == 2 or A.count(list(B)[2]) == 2:
        print("TWO PAIR")
    else:
        print("THREE CARD")
else:
    if A.count(list(B)[0]) == 3 or A.count(list(B)[1]) == 3:
        print("FULL HOUSE")
    else:
        print("NO HAND")
0