256 D: Multiplication Table
I've been trying to solve this problem. I already read the editorial but it was too short for me to understand. Can anyone please explain how to solve this problem?
CF Edu Round 173 Solution Discussion