結果
| 問題 | No.227 簡単ポーカー |
| コンテスト | |
| ユーザー |
nbisco
|
| 提出日時 | 2016-03-30 22:45:46 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 16 ms / 5,000 ms |
| + 496µs | |
| コード長 | 382 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 14,720 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2026-11-12 00:03:18 |
| 合計ジャッジ時間 | 1,664 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
ソースコード
#!/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