結果

問題 No.227 簡単ポーカー
ユーザー n_nan_na
提出日時 2022-01-06 00:33:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 36 ms / 5,000 ms
コード長 350 bytes
コンパイル時間 384 ms
コンパイル使用メモリ 82,568 KB
実行使用メモリ 53,416 KB
最終ジャッジ日時 2024-04-24 05:08:31
合計ジャッジ時間 1,448 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
53,080 KB
testcase_01 AC 35 ms
52,408 KB
testcase_02 AC 34 ms
52,320 KB
testcase_03 AC 35 ms
53,088 KB
testcase_04 AC 33 ms
53,164 KB
testcase_05 AC 35 ms
52,196 KB
testcase_06 AC 35 ms
52,896 KB
testcase_07 AC 35 ms
53,416 KB
testcase_08 AC 35 ms
53,252 KB
testcase_09 AC 34 ms
51,952 KB
testcase_10 AC 34 ms
52,132 KB
testcase_11 AC 34 ms
52,452 KB
testcase_12 AC 34 ms
52,308 KB
testcase_13 AC 36 ms
53,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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