結果

問題 No.227 簡単ポーカー
ユーザー harurunharurun
提出日時 2022-03-07 17:30:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 15 ms / 5,000 ms
コード長 254 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 7,932 KB
最終ジャッジ日時 2023-09-29 18:37:10
合計ジャッジ時間 1,471 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,780 KB
testcase_01 AC 13 ms
7,740 KB
testcase_02 AC 14 ms
7,784 KB
testcase_03 AC 15 ms
7,824 KB
testcase_04 AC 14 ms
7,872 KB
testcase_05 AC 14 ms
7,768 KB
testcase_06 AC 13 ms
7,912 KB
testcase_07 AC 13 ms
7,912 KB
testcase_08 AC 13 ms
7,932 KB
testcase_09 AC 13 ms
7,884 KB
testcase_10 AC 12 ms
7,732 KB
testcase_11 AC 12 ms
7,804 KB
testcase_12 AC 13 ms
7,932 KB
testcase_13 AC 13 ms
7,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A=sorted(input().split())
B=set(A)
if len(B)==2 and 1<A.count(A[0])<4:print("FULL HOUSE")
elif len(B)==3 and(A[0]==A[2]or A[2]==A[4]or A[1]==A[3]):print("THREE CARD")
elif len(B)==3:print("TWO PAIR")
elif len(B)==4:print("ONE PAIR")
else:print("NO HAND")
0