結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,500 KB
testcase_01 WA -
testcase_02 AC 37 ms
53,500 KB
testcase_03 WA -
testcase_04 AC 37 ms
53,500 KB
testcase_05 AC 37 ms
53,500 KB
testcase_06 AC 38 ms
53,500 KB
testcase_07 WA -
testcase_08 AC 37 ms
53,500 KB
testcase_09 AC 37 ms
53,500 KB
testcase_10 AC 38 ms
53,500 KB
testcase_11 AC 37 ms
53,500 KB
testcase_12 WA -
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 list(B)[0] == 2 or list(B)[1] == 2 or list(B)[2] == 2:
        print("TWO PAIR")
    else:
        print("THREE CARD")
else:
    if list(B)[0] == 3 or list(B)[1] == 3:
        print("FULL HOUSE")
    else:
        print("NO HAND")
0