結果

問題 No.227 簡単ポーカー
ユーザー aqua_tenhouaqua_tenhou
提出日時 2021-08-01 22:42:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 5,000 ms
コード長 258 bytes
コンパイル時間 312 ms
コンパイル使用メモリ 87,036 KB
実行使用メモリ 71,356 KB
最終ジャッジ日時 2023-10-14 19:03:59
合計ジャッジ時間 2,229 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,332 KB
testcase_01 AC 71 ms
71,044 KB
testcase_02 AC 71 ms
71,044 KB
testcase_03 AC 71 ms
71,252 KB
testcase_04 AC 73 ms
71,328 KB
testcase_05 AC 71 ms
71,336 KB
testcase_06 AC 71 ms
70,944 KB
testcase_07 AC 70 ms
71,356 KB
testcase_08 AC 70 ms
71,336 KB
testcase_09 AC 67 ms
70,984 KB
testcase_10 AC 67 ms
70,820 KB
testcase_11 AC 68 ms
71,004 KB
testcase_12 AC 68 ms
71,160 KB
testcase_13 AC 68 ms
71,040 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