結果
| 問題 | No.227 簡単ポーカー | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-01-05 19:03:25 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 44 ms / 5,000 ms | 
| コード長 | 397 bytes | 
| コンパイル時間 | 560 ms | 
| コンパイル使用メモリ | 82,440 KB | 
| 実行使用メモリ | 55,536 KB | 
| 最終ジャッジ日時 | 2024-11-06 05:47:42 | 
| 合計ジャッジ時間 | 1,582 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 14 | 
ソースコード
import collections
ls = list(map(int,input().split()))
cnt = list(collections.Counter(ls).values())
cnt.sort()
if2 = 0
if3 = 0
for i in cnt:
    if i == 2:
        if2 += 1
    elif i == 3:
        if3 += 1
if if3 == 1 and if2 == 1:
    print('FULL HOUSE')
elif if2 == 2:
    print('TWO PAIR')
elif if3 == 1:
    print('THREE CARD')
elif if2 == 1:
    print('ONE PAIR')
else:
    print('NO HAND')
            
            
            
        