結果

問題 No.227 簡単ポーカー
コンテスト
ユーザー rocoder
提出日時 2017-05-11 03:17:12
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
RE  
実行時間 -
コード長 688 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 386 ms
コンパイル使用メモリ 20,696 KB
実行使用メモリ 20,572 KB
最終ジャッジ日時 2026-04-04 18:14:09
合計ジャッジ時間 3,238 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 WA * 2 RE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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