結果
| 問題 | No.227 簡単ポーカー | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-04-22 18:28:48 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 33 ms / 5,000 ms | 
| コード長 | 506 bytes | 
| コンパイル時間 | 88 ms | 
| コンパイル使用メモリ | 12,800 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-06-23 23:21:51 | 
| 合計ジャッジ時間 | 1,127 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 14 | 
ソースコード
def main():
    a, b, c, d, e = (int(x) for x in input().split( ))
    l = [a, b, c, d, e]
    l.sort()
    n_dic = {}
    for y in l:
        n_dic[y] = l.count(y)
    hand = list(n_dic.values())
    hand.sort()
    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')
if __name__ == "__main__":
    main()
        
            
            
            
        