結果
問題 |
No.227 簡単ポーカー
|
ユーザー |
|
提出日時 | 2025-01-06 17:53:16 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 5,000 ms |
コード長 | 378 bytes |
コンパイル時間 | 242 ms |
コンパイル使用メモリ | 82,600 KB |
実行使用メモリ | 53,980 KB |
最終ジャッジ日時 | 2025-01-06 17:53:18 |
合計ジャッジ時間 | 1,823 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
a=list(map(int,input().split())) d={} for i in a: if i in d: d[i]+=1 else: d[i]=1 sorted_d=sorted(d.items(),key=lambda x:x[1],reverse=True) if sorted_d[0][1]==3: if sorted_d[1][1]==2: print("FULL HOUSE") else: print("THREE CARD") elif sorted_d[0][1]==2: if sorted_d[1][1]==2: print("TWO PAIR") else: print("ONE PAIR") else: print("NO HAND")