結果
| 問題 | No.227 簡単ポーカー |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-06-24 23:11:51 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 93 ms / 5,000 ms |
| + 783µs | |
| コード長 | 485 bytes |
| 記録 | |
| コンパイル時間 | 905 ms |
| コンパイル使用メモリ | 21,540 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-07-27 03:46:42 |
| 合計ジャッジ時間 | 3,363 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
L = list(map(int, input().split()))
dic = {}
for s in L:
if s in dic:
dic[s] = dic[s] + 1
else:
dic[s] = 1
def isTwoPair():
i = 0
for v in dic.values():
if 2 == v:
i+=1
return i == 2
if 3 in dic.values() and 2 in dic.values():
print('FULL HOUSE')
elif 3 in dic.values():
print('THREE CARD')
elif isTwoPair():
print('TWO PAIR')
elif 2 in dic.values():
print('ONE PAIR')
else:
print('NO HAND')