結果

問題 No.227 簡単ポーカー
ユーザー c-yanc-yan
提出日時 2020-07-09 01:17:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 358 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-15 12:45:47
合計ジャッジ時間 1,203 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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

d = {}
for a in A:
    d.setdefault(a, 0)
    d[a] += 1

if len(d) == 2 and sorted(d.values()) == [2, 3]:
    print('FULL HOUSE')
elif 3 in d.values():
    print('THREE CARD')
if len(d) == 3 and sorted(d.values()) == [1, 2, 2]:
    print('TWO PAIR')
elif 2 in d.values():
    print('ONE PAIR')
else:
    print('NO HAND')
0