結果

問題 No.227 簡単ポーカー
ユーザー 立川和樹
提出日時 2022-04-04 12:48:56
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 322 bytes
コンパイル時間 256 ms
コンパイル使用メモリ 82,200 KB
実行使用メモリ 53,608 KB
最終ジャッジ日時 2024-11-25 03:50:12
合計ジャッジ時間 1,461 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

A = list(map(int,input().split()))
d = dict.fromkeys(A,0)
for i in A:
    d[i] += 1

dict_values = list(d.values())
v = set(dict_values)

if v == {2,3}:
    print("FULL HOUSE")
elif v== {1,3}:
    print("THREE CARD")
elif v == {2,2}:
    print("TWO PAIR")
elif v == {2,1}:
    print("ONE PAIR")
else :
    print("NO HAND")
0