結果

問題 No.227 簡単ポーカー
ユーザー Shin09shin
提出日時 2019-01-15 04:27:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 436 bytes
コンパイル時間 1,775 ms
コンパイル使用メモリ 81,536 KB
実行使用メモリ 53,504 KB
最終ジャッジ日時 2024-06-23 16:40:35
合計ジャッジ時間 1,475 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections

# 入力
input = list(map(int, input().split()))

# 計算
c = collections.Counter(input)
list = list(c.values())
list.sort(reverse=True)
if len(list) == 2:
    if list[0] == 3 and list[1] == 2:
        print("FULL HOUSE")
elif len(list) == 3:
    if list[0] == 3:
        print("THREE CARD")
    else:
        print("TWO PAIR")
else:
    if list[0] == 2:
        print("ONE PAIR")
    else:
        print("NO HAND")
0