結果

問題 No.227 簡単ポーカー
ユーザー otsuneko
提出日時 2021-05-07 11:08:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 5,000 ms
コード長 425 bytes
コンパイル時間 392 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 54,016 KB
最終ジャッジ日時 2024-09-14 23:51:34
合計ジャッジ時間 2,061 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
A = list(map(int,input().split()))
d = Counter(A)

three = 0
two = 0
for k in d:
    if d[k] == 3:
        three += 1
    elif d[k] == 2:
        two += 1
if three:
    if two:
        print("FULL HOUSE")
    else:
        print("THREE CARD")
else:
    if two == 2:
        print("TWO PAIR")
    elif two == 1:
        print("ONE PAIR")
    else:
        print("NO HAND")
0