結果

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

ソースコード

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