結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,584 KB
testcase_01 AC 68 ms
71,376 KB
testcase_02 AC 66 ms
71,236 KB
testcase_03 AC 68 ms
71,288 KB
testcase_04 AC 69 ms
71,140 KB
testcase_05 AC 70 ms
71,416 KB
testcase_06 AC 68 ms
71,396 KB
testcase_07 AC 68 ms
71,288 KB
testcase_08 AC 69 ms
71,336 KB
testcase_09 AC 68 ms
71,396 KB
testcase_10 AC 67 ms
71,224 KB
testcase_11 AC 68 ms
71,368 KB
testcase_12 AC 68 ms
71,084 KB
testcase_13 AC 68 ms
71,232 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