結果

問題 No.227 簡単ポーカー
ユーザー 井筒麗稀
提出日時 2025-06-30 22:44:54
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 495 bytes
コンパイル時間 627 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 11,648 KB
最終ジャッジ日時 2025-06-30 22:44:57
合計ジャッジ時間 2,228 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    nums = list(map(int, input().split()))
    n = len(nums)
    counts = [0] * 14
    ans = 0

    for i in nums:
        counts[i] += 1

    ans = sorted(counts_rm, reverse=True)
    
    if ans[0] == 3 and ans[1] == 2:
        print("FULL HOUSE")
    elif ans[0] == 3:
        print("THREE CARD")
    elif ans[0] == 2 and ans[1] == 2:
        print("TWO PAIR")
    elif ans[0] == 2:
        print("ONE PAIR")
    else:
        print("NO HAND")

if __name__=='__main__':
    main()
0