Rosetta Problems

Sum of Hash of Lexmin

https://atcoder.jp/contests/agc068/tasks/agc068_d