Toast the Toasts !
CodeChefOpen on judge ↗
After coming from exam of EE 101 all were hungry and tired. Everyone went straight to the mess. On the counter was a very oily Bread roll. Hence Most of them preferred toast. As the toaster of the mess was broken today, students opted to toast their bread on the pan. 2 breads can only be toasted on the pan at a given time. Everyone is going to eat only a single slice of toasted bread today as they
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start