Help on 118B
My submission was told wrong but answer seems right.
CF Edu Round 173 Solution Discussion