結果

問題 No.227 簡単ポーカー
ユーザー tookunn_1213tookunn_1213
提出日時 2015-08-14 19:18:00
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 5,000 ms
コード長 476 bytes
コンパイル時間 509 ms
コンパイル使用メモリ 6,592 KB
実行使用メモリ 5,996 KB
最終ジャッジ日時 2023-09-25 11:47:59
合計ジャッジ時間 1,495 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

A = map(int,raw_input().split())
li = [0 for i in range(14)]
setA = set(A)
for a in A:
	li[a] += 1
ans = 'NO HAND'
if len(setA) == 2 and ((li[list(setA)[0]] >= 2 and li[list(setA)[1]] >= 3) or (li[list(setA)[0]] >= 3 and li[list(setA)[1]] >= 2)):
	ans = 'FULL HOUSE'
elif len(setA) == 3 and (li[list(setA)[0]] >= 3 or li[list(setA)[1]] >= 3 or li[list(setA)[2]] >= 3):
	ans = 'THREE CARD'
elif len(setA) == 3:
	ans = 'TWO PAIR'
elif len(setA) == 4:
	ans = 'ONE PAIR'
print ans
0