結果

問題 No.227 簡単ポーカー
ユーザー a_tena_ten
提出日時 2016-03-20 20:05:23
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 366 bytes
コンパイル時間 45 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-04-08 21:07:24
合計ジャッジ時間 791 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,676 KB
testcase_01 AC 10 ms
6,676 KB
testcase_02 AC 11 ms
6,676 KB
testcase_03 AC 11 ms
6,676 KB
testcase_04 AC 11 ms
6,676 KB
testcase_05 AC 12 ms
6,676 KB
testcase_06 AC 11 ms
6,676 KB
testcase_07 AC 11 ms
6,676 KB
testcase_08 AC 11 ms
6,676 KB
testcase_09 AC 11 ms
6,676 KB
testcase_10 AC 11 ms
6,676 KB
testcase_11 AC 11 ms
6,676 KB
testcase_12 AC 10 ms
6,676 KB
testcase_13 AC 11 ms
6,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding:utf-8

hand=map(int,raw_input().split()) 

hand_2=[]
hand_3=[]
for i in range(1,14):
	if hand.count(i)==2:
		hand_2.append(i)
	if hand.count(i)==3:
		hand_3.append(i)

if hand_2 and hand_3:
	print 'FULL HOUSE'
elif not hand_2 and hand_3:
	print 'THREE CARD'
elif len(hand_2)==2:
	print 'TWO PAIR'
elif len(hand_2)==1:
	print 'ONE PAIR'
else:
	print 'NO HAND'
0