結果

問題 No.227 簡単ポーカー
ユーザー yaoshimaxyaoshimax
提出日時 2015-06-19 22:33:22
言語 Python2
(2.7.18)
結果
AC  
実行時間 10 ms / 5,000 ms
コード長 402 bytes
コンパイル時間 771 ms
コンパイル使用メモリ 6,568 KB
実行使用メモリ 6,068 KB
最終ジャッジ日時 2023-09-21 09:58:39
合計ジャッジ時間 1,045 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
5,876 KB
testcase_01 AC 10 ms
5,984 KB
testcase_02 AC 10 ms
5,844 KB
testcase_03 AC 10 ms
6,032 KB
testcase_04 AC 10 ms
5,980 KB
testcase_05 AC 10 ms
5,848 KB
testcase_06 AC 10 ms
5,864 KB
testcase_07 AC 10 ms
5,960 KB
testcase_08 AC 10 ms
5,892 KB
testcase_09 AC 10 ms
6,068 KB
testcase_10 AC 10 ms
5,912 KB
testcase_11 AC 10 ms
5,888 KB
testcase_12 AC 10 ms
5,840 KB
testcase_13 AC 10 ms
6,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A=map(int,raw_input().split())
num=[0 for i in range(14)]
n_3=0
n_2=0
for a in A:
    num[a]+=1
for i in range(14):
    if num[i]==2:
        n_2+=1
    if num[i]==3:
        n_3+=1
if n_3>0:
    if n_2>0:
        print "FULL HOUSE"
        exit()
    else:
        print "THREE CARD"
        exit()
if n_2>=2:
    print "TWO PAIR"
    exit()
if n_2>=1:
    print "ONE PAIR"
    exit()
print "NO HAND"
0