結果
| 問題 | No.227 簡単ポーカー |
| コンテスト | |
| ユーザー |
deepjuggling
|
| 提出日時 | 2022-06-13 13:21:50 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 45 ms / 5,000 ms |
| コード長 | 417 bytes |
| コンパイル時間 | 213 ms |
| コンパイル使用メモリ | 82,368 KB |
| 実行使用メモリ | 53,888 KB |
| 最終ジャッジ日時 | 2024-09-25 06:59:39 |
| 合計ジャッジ時間 | 1,319 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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