Tables on floor
CodeChefOpen on judge ↗
Marco is having two types of tables one is small and the other is large. He is having N number of small tables and M number of large tables in his room. The large tables are made of good quality and can hold upto two small tables on its top. He asked his friend Manish to go and count the number of legs of the table which are touching the floor of the room. Marco is curious to know whether the Man
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