結果

問題 No.227 簡単ポーカー
ユーザー rocoderrocoder
提出日時 2017-05-11 03:17:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 688 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 10,808 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2023-10-13 10:20:18
合計ジャッジ時間 1,148 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

A=[int(i) for i in input().split()]
A.sort()
t=0
w=0
i=0
for i in range(3):
    if A[i]==A[i+1] and A[i+1]==A[i+2]:
        t=3
        for i in range(3):
            A.pop(i)
            i+=1
        if A[0]==A[1]:
            print ("FULL HOUSE")
        else:
            print ("THREE CARD")
    i+=1
j=0
if t==0:
    while w==0 and j <4:
        if A[j]==A[j+1]:
            w=1
            A.pop(j)
            A.pop(j)
            k=0
            for k in range(2):
                if A[k]==A[k+1]:
                    print ("TWO PAIR")
                    w=2
                k+=1
            if w==1:
               print ("ONE PAIR")
        j+=1
if w==0:
    print ("NO HAND")
0