結果

問題 No.227 簡単ポーカー
ユーザー mmmm
提出日時 2021-11-19 11:24:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 328 bytes
コンパイル時間 462 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 7,956 KB
最終ジャッジ日時 2023-08-28 19:54:56
合計ジャッジ時間 1,605 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,824 KB
testcase_01 AC 16 ms
7,844 KB
testcase_02 AC 16 ms
7,872 KB
testcase_03 AC 15 ms
7,936 KB
testcase_04 AC 15 ms
7,956 KB
testcase_05 AC 15 ms
7,804 KB
testcase_06 AC 16 ms
7,836 KB
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 15 ms
7,932 KB
testcase_10 AC 16 ms
7,908 KB
testcase_11 AC 16 ms
7,860 KB
testcase_12 RE -
testcase_13 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

alist=list(map(int, input().split()))

result=[0]*13
for a in alist:
    result[a]=result[a]+1
two=result.count(2)
three=result.count(3)

if three==1:
    if two==1:
        print("FULL HOUSE")
    else:
        print("THREE CARD")
elif two==2:
    print("TWO PAIR")
elif two==1:
    print("ONE PAIR")
else:
    print("NO HAND")
0