結果

問題 No.227 簡単ポーカー
ユーザー Luoto-green
提出日時 2017-07-10 10:07:27
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 5,000 ms
コード長 271 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-10-07 06:57:24
合計ジャッジ時間 1,172 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

n = list(map(int,input().split()))
s = [0]*13
for i in n:
    s[i-1] += 1
if 3 in s and 2 in s:
    print("FULL HOUSE")
elif 3 in s:
    print("THREE CARD")
elif s.count(2) == 2:
    print("TWO PAIR")
elif s.count(2) == 1:
    print("ONE PAIR")
else:
    print("NO HAND")
0