結果

問題 No.227 簡単ポーカー
コンテスト
ユーザー kohei2019
提出日時 2022-01-05 19:03:25
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 29 ms / 5,000 ms
+ 66µs
コード長 397 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 343 ms
コンパイル使用メモリ 82,012 KB
実行使用メモリ 57,476 KB
最終ジャッジ日時 2026-10-11 05:54:36
合計ジャッジ時間 1,926 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import collections
ls = list(map(int,input().split()))
cnt = list(collections.Counter(ls).values())
cnt.sort()
if2 = 0
if3 = 0
for i in cnt:
    if i == 2:
        if2 += 1
    elif i == 3:
        if3 += 1

if if3 == 1 and if2 == 1:
    print('FULL HOUSE')
elif if2 == 2:
    print('TWO PAIR')
elif if3 == 1:
    print('THREE CARD')
elif if2 == 1:
    print('ONE PAIR')
else:
    print('NO HAND')
0