結果

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

ソースコード

diff #

lst=[0]*14
l=map(int,input().split())
for i in l:
    lst[i]+=1
# print(lst[1:])
two,three=0,0
for i in range(1,14):
    if lst[i]==2:two+=1
    elif lst[i]==3:three=1
# print(two,three)
tmp=(two,three)
# print(tmp)
ans="NO HAND"
if tmp==(1,1):ans="FULL HOUSE"
elif tmp==(0,1):ans="THREE CARD"
elif tmp==(2,0):ans="TWO PAIR"
elif tmp==(1,0):ans="ONE PAIR"
print(ans)
0