結果
| 問題 | No.227 簡単ポーカー |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-17 23:20:50 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 5,000 ms |
| コード長 | 435 bytes |
| 記録 | |
| コンパイル時間 | 321 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 53,888 KB |
| 最終ジャッジ日時 | 2026-04-18 06:17:24 |
| 合計ジャッジ時間 | 1,827 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
A = list(map(int,input().split()))
from collections import defaultdict
d = defaultdict(int)
for a in A:
d[a] += 1
l = sorted(d.values())
import sys
N = "NO HAND"
if len(l) == 1:
print(N)
exit()
if l[0] == 2 and l[1] == 3:
print('FULL HOUSE')
exit()
if l[-1] == 3:
print("THREE CARD")
exit()
if l[-1] == 2 and l[-2] == 2:
print("TWO PAIR")
exit()
if 2 in l:
print("ONE PAIR")
exit()
print(N)