結果

問題 No.227 簡単ポーカー
コンテスト
ユーザー 坂口弘次郎
提出日時 2022-06-06 21:53:10
言語 Python3
(3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 20 ms / 5,000 ms
+ 683µs
コード長 405 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 72 ms
コンパイル使用メモリ 14,592 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2026-11-12 02:30:42
合計ジャッジ時間 1,842 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import collections
txt = input()
c = collections.Counter(list(txt.split()))
values, counts = zip(*c.most_common())
result = "NO HAND"
if counts[0] == 3 and counts[1] == 2:
    result = "FULL HOUSE"
elif counts[0] == 3 and counts[1] != 2:
    result = "THREE CARD"
elif counts[0] == 2 and counts[1] == 2:
    result = "TWO PAIR"
elif counts[0] == 2 and counts[1] != 2:
    result = "ONE PAIR"
print(result)
0