Hobby and Classes
CodeChefOpen on judge ↗
College students can figure out how much time will be wasted during the classes and how much time will be utilized if they stay at their hostel and continue their hobby with help of seniors. Students can be either at class or at hostel on one single day. Time spent will be accordingly. Now you have already calculated Ci, time spent in class on ith day and similarly Hi, time spent in hostel for ho
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