結果
| 問題 |
No.227 簡単ポーカー
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-05-11 10:27:09 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 323 bytes |
| コンパイル時間 | 110 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-28 03:53:27 |
| 合計ジャッジ時間 | 1,213 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 2 RE * 2 |
ソースコード
cs = map(int,input().split())
cd = {}
for c in cs:
if c in cd: cd[c] += 1
else: cd[c] = 1
cd = list(cd.values())
cd.sort(reverse=True)
if len(cd) == 5: print("NO PAIR")
elif cd[0] == cd[1]: print("TWO PAIR")
elif cd[0] == 2 : print("ONE PAIR")
elif 3 in cd and 2 in cd: print("FULL HOUSE")
else: print("THREE CARD")