結果

問題 No.227 簡単ポーカー
ユーザー どまおーどまおー
提出日時 2018-05-11 10:32:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 353 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 10,608 KB
実行使用メモリ 7,896 KB
最終ジャッジ日時 2023-09-10 12:36:11
合計ジャッジ時間 1,121 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

cs = map(int,input().split())
cd = {}
for c in cs:
    if c in cd: cd[c] += 1
    else: cd[c] = 1
cd = list(cd.values())
cd.sort(reverse=True)
if len(cd) == 5: print("NO HAND")
elif 3 in cd and 2 in cd: print("FULL HOUSE")
elif 3 in cd or 4 in cd or 5 in cd: print("THREE CARD")
elif cd[0] == cd[1]: print("TWO PAIR")
elif cd[0] == 2 : print("ONE PAIR")
0