結果

問題 No.227 簡単ポーカー
ユーザー okashin39okashin39
提出日時 2020-12-04 17:00:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 384 bytes
コンパイル時間 333 ms
コンパイル使用メモリ 10,760 KB
実行使用メモリ 29,996 KB
最終ジャッジ日時 2023-10-13 06:19:29
合計ジャッジ時間 4,229 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
29,780 KB
testcase_01 AC 123 ms
29,880 KB
testcase_02 AC 125 ms
29,832 KB
testcase_03 AC 128 ms
29,680 KB
testcase_04 AC 129 ms
29,728 KB
testcase_05 AC 129 ms
29,964 KB
testcase_06 AC 129 ms
29,716 KB
testcase_07 AC 125 ms
29,836 KB
testcase_08 AC 126 ms
29,868 KB
testcase_09 AC 128 ms
29,908 KB
testcase_10 AC 127 ms
29,912 KB
testcase_11 AC 126 ms
29,992 KB
testcase_12 AC 121 ms
29,996 KB
testcase_13 AC 128 ms
29,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy

a = numpy.array(list(map(int, input().split())))

u, counts = numpy.unique(a, return_counts=True)

if numpy.max(counts) == 3:
    if counts.shape[0] == 2:
        print("FULL HOUSE")
    else:
        print("THREE CARD")
elif numpy.max(counts) == 2:
    if counts.shape[0] == 3:
        print("TWO PAIR")
    else:
        print("ONE PAIR")   
else:
    print("NO HAND")
0