結果

問題 No.227 簡単ポーカー
ユーザー 坂口弘次郎
提出日時 2022-06-06 22:17:32
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 5,000 ms
コード長 297 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-09-21 04:45:29
合計ジャッジ時間 1,113 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
l = collections.Counter(list(input().split()))
v, c = zip(*l.most_common())
r = "NO HAND"
if c[0] == 3:
    if c[1] == 2:
        r = "FULL HOUSE"
    else:
        r = "THREE CARD"
if c[0] == 2:
    if c[1] == 2:
        r = "TWO PAIR"
    else:
        r = "ONE PAIR"
print(r)
0