結果

問題 No.227 簡単ポーカー
ユーザー Shin09shinShin09shin
提出日時 2019-01-15 04:29:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 5,000 ms
コード長 489 bytes
コンパイル時間 437 ms
コンパイル使用メモリ 87,088 KB
実行使用メモリ 71,748 KB
最終ジャッジ日時 2023-09-05 21:20:26
合計ジャッジ時間 2,590 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
71,476 KB
testcase_01 AC 94 ms
71,612 KB
testcase_02 AC 94 ms
71,672 KB
testcase_03 AC 94 ms
71,600 KB
testcase_04 AC 93 ms
71,644 KB
testcase_05 AC 93 ms
71,536 KB
testcase_06 AC 93 ms
71,748 KB
testcase_07 AC 92 ms
71,652 KB
testcase_08 AC 95 ms
71,464 KB
testcase_09 AC 92 ms
71,680 KB
testcase_10 AC 95 ms
71,348 KB
testcase_11 AC 95 ms
71,748 KB
testcase_12 AC 94 ms
71,620 KB
testcase_13 AC 95 ms
71,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections

# 入力
input = list(map(int, input().split()))

# 計算
# 重複を取得
c = collections.Counter(input)
list = list(c.values())
list.sort(reverse=True)
if len(list) == 2:
    if list[0] == 3 and list[1] == 2:
        print("FULL HOUSE")
    else:
        print("NO HAND")
elif len(list) == 3:
    if list[0] == 3:
        print("THREE CARD")
    else:
        print("TWO PAIR")
else:
    if list[0] == 2:
        print("ONE PAIR")
    else:
        print("NO HAND")
0