結果
| 問題 | No.227 簡単ポーカー | 
| コンテスト | |
| ユーザー |  nbisco | 
| 提出日時 | 2016-03-30 22:45:46 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 33 ms / 5,000 ms | 
| コード長 | 382 bytes | 
| コンパイル時間 | 98 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-10-02 08:17:40 | 
| 合計ジャッジ時間 | 1,193 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 14 | 
ソースコード
#!/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")
            
            
            
        