結果

問題 No.227 簡単ポーカー
ユーザー 👑 もぐら 3.0もぐら 3.0
提出日時 2023-11-13 07:34:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 5,000 ms
コード長 373 bytes
コンパイル時間 337 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 53,460 KB
最終ジャッジ日時 2023-11-13 07:34:03
合計ジャッジ時間 2,126 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,460 KB
testcase_01 AC 38 ms
53,460 KB
testcase_02 AC 43 ms
53,460 KB
testcase_03 AC 38 ms
53,460 KB
testcase_04 AC 38 ms
53,460 KB
testcase_05 AC 38 ms
53,460 KB
testcase_06 AC 38 ms
53,460 KB
testcase_07 AC 37 ms
53,460 KB
testcase_08 AC 37 ms
53,460 KB
testcase_09 AC 37 ms
53,460 KB
testcase_10 AC 38 ms
53,460 KB
testcase_11 AC 38 ms
53,460 KB
testcase_12 AC 37 ms
53,460 KB
testcase_13 AC 38 ms
53,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A=list(map(int,input().split()))
counter=[0]*13

for i in A:
    counter[i-1]+=1

final=[0]*2
for n in counter:
    if n==3:
        final[1]+=1
    elif n==2:
        final[0]+=1

if final==[1,1]:
    print("FULL HOUSE")
elif final==[0,1]:
    print("THREE CARD")
elif final==[2,0]:
    print("TWO PAIR")
elif final==[1,0]:
    print("ONE PAIR")
else:
    print("NO HAND")
0