結果

問題 No.227 簡単ポーカー
ユーザー otsunekootsuneko
提出日時 2021-05-07 11:08:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 5,000 ms
コード長 425 bytes
コンパイル時間 768 ms
コンパイル使用メモリ 86,872 KB
実行使用メモリ 71,744 KB
最終ジャッジ日時 2023-10-13 02:06:26
合計ジャッジ時間 2,946 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
71,744 KB
testcase_01 AC 92 ms
71,588 KB
testcase_02 AC 94 ms
71,572 KB
testcase_03 AC 93 ms
71,584 KB
testcase_04 AC 93 ms
71,744 KB
testcase_05 AC 93 ms
71,396 KB
testcase_06 AC 94 ms
71,740 KB
testcase_07 AC 95 ms
71,556 KB
testcase_08 AC 95 ms
71,356 KB
testcase_09 AC 93 ms
71,556 KB
testcase_10 AC 93 ms
71,520 KB
testcase_11 AC 93 ms
71,592 KB
testcase_12 AC 92 ms
71,704 KB
testcase_13 AC 92 ms
71,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
A = list(map(int,input().split()))
d = Counter(A)

three = 0
two = 0
for k in d:
    if d[k] == 3:
        three += 1
    elif d[k] == 2:
        two += 1
if three:
    if two:
        print("FULL HOUSE")
    else:
        print("THREE CARD")
else:
    if two == 2:
        print("TWO PAIR")
    elif two == 1:
        print("ONE PAIR")
    else:
        print("NO HAND")
0