結果

問題 No.227 簡単ポーカー
ユーザー pypypymipypypymi
提出日時 2022-01-06 11:25:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 5,000 ms
コード長 350 bytes
コンパイル時間 162 ms
コンパイル使用メモリ 82,404 KB
実行使用メモリ 53,760 KB
最終ジャッジ日時 2024-04-24 17:52:31
合計ジャッジ時間 1,484 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
53,504 KB
testcase_01 AC 45 ms
53,632 KB
testcase_02 AC 47 ms
53,504 KB
testcase_03 AC 46 ms
53,504 KB
testcase_04 AC 45 ms
53,376 KB
testcase_05 AC 46 ms
53,504 KB
testcase_06 AC 45 ms
53,248 KB
testcase_07 AC 45 ms
53,632 KB
testcase_08 AC 47 ms
53,760 KB
testcase_09 AC 45 ms
53,376 KB
testcase_10 AC 45 ms
53,504 KB
testcase_11 AC 45 ms
53,376 KB
testcase_12 AC 45 ms
53,504 KB
testcase_13 AC 46 ms
53,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
array = sorted(list(dict(Counter(map(int,input().split()))).values()))[::-1]
if (len(array)==2) and array[0]==3 and array[1]==2:
    print("FULL HOUSE")
elif array[0]==3:
    print("THREE CARD")
elif array[0]==2 and array[1]==2:
    print("TWO PAIR")
elif array[0]==2:
    print("ONE PAIR")
else:
    print("NO HAND")
0