結果

問題 No.227 簡単ポーカー
ユーザー yomo3yomo3
提出日時 2020-01-22 14:03:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 5,000 ms
コード長 279 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 10,728 KB
実行使用メモリ 8,604 KB
最終ジャッジ日時 2023-09-22 08:25:31
合計ジャッジ時間 1,132 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,456 KB
testcase_01 AC 21 ms
8,480 KB
testcase_02 AC 19 ms
8,452 KB
testcase_03 AC 20 ms
8,464 KB
testcase_04 AC 20 ms
8,416 KB
testcase_05 AC 19 ms
8,488 KB
testcase_06 AC 19 ms
8,564 KB
testcase_07 AC 19 ms
8,392 KB
testcase_08 AC 19 ms
8,536 KB
testcase_09 AC 19 ms
8,556 KB
testcase_10 AC 20 ms
8,448 KB
testcase_11 AC 19 ms
8,552 KB
testcase_12 AC 20 ms
8,496 KB
testcase_13 AC 19 ms
8,604 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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