結果

問題 No.227 簡単ポーカー
ユーザー fmhrfmhr
提出日時 2015-06-19 22:31:39
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 297 bytes
コンパイル時間 106 ms
コンパイル使用メモリ 10,760 KB
実行使用メモリ 8,620 KB
最終ジャッジ日時 2023-09-21 09:58:10
合計ジャッジ時間 1,163 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 20 ms
8,604 KB
testcase_02 AC 18 ms
8,616 KB
testcase_03 AC 19 ms
8,528 KB
testcase_04 AC 19 ms
8,472 KB
testcase_05 AC 18 ms
8,476 KB
testcase_06 AC 18 ms
8,548 KB
testcase_07 AC 18 ms
8,436 KB
testcase_08 AC 19 ms
8,620 KB
testcase_09 AC 18 ms
8,476 KB
testcase_10 AC 19 ms
8,460 KB
testcase_11 AC 18 ms
8,496 KB
testcase_12 AC 18 ms
8,480 KB
testcase_13 AC 19 ms
8,440 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:
	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