結果
| 問題 |
No.227 簡単ポーカー
|
| コンテスト | |
| ユーザー |
reforefo2
|
| 提出日時 | 2020-05-03 17:44:09 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 5,000 ms |
| コード長 | 400 bytes |
| コンパイル時間 | 95 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-13 01:17:08 |
| 合計ジャッジ時間 | 1,224 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
hand = list(map(int,input().split()))
handset = set(hand)
countlist = []
ans = "NO HAND"
for i in handset:
countlist.append(hand.count(i))
if 2 in countlist and 3 in countlist:
ans = "FULL HOUSE"
elif 3 in countlist and 2 not in countlist:
ans = "THREE CARD"
elif countlist.count(2) == 2:
ans = "TWO PAIR"
elif countlist.count(2) == 1:
ans = "ONE PAIR"
print(ans)
reforefo2