回答編集履歴

1

修正

2020/04/03 08:19

投稿

tiitoi
tiitoi

スコア21956

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