結果

問題 No.227 簡単ポーカー
ユーザー zenito9970zenito9970
提出日時 2016-11-04 08:35:57
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 257 bytes
コンパイル時間 262 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 7,956 KB
最終ジャッジ日時 2023-08-16 13:23:00
合計ジャッジ時間 1,573 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,744 KB
testcase_01 AC 16 ms
7,884 KB
testcase_02 AC 15 ms
7,752 KB
testcase_03 AC 15 ms
7,764 KB
testcase_04 AC 16 ms
7,856 KB
testcase_05 AC 15 ms
7,764 KB
testcase_06 AC 15 ms
7,776 KB
testcase_07 AC 15 ms
7,800 KB
testcase_08 AC 15 ms
7,844 KB
testcase_09 AC 15 ms
7,820 KB
testcase_10 AC 15 ms
7,744 KB
testcase_11 AC 15 ms
7,956 KB
testcase_12 AC 15 ms
7,776 KB
testcase_13 AC 15 ms
7,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a = [int(n)-1 for n in input().split()]
cnt = [0]*13
for i in a:
    cnt[i] += 1
two = [n for n in cnt if n == 2]
three = [n for n in cnt if n == 3]
f = len(two)*2 + len(three)*3
print(["NO HAND", "", "ONE PAIR", "THREE CARD", "TWO PAIR", "FULL HOUSE"][f])
0