結果

問題 No.227 簡単ポーカー
ユーザー yumenomatayume
提出日時 2020-04-05 03:06:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 5,000 ms
コード長 292 bytes
コンパイル時間 130 ms
コンパイル使用メモリ 82,596 KB
実行使用メモリ 53,888 KB
最終ジャッジ日時 2024-07-03 07:57:33
合計ジャッジ時間 1,385 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections

a = list(map(int,input().split()))
v = sorted(collections.Counter(a).values())

if v == [2,3]:
    print('FULL HOUSE')
elif v == [1,1,3]:
    print('THREE CARD')
elif v == [1,2,2]:
    print('TWO PAIR')
elif v == [1,1,1,2]:
    print('ONE PAIR')
else:
    print('NO HAND')
0