Chefu and Tiles
CodeChefOpen on judge ↗
Chefu is an interior designer and often gets a contract to decorate the floor of the house with tiles. Chefu is in demand because of his unusual design.If $N$ is the total no of tiles required for the floor, for every $i\leq N$ where i and N are co-prime,Chefu puts a Black tile or else White tile. As Chefu is in demand, he want u to help him with number of Black tile needed for the floor. Inp
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