Empty flat
CodeChefOpen on judge ↗
Daily, Meena leaves for his office at 10 am. On his way sees a building of $N$ with $F$ flats on each floor. Meena loves this building so much. He wants to buy a flat in this building. Daily he thinks of enquiring about any empty flats in that building, but he is unable to find time from his busy schedule. After a few days, he notices that some windows are open while some are always closed in the
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