Rosetta Problems

Sum of All Substrings

https://atcoder.jp/contests/abc379/tasks/abc379_e