結果

問題 No.227 簡単ポーカー
ユーザー n_na
提出日時 2022-01-06 00:33:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 5,000 ms
コード長 350 bytes
コンパイル時間 720 ms
コンパイル使用メモリ 82,316 KB
実行使用メモリ 53,296 KB
最終ジャッジ日時 2024-11-06 12:04:07
合計ジャッジ時間 1,444 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

A = list(map(int, input().split()))
res = [0 for _ in range(14)]

for k in A:
    res[k] += 1
res.sort(reverse = True)

if res[0] == 3:
    if res[1] == 2:
        print("FULL HOUSE")
    else:
        print("THREE CARD")
elif res[0] == 2:
    if res[1] == 2:
        print("TWO PAIR")
    else:
        print("ONE PAIR")
else:
    print("NO HAND")

0