結果

問題 No.227 簡単ポーカー
ユーザー bauer24bauer24
提出日時 2017-03-31 14:58:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 347 bytes
コンパイル時間 65 ms
コンパイル使用メモリ 10,636 KB
実行使用メモリ 8,644 KB
最終ジャッジ日時 2023-09-21 10:37:49
合計ジャッジ時間 992 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
8,572 KB
testcase_01 AC 18 ms
8,464 KB
testcase_02 AC 19 ms
8,568 KB
testcase_03 AC 18 ms
8,488 KB
testcase_04 AC 19 ms
8,480 KB
testcase_05 AC 17 ms
8,460 KB
testcase_06 AC 17 ms
8,644 KB
testcase_07 AC 17 ms
8,460 KB
testcase_08 AC 17 ms
8,600 KB
testcase_09 AC 17 ms
8,596 KB
testcase_10 AC 17 ms
8,456 KB
testcase_11 AC 17 ms
8,456 KB
testcase_12 AC 17 ms
8,620 KB
testcase_13 AC 17 ms
8,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
count = Counter([int(i) for i in input().split()])
a = 0
for i in count.values():
    if i == 3:
        a += 10
    elif i == 2:
        a += 1
if a == 11:
    print("FULL HOUSE")
elif a == 10:
    print("THREE CARD")
elif a == 2:
    print("TWO PAIR")
elif a == 1:
    print("ONE PAIR")
else:
    print("NO HAND")
0