Hi
I've explained the solution for problem D from today's contest in my YouTube video.
It was a nice math based problem, solved using tries. Code link will be added later in the video description.
I will be adding the video for C tomorrow.
If you want daily updates about my channel,
1. Subscribe to the channel.
2. Follow the facebook page.
Cheers!