結果

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

ソースコード

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,13):
    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 CARDE"
elif tmp==(2,0):ans="TWO PAIR"
elif tmp==(1,0):ans="ONE PAIR"
print(ans)
0