結果
| 問題 | No.227 簡単ポーカー |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-06-19 22:46:07 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 20 ms / 5,000 ms |
| + 322µs | |
| コード長 | 561 bytes |
| 記録 | |
| コンパイル時間 | 177 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-10-11 02:58:44 |
| 合計ジャッジ時間 | 1,562 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 |
ソースコード
import collections
a = list(map(int, input().split()))
count = list(collections.Counter(a).values())
count.sort()
def is_full_house(count):
return count == [2, 3]
def is_three_card(count):
return count == [1, 1, 3]
def is_two_pair(count):
return count == [1, 2, 2]
def is_one_pair(count):
return count == [1, 1, 1, 2]
if is_full_house(count):
print('FULL HOUSE')
elif is_three_card(count):
print('THREE CARD')
elif is_two_pair(count):
print('TWO PAIR')
elif is_one_pair(count):
print('ONE PAIR')
else:
print('NO HAND')