結果

問題 No.227 簡単ポーカー
ユーザー fV9TwBhUoa9S3eVfV9TwBhUoa9S3eV
提出日時 2019-09-18 09:44:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 391 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 10,688 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2023-09-22 03:10:03
合計ジャッジ時間 1,401 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,812 KB
testcase_01 AC 17 ms
7,780 KB
testcase_02 AC 17 ms
7,972 KB
testcase_03 AC 16 ms
7,772 KB
testcase_04 AC 17 ms
7,928 KB
testcase_05 AC 16 ms
7,772 KB
testcase_06 AC 17 ms
7,928 KB
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 16 ms
7,952 KB
testcase_10 AC 17 ms
7,940 KB
testcase_11 AC 16 ms
7,780 KB
testcase_12 RE -
testcase_13 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

# No.227 簡単ポーカー
cards = [int(i) for i in input().split()]
numbers = [0] * 13

for i in range(5):
    numbers[cards[i]] += 1

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