結果

問題 No.227 簡単ポーカー
ユーザー mm
提出日時 2021-11-19 11:24:24
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 328 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-12-30 06:42:13
合計ジャッジ時間 1,732 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10 RE * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

alist=list(map(int, input().split()))

result=[0]*13
for a in alist:
    result[a]=result[a]+1
two=result.count(2)
three=result.count(3)

if three==1:
    if two==1:
        print("FULL HOUSE")
    else:
        print("THREE CARD")
elif two==2:
    print("TWO PAIR")
elif two==1:
    print("ONE PAIR")
else:
    print("NO HAND")
0