結果

問題 No.227 簡単ポーカー
ユーザー okashin39
提出日時 2020-12-04 17:00:23
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 532 ms / 5,000 ms
コード長 384 bytes
コンパイル時間 385 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 44,576 KB
最終ジャッジ日時 2024-09-15 03:35:30
合計ジャッジ時間 10,844 ms
ジャッジサーバーID
(参考情報)
judge3 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

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