結果

問題 No.227 簡単ポーカー
ユーザー yohei-kuyohei-ku
提出日時 2018-03-28 00:19:16
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 616 bytes
コンパイル時間 50 ms
コンパイル使用メモリ 6,696 KB
実行使用メモリ 6,072 KB
最終ジャッジ日時 2023-09-07 19:14:23
合計ジャッジ時間 1,063 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,900 KB
testcase_01 AC 11 ms
5,976 KB
testcase_02 AC 11 ms
5,976 KB
testcase_03 RE -
testcase_04 AC 12 ms
5,932 KB
testcase_05 AC 12 ms
5,936 KB
testcase_06 AC 11 ms
6,008 KB
testcase_07 AC 11 ms
5,876 KB
testcase_08 AC 11 ms
6,016 KB
testcase_09 AC 10 ms
5,860 KB
testcase_10 AC 11 ms
6,072 KB
testcase_11 AC 11 ms
5,976 KB
testcase_12 RE -
testcase_13 AC 11 ms
5,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A=[]
first = raw_input()
for i in range(0,5):
    split_first = first.split()
    A.append(int(split_first[i]))
    
LL = list(set(A))

if len(set(A)) == 2:
    if A.count(LL[0]) == 2 or A.count(LL[0]) == 3:
        print 'FULL HOUSE'
    else:
        print 'NO HAND'
        
elif A.count(A[0]) == 3 or A.count(A[1]) == 3 or A.count(A[2]) ==3 or A.count(A[3]) == 3 or A.count(A[4]) == 3:
    print 'THREE CARD'
    
elif len(set(A)) == 3:
    if A.count(L[0]) <= 2 or A.count(L[1]) <= 2 or A.count(L[2]) <= 2:
        print 'TWO PAIR'
        
elif len(set(A)) == 4:
    print 'ONE PAIR'

else:
    print 'NO HAND'
0