結果
| 問題 |
No.227 簡単ポーカー
|
| コンテスト | |
| ユーザー |
deepjuggling
|
| 提出日時 | 2022-06-13 13:17:24 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 326 bytes |
| コンパイル時間 | 172 ms |
| コンパイル使用メモリ | 82,224 KB |
| 実行使用メモリ | 54,384 KB |
| 最終ジャッジ日時 | 2024-09-25 06:55:00 |
| 合計ジャッジ時間 | 1,377 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 WA * 1 |
ソースコード
from collections import Counter
a = list(map(int,input().split()))
a.sort()
x = Counter(a)
if len(x) == 2:
print("FULL HOUSE")
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