Problem : CodeChef: Practical coding for everyone
my solution : CodeChef: Practical coding for everyone
learned from : SNAKEEAT | Snack Eating | CodeChef SnackDown 2021 Practice Contest- Beginners | Problem Solution - YouTube
I have followed that youtube tutorial for this problem. Whatever is described, I tried to follow that. He has explained code in python, and I used to code in C++. I did the same thing, but getting TLE.
Please help me to figure out.