結果

問題 No.227 簡単ポーカー
ユーザー convexineqconvexineq
提出日時 2020-12-29 06:51:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 290 bytes
コンパイル時間 698 ms
コンパイル使用メモリ 82,572 KB
実行使用メモリ 55,484 KB
最終ジャッジ日時 2024-04-15 06:00:36
合計ジャッジ時間 1,319 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
54,216 KB
testcase_01 AC 42 ms
53,952 KB
testcase_02 AC 41 ms
53,292 KB
testcase_03 AC 40 ms
54,056 KB
testcase_04 AC 38 ms
53,820 KB
testcase_05 AC 38 ms
53,848 KB
testcase_06 AC 38 ms
55,484 KB
testcase_07 AC 38 ms
53,812 KB
testcase_08 AC 39 ms
54,584 KB
testcase_09 AC 38 ms
53,764 KB
testcase_10 AC 39 ms
53,940 KB
testcase_11 AC 38 ms
54,104 KB
testcase_12 AC 38 ms
53,632 KB
testcase_13 AC 38 ms
55,448 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