結果

問題 No.227 簡単ポーカー
ユーザー ああいい
提出日時 2022-03-17 23:20:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 5,000 ms
コード長 435 bytes
コンパイル時間 293 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 53,760 KB
最終ジャッジ日時 2024-10-01 22:29:06
合計ジャッジ時間 1,669 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

A = list(map(int,input().split()))
from collections import defaultdict
d = defaultdict(int)
for a in A:
    d[a] += 1
l = sorted(d.values())
import sys
N = "NO HAND"
if len(l) == 1:
    print(N)
    exit()
if l[0] == 2 and l[1] == 3:
    print('FULL HOUSE')
    exit()
if l[-1] == 3:
    print("THREE CARD")
    exit()
if l[-1] == 2 and l[-2] == 2:
    print("TWO PAIR")
    exit()
if 2 in l:
    print("ONE PAIR")
    exit()
print(N)
0