Written by Rubaiat
on
on
Lightoj problem 1069 Lift solution
Problem source: LightOJ
Problem no: 1069-Lift
This is not a tough problem, just slightly tricky. I’ve commented out some error prone codes to demonstrate the tricky section.
I suggest you to try the problem yourself first. You should only see the solution when you’re certain that you can’t solve it. Below is the code I’ve written and used.
You should watch the code carefully and understand every bit of it. Try tweaking the logic and shorten the code. Feel free to educate yourself from google.