結果

問題 No.227 簡単ポーカー
コンテスト
ユーザー n_na
提出日時 2022-01-06 00:33:10
言語 PyPy3
(7.3.23 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 24 ms / 5,000 ms
+ 728µs
コード長 350 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 67 ms
コンパイル使用メモリ 80,724 KB
実行使用メモリ 56,248 KB
最終ジャッジ日時 2026-09-19 16:39:59
合計ジャッジ時間 1,921 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

A = list(map(int, input().split()))
res = [0 for _ in range(14)]

for k in A:
    res[k] += 1
res.sort(reverse = True)

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

0