結果

問題 No.227 簡単ポーカー
ユーザー MamonboMamonbo
提出日時 2015-06-21 15:32:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 551 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 10,776 KB
実行使用メモリ 7,948 KB
最終ジャッジ日時 2023-09-21 22:40:46
合計ジャッジ時間 1,274 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,780 KB
testcase_01 AC 16 ms
7,776 KB
testcase_02 AC 16 ms
7,840 KB
testcase_03 AC 16 ms
7,772 KB
testcase_04 AC 16 ms
7,776 KB
testcase_05 AC 16 ms
7,788 KB
testcase_06 AC 16 ms
7,776 KB
testcase_07 AC 16 ms
7,876 KB
testcase_08 AC 16 ms
7,700 KB
testcase_09 AC 16 ms
7,948 KB
testcase_10 AC 16 ms
7,820 KB
testcase_11 AC 16 ms
7,824 KB
testcase_12 AC 16 ms
7,772 KB
testcase_13 AC 16 ms
7,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding=UTF-8

mojir=input()
hyo=mojir.split(" ")


deka=list(range(0,13,1))
for idx in range(0,13,1):
    deka[idx]=0
    
for mono in hyo:
    deka[int(mono)-1]=deka[int(mono)-1]+1
#    print(deka)

#sans et nis
sans=0
nis=0    
for idx in range(0,13,1):
    if deka[idx]==3:
        sans=sans+1
    if deka[idx]==2:
        nis=nis+1

if sans==1 and nis==1:
    print("FULL HOUSE")
elif sans==1:
    print("THREE CARD")
elif nis==2:
    print("TWO PAIR")
elif nis==1:
    print("ONE PAIR")
else:
    #ブタ(ブタじゃない)
    print("NO HAND")
0