結果

問題 No.227 簡単ポーカー
ユーザー daku9640daku9640
提出日時 2018-03-17 00:44:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 20 ms / 5,000 ms
コード長 331 bytes
コンパイル時間 726 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 8,608 KB
最終ジャッジ日時 2023-08-23 13:00:54
合計ジャッジ時間 1,143 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,496 KB
testcase_01 AC 17 ms
8,408 KB
testcase_02 AC 19 ms
8,516 KB
testcase_03 AC 19 ms
8,584 KB
testcase_04 AC 20 ms
8,364 KB
testcase_05 AC 19 ms
8,524 KB
testcase_06 AC 18 ms
8,568 KB
testcase_07 AC 19 ms
8,584 KB
testcase_08 AC 19 ms
8,608 KB
testcase_09 AC 19 ms
8,576 KB
testcase_10 AC 19 ms
8,512 KB
testcase_11 AC 17 ms
8,420 KB
testcase_12 AC 17 ms
8,420 KB
testcase_13 AC 17 ms
8,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
A = Counter(map(int, input().split()))
ans = sorted(A.values())[::-1]
if ans[0] == 3:
    if ans[1] == 2:
        print("FULL HOUSE")
    else:
        print("THREE CARD")
elif ans[0] == 2:
    if ans[1] == 2:
        print("TWO PAIR")
    else:
        print("ONE PAIR")
else:
    print("NO HAND")
0