結果
| 問題 | No.227 簡単ポーカー | 
| コンテスト | |
| ユーザー |  hiroga | 
| 提出日時 | 2017-12-29 07:03:00 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 32 ms / 5,000 ms | 
| コード長 | 396 bytes | 
| コンパイル時間 | 133 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-12-21 09:50:42 | 
| 合計ジャッジ時間 | 1,146 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 14 | 
ソースコード
def main():
	cards = input().split()
	cards.sort()
	hands = [1]
	for i in range(4):
		if cards[i] == cards[i+1]:
			hands[-1]+=1
		else:
			hands.append(1)
	hands.sort(reverse=True)
	
	if hands == [3,2]:
		print("FULL HOUSE")
	elif hands == [3,1,1]:
		print("THREE CARD")
	elif hands == [2,2,1]:
		print("TWO PAIR")
	elif hands == [2,1,1,1]:
		print("ONE PAIR")
	else:
		print("NO HAND")
main()
            
            
            
        