結果
| 問題 | No.227 簡単ポーカー |
| コンテスト | |
| ユーザー |
hiroga
|
| 提出日時 | 2017-12-29 07:13:36 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 5,000 ms |
| + 148µs | |
| コード長 | 362 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-10-11 04:45:39 |
| 合計ジャッジ時間 | 1,416 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 |
ソースコード
def main():
cards = input().split()
cards.sort()
hands = []
for card in set(cards):
hands.append(cards.count(card))
hands.sort(reverse=True)
if hands == [3,2]:
print("FULL HOUSE")
elif hands == [3,1,1]:
print("THREE CARD")
elif hands == [2,2,1]:
print("TWO PAIR")
elif hands == [2,1,1,1]:
print("ONE PAIR")
else:
print("NO HAND")
main()
hiroga