結果

問題 No.227 簡単ポーカー
ユーザー hiro_metal_corehiro_metal_core
提出日時 2017-11-08 00:43:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 386 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-05-03 07:01:01
合計ジャッジ時間 1,177 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 25 ms
10,752 KB
testcase_02 AC 25 ms
10,880 KB
testcase_03 AC 26 ms
10,752 KB
testcase_04 AC 26 ms
10,752 KB
testcase_05 AC 25 ms
10,752 KB
testcase_06 AC 25 ms
10,880 KB
testcase_07 AC 25 ms
10,752 KB
testcase_08 AC 25 ms
10,880 KB
testcase_09 AC 25 ms
10,752 KB
testcase_10 AC 25 ms
10,752 KB
testcase_11 AC 25 ms
10,880 KB
testcase_12 AC 27 ms
10,880 KB
testcase_13 AC 26 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A = list(map(int, input().split()))

dict = {}

for a in A:
    if (a not in dict):
       dict[a] = 1
    else:
        dict[a] += 1

pair_num = len(dict)

if (pair_num == 2):
    print("FULL HOUSE")
elif (pair_num == 3):
    if (3 in dict.values()):
        print("THREE CARD")
    else:
        print("TWO PAIR")
elif (pair_num == 4):
    print("ONE PAIR")
else:
    print("NO HAND")
0