結果

問題 No.227 簡単ポーカー
ユーザー ddsyg1ddsyg1
提出日時 2019-04-04 16:21:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 300 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 10,572 KB
実行使用メモリ 7,968 KB
最終ジャッジ日時 2023-08-26 21:06:25
合計ジャッジ時間 1,056 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,840 KB
testcase_01 AC 17 ms
7,904 KB
testcase_02 AC 17 ms
7,796 KB
testcase_03 AC 16 ms
7,788 KB
testcase_04 AC 15 ms
7,788 KB
testcase_05 AC 15 ms
7,952 KB
testcase_06 AC 16 ms
7,800 KB
testcase_07 WA -
testcase_08 AC 16 ms
7,788 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

a = list(int(i) for i in input().split()) 
b = []

for x in sorted(set(a)):
    b.append(a.count(x))

if b == [3,2]:
    print("FULL HOUSE")

elif b == [3,1,1]:
    print("THREE CARD")

elif b == [2,2,1]:
    print("TWO PAIR")

elif b == [2,1,1,1]:
    print("ONE PAIR")

else:
    print("NO HAND")

0