結果
| 問題 | No.227 簡単ポーカー | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2024-04-08 19:03:16 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 32 ms / 5,000 ms | 
| コード長 | 398 bytes | 
| コンパイル時間 | 350 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-10-01 10:32:49 | 
| 合計ジャッジ時間 | 1,199 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 14 | 
ソースコード
import collections
def main():
    count=collections.Counter(map(int,input().split()))
    num=list(count.values())
    if 3 in num and 2 in num:
        print("FULL HOUSE")
    elif 3 in num:
        print("THREE CARD")
    elif num.count(2) == 2:
        print("TWO PAIR")
    elif 2 in num:
        print("ONE PAIR")
    else:
        print("NO HAND")
if __name__ == "__main__":
    main()
    
            
            
            
        