結果
| 問題 | No.227 簡単ポーカー |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-01 23:02:49 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 47 ms / 5,000 ms |
| コード長 | 382 bytes |
| コンパイル時間 | 772 ms |
| コンパイル使用メモリ | 82,388 KB |
| 実行使用メモリ | 55,300 KB |
| 最終ジャッジ日時 | 2024-10-01 23:02:52 |
| 合計ジャッジ時間 | 1,501 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
from collections import Counter
hand = list(map(int, input().split()))
cnt = Counter(hand)
if len(cnt) == 2 and sorted(cnt.values())==[2, 3]:
print('FULL HOUSE')
quit()
if 3 in cnt.values():
print('THREE CARD')
quit()
if sorted(cnt.values()) == [1, 2, 2]:
print('TWO PAIR')
quit()
if 2 in cnt.values():
print('ONE PAIR')
quit()
print('NO HAND')