結果

問題 No.227 簡単ポーカー
ユーザー TwizzTwizz
提出日時 2017-02-21 20:35:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 412 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 10,960 KB
実行使用メモリ 7,924 KB
最終ジャッジ日時 2023-08-28 23:37:31
合計ジャッジ時間 1,143 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,872 KB
testcase_01 AC 15 ms
7,908 KB
testcase_02 WA -
testcase_03 AC 15 ms
7,880 KB
testcase_04 AC 16 ms
7,868 KB
testcase_05 AC 16 ms
7,876 KB
testcase_06 AC 16 ms
7,732 KB
testcase_07 AC 15 ms
7,924 KB
testcase_08 AC 15 ms
7,736 KB
testcase_09 AC 15 ms
7,832 KB
testcase_10 AC 15 ms
7,884 KB
testcase_11 AC 14 ms
7,848 KB
testcase_12 AC 15 ms
7,744 KB
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N=list(map(int,input().split()))
flag2=0
flag3=0

for i in range(1,14):
    count=N.count(i)
    if count==2:
        flag2+=1
    elif count==3:
        flag3=1

if flag2==1 and flag3==1:
    print("FULL HOUSE")
elif flag2==0 and flag3==1:
    print("TREE CARD")
elif flag2==2 and flag3==0:
    print("TWO PAIR")
elif flag2==1 and flag3==0:
    print("ONE PAIR")
elif flag2==0 and flag3==0:
    print("NO HAND")
0