結果
| 問題 | No.227 簡単ポーカー |
| コンテスト | |
| ユーザー |
deepjuggling
|
| 提出日時 | 2022-06-13 13:21:50 |
| 言語 | PyPy3 (7.3.23 + ac-library) |
| 結果 |
AC
不安定
|
| 実行時間 | 80 ms / 5,000 ms |
| + 324µs | |
| コード長 | 417 bytes |
| 記録 | |
| コンパイル時間 | 246 ms |
| コンパイル使用メモリ | 95,688 KB |
| 実行使用メモリ | 79,360 KB |
| 最終ジャッジ日時 | 2026-09-03 21:50:11 |
| 合計ジャッジ時間 | 2,681 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
ソースコード
from collections import Counter
a = list(map(int,input().split()))
a.sort()
x = Counter(a)
if len(x) == 2:
for i in x:
if x[i] == 3:
print("FULL HOUSE")
exit()
print("NO HAND")
elif len(x) == 3:
for i in x:
if x[i] == 3:
print("THREE CARD")
exit()
print("TWO PAIR")
elif len(x) == 4:
print("ONE PAIR")
else:
print("NO HAND")
deepjuggling