結果

問題 No.227 簡単ポーカー
ユーザー okashin39okashin39
提出日時 2020-12-04 16:58:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 378 bytes
コンパイル時間 900 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 29,960 KB
最終ジャッジ日時 2023-10-13 06:16:15
合計ジャッジ時間 5,435 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
29,856 KB
testcase_01 WA -
testcase_02 AC 131 ms
29,844 KB
testcase_03 WA -
testcase_04 AC 133 ms
29,736 KB
testcase_05 AC 133 ms
29,756 KB
testcase_06 AC 131 ms
29,864 KB
testcase_07 WA -
testcase_08 AC 131 ms
29,652 KB
testcase_09 AC 133 ms
29,668 KB
testcase_10 AC 133 ms
29,720 KB
testcase_11 AC 132 ms
29,944 KB
testcase_12 WA -
testcase_13 AC 131 ms
29,796 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 == 2:
        print("FULL HOUSE")
    else:
        print("THREE CARD")
elif numpy.max(counts) == 2:
    if counts.shape == 3:
        print("TWO PAIR")
    else:
        print("ONE PAIR")   
else:
    print("NO HAND")
0