結果

問題 No.227 簡単ポーカー
ユーザー convexineqconvexineq
提出日時 2020-12-29 06:49:56
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 288 bytes
コンパイル時間 200 ms
コンパイル使用メモリ 82,372 KB
実行使用メモリ 67,084 KB
最終ジャッジ日時 2024-04-15 05:59:26
合計ジャッジ時間 1,467 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 40 ms
54,132 KB
testcase_02 AC 39 ms
54,580 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 AC 38 ms
54,092 KB
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 AC 37 ms
54,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
a = Counter(map(int,input().split())).values()

if 2 in a and 3 in a:
    ans = "FULL HOUSE"
elif 3 in a:
    ans = "THREE CARD"
elif a.count(2) == 2:
    ans = "TWO PAIR"
elif a.count(2) == 1:    
    ans = "ONE PAIR"
else:
    ans = "NO HAND"

print(ans)
0