結果

問題 No.227 簡単ポーカー
ユーザー aqua_tenhouaqua_tenhou
提出日時 2021-08-01 22:42:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 5,000 ms
コード長 258 bytes
コンパイル時間 318 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 71,508 KB
最終ジャッジ日時 2023-10-14 19:04:04
合計ジャッジ時間 2,155 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,304 KB
testcase_01 AC 71 ms
71,192 KB
testcase_02 AC 71 ms
71,508 KB
testcase_03 AC 71 ms
71,220 KB
testcase_04 AC 69 ms
71,304 KB
testcase_05 AC 72 ms
71,428 KB
testcase_06 AC 72 ms
71,356 KB
testcase_07 AC 69 ms
71,364 KB
testcase_08 AC 72 ms
71,352 KB
testcase_09 AC 72 ms
71,316 KB
testcase_10 AC 72 ms
71,312 KB
testcase_11 AC 69 ms
71,096 KB
testcase_12 AC 70 ms
71,372 KB
testcase_13 AC 70 ms
71,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a = list(map(int,input().split())) 

d = [0]*6

for i in range(1,14):
    l = a.count(i)
    d[l] += 1

if d[3] and d[2]: print("FULL HOUSE")
elif d[3]: print("THREE CARD")
elif d[2] == 2: print("TWO PAIR")
elif d[2]: print("ONE PAIR")
else: print("NO HAND")
0