回答編集履歴
1
修正
test
CHANGED
@@ -52,8 +52,8 @@
|
|
52
52
|
|
53
53
|
cnt = Counter(ret)
|
54
54
|
|
55
|
-
ret_str = "
|
55
|
+
ret_str = " * ".join(f"{k}^{v}" for k, v in cnt.items())
|
56
56
|
|
57
|
-
print(f"{n} = {ret_str}") # 2^3
|
57
|
+
print(f"{n} = {ret_str}") # 2^3 * 3^1 * 5^1
|
58
58
|
|
59
59
|
```
|