1926C - Влад и сумма сумм цифр i couldn't find optimal solution in the contest for this problem so after the contest i looked at editorial and it was actually easy. but i tried some submissions and i get TLE 2.
247790985 please look at this submission which i get tle 2