結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 37 ms
53,500 KB
testcase_02 AC 36 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 37 ms
53,500 KB
testcase_07 AC 36 ms
53,500 KB
testcase_08 AC 37 ms
53,500 KB
testcase_09 AC 37 ms
53,500 KB
testcase_10 AC 36 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:
    print("FULL HOUSE")
0