結果

問題 No.227 簡単ポーカー
ユーザー jjwatt
提出日時 2020-03-18 14:33:57
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 5,000 ms
コード長 365 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-12-14 01:53:31
合計ジャッジ時間 1,397 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

x=list(map(int,input().split()))
a=[]
for i in range(1,14):
    a.append(x.count(i))
if len(list(set(x)))==2 and max(a)==3:
    print("FULL HOUSE")
elif len(list(set(x)))==3 and max(a)==3:
    print("THREE CARD")
elif len(list(set(x)))==3 and max(a)==2:
    print("TWO PAIR")
elif len(list(set(x)))==4 and max(a)==2:
    print("ONE PAIR")
else:
    print("NO HAND")
0