結果
問題 | No.227 簡単ポーカー |
ユーザー | brthyyjp |
提出日時 | 2021-02-25 20:33:01 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 43 ms / 5,000 ms |
コード長 | 513 bytes |
コンパイル時間 | 171 ms |
コンパイル使用メモリ | 81,700 KB |
実行使用メモリ | 55,612 KB |
最終ジャッジ日時 | 2024-04-08 20:53:39 |
合計ジャッジ時間 | 1,439 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 41 ms
53,460 KB |
testcase_01 | AC | 43 ms
53,460 KB |
testcase_02 | AC | 43 ms
55,612 KB |
testcase_03 | AC | 39 ms
53,460 KB |
testcase_04 | AC | 39 ms
53,460 KB |
testcase_05 | AC | 40 ms
53,460 KB |
testcase_06 | AC | 38 ms
53,460 KB |
testcase_07 | AC | 41 ms
53,460 KB |
testcase_08 | AC | 40 ms
53,460 KB |
testcase_09 | AC | 40 ms
53,460 KB |
testcase_10 | AC | 43 ms
53,460 KB |
testcase_11 | AC | 40 ms
53,460 KB |
testcase_12 | AC | 40 ms
53,460 KB |
testcase_13 | AC | 41 ms
53,460 KB |
ソースコード
A = list(map(int, input().split())) from collections import Counter C = Counter(A) C = list(C.items()) C.sort(key=lambda x: x[1]) if len(C) == 2: if C[0][1] == 2 and C[1][1] == 3: print('FULL HOUSE') exit() else: if len(C) == 3: if C[2][1] == 3: print('THREE CARD') exit() elif C[2][1] == 2: print('TWO PAIR') exit() else: if C[len(C)-1][1] == 2: print('ONE PAIR') exit() print('NO HAND')