結果

問題 No.227 簡単ポーカー
ユーザー souta-1326souta-1326
提出日時 2020-11-02 23:36:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 277 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,584 KB
実行使用メモリ 8,620 KB
最終ジャッジ日時 2023-09-29 14:08:33
合計ジャッジ時間 1,099 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,608 KB
testcase_01 AC 18 ms
8,436 KB
testcase_02 AC 19 ms
8,516 KB
testcase_03 AC 19 ms
8,552 KB
testcase_04 AC 19 ms
8,468 KB
testcase_05 AC 18 ms
8,620 KB
testcase_06 AC 18 ms
8,524 KB
testcase_07 AC 18 ms
8,436 KB
testcase_08 AC 18 ms
8,456 KB
testcase_09 AC 18 ms
8,440 KB
testcase_10 AC 18 ms
8,600 KB
testcase_11 AC 18 ms
8,512 KB
testcase_12 AC 17 ms
8,588 KB
testcase_13 AC 18 ms
8,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections as col
a = list(col.Counter(list(map(int,input().split()))).values())
if 3 in a and 2 in a:
    print("FULL HOUSE")
elif 3 in a:
    print("THREE CARD")
elif a.count(2) == 2:
    print("TWO PAIR")
elif 2 in a:
    print("ONE PAIR")
else:
    print("NO HAND")
0