結果

問題 No.227 簡単ポーカー
ユーザー fmhrfmhr
提出日時 2015-06-19 23:58:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 5,000 ms
コード長 369 bytes
コンパイル時間 106 ms
コンパイル使用メモリ 10,592 KB
実行使用メモリ 8,636 KB
最終ジャッジ日時 2023-09-21 10:23:35
合計ジャッジ時間 1,249 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,424 KB
testcase_01 AC 19 ms
8,636 KB
testcase_02 AC 19 ms
8,476 KB
testcase_03 AC 20 ms
8,616 KB
testcase_04 AC 20 ms
8,500 KB
testcase_05 AC 21 ms
8,560 KB
testcase_06 AC 20 ms
8,548 KB
testcase_07 AC 19 ms
8,632 KB
testcase_08 AC 19 ms
8,504 KB
testcase_09 AC 20 ms
8,500 KB
testcase_10 AC 19 ms
8,500 KB
testcase_11 AC 21 ms
8,492 KB
testcase_12 AC 21 ms
8,568 KB
testcase_13 AC 20 ms
8,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a = map(int, input().split())
from collections import Counter
a = Counter(a)
if len(a)==1 or len(a)==5:
	print("NO HAND")
if len(a)==2:
	for i, j in a.items():
		if j==4:
			print("NO HAND")
			break
	else:
		print("FULL HOUSE")
if len(a)==3:
	for i, j in a.items():
		if j==3:
			print("THREE CARD")
			break
	else:
		print("TWO PAIR")
if len(a)==4:
	print("ONE PAIR")
0