結果

問題 No.227 簡単ポーカー
ユーザー 立川和樹
提出日時 2022-04-04 13:07:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 364 bytes
コンパイル時間 219 ms
コンパイル使用メモリ 82,384 KB
実行使用メモリ 53,292 KB
最終ジャッジ日時 2024-11-25 04:15:26
合計ジャッジ時間 1,397 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

A = list(map(int, input().split()))
d = dict.fromkeys(A, 0)
for i in A:
    d[i] += 1

dict_values = list(d.values())
v = set(dict_values)

if v == {2, 3}:
    print("FULL HOUSE")
elif v== {1, 3}:
    print("THREE CARD")
elif v == {2, 1}:
    if dict_values.count(2) == 1:
        print("ONE PAIR") 
    else :
        print("TWO PAIR")
else :
    print("NO HAND")
0