結果

問題 No.227 簡単ポーカー
ユーザー testtest
提出日時 2018-07-07 20:37:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 430 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 10,840 KB
実行使用メモリ 7,956 KB
最終ジャッジ日時 2023-09-18 14:49:27
合計ジャッジ時間 981 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,760 KB
testcase_01 AC 16 ms
7,880 KB
testcase_02 AC 17 ms
7,848 KB
testcase_03 AC 17 ms
7,788 KB
testcase_04 AC 16 ms
7,956 KB
testcase_05 AC 16 ms
7,928 KB
testcase_06 AC 15 ms
7,808 KB
testcase_07 AC 15 ms
7,932 KB
testcase_08 AC 16 ms
7,892 KB
testcase_09 AC 16 ms
7,920 KB
testcase_10 AC 15 ms
7,812 KB
testcase_11 AC 16 ms
7,784 KB
testcase_12 AC 15 ms
7,812 KB
testcase_13 AC 16 ms
7,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

yaku = ["FULL HOUSE","THREE CARD","TWO PAIR","ONE PAIR","NO HAND"]
cnt = [0,0,0,0,0,0,0,0,0,0,0,0,0,0]
hand = [int(i) for i in input().split()]
for num in hand:
	cnt[num] += 1

if cnt.count(3) and cnt.count(2):
	print(yaku[0])
elif cnt.count(3) and cnt.count(1) == 2:
	print(yaku[1])
elif cnt.count(2) == 2 and cnt.count(1) == 1:
	print(yaku[2])
elif cnt.count(2) == 1 and cnt.count(1) == 3:
	print(yaku[3])
else:
	print(yaku[4])
0