結果

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

ソースコード

diff #

import collections
cards=collections.Counter(list(map(int,input().split())))
f0=cards.most_common()[0][1]
try:
  f1=cards.most_common()[1][1]
except:
  pass
if f0==3 and f1==2:
	print("FULL HOUSE")
elif f0==3:
	print("THREE CARD")
elif f0==2 and f1==2:
	print("TWO PAIR")
elif f0==2:
	print("ONE PAIR")
else:
	print("NO HAND")
0