結果
| 問題 | No.227 簡単ポーカー |
| コンテスト | |
| ユーザー |
nbisco
|
| 提出日時 | 2016-03-30 22:45:46 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 5,000 ms |
| + 80µs | |
| コード長 | 382 bytes |
| 記録 | |
| コンパイル時間 | 168 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-10-11 03:04:22 |
| 合計ジャッジ時間 | 1,477 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 |
ソースコード
#!/usr/bin/env python3
#fileencoding: utf-8
cards = {}
for i in [int(i) for i in input().strip().split(" ")]:
cards[i] = cards.get(i,0) + 1
hand = sorted(cards.values())
if hand == [2,3]:
print("FULL HOUSE")
elif hand == [1,1,3]:
print("THREE CARD")
elif hand == [1,2,2]:
print("TWO PAIR")
elif hand == [1,1,1,2]:
print("ONE PAIR")
else:
print("NO HAND")
nbisco