結果

問題 No.227 簡単ポーカー
ユーザー naoe123naoe123
提出日時 2020-01-13 16:35:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 5,000 ms
コード長 284 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,564 KB
実行使用メモリ 8,596 KB
最終ジャッジ日時 2023-08-22 21:04:29
合計ジャッジ時間 1,161 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,408 KB
testcase_01 AC 19 ms
8,412 KB
testcase_02 AC 19 ms
8,456 KB
testcase_03 AC 19 ms
8,556 KB
testcase_04 AC 18 ms
8,412 KB
testcase_05 AC 18 ms
8,464 KB
testcase_06 AC 18 ms
8,496 KB
testcase_07 AC 18 ms
8,596 KB
testcase_08 AC 18 ms
8,448 KB
testcase_09 AC 18 ms
8,488 KB
testcase_10 AC 19 ms
8,412 KB
testcase_11 AC 19 ms
8,592 KB
testcase_12 AC 19 ms
8,588 KB
testcase_13 AC 18 ms
8,588 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections

A=list(map(int,input().split()))
c=collections.Counter(A)
l=list(c.values())

if 3 in l and 2 in l:
    print('FULL HOUSE')
elif 3 in l:
    print('THREE CARD')
elif l.count(2)==2:
    print('TWO PAIR')
elif 2 in l:
    print('ONE PAIR')
else:
    print('NO HAND')
0