結果

問題 No.227 簡単ポーカー
ユーザー boya978
提出日時 2019-09-08 03:31:33
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 455 bytes
コンパイル時間 421 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-06-27 14:51:05
合計ジャッジ時間 1,573 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

cards = list(map(int,input().split()))
dict = {}

for i in cards:
    if i in dict:
        dict[i]+=1
    else:
        dict[i]=1

array=[]
for num,count in dict.items():
    array.append(count)

result = ""

if len(array)==2:
    result = "FULL HOUSE"
elif len(array)==3:
    if max(array)==3:
        result="THREE CARD"
    else:
        result="TWO PAIR"
elif len(array)==4:
    result="ONE PAIR"
else:
    result="NO HAND"
    
print(result)
    


0