Sign in with email
Sign in with username
CCC '17 J2: Shifty Sum
Before reading the editorial, please make sure you've read the problem thoroughly multiple times and tried your best to solve it. Thanks!
Proceed to Editorial
You can just implement this trivially. Storing the input in some variable, set the sum to this value as well. Then, multiply the value by 10 and add to the sum `k` times.