Cats Triangle
CodeChefOpen on judge ↗
Julia has three cats Meredith, Olivia and Lucy. Initially all three cats are at same s meters distance away from each other and Julia is standing in middle of all. Julia gives command "Start!" and each cat starts to run with constant speed v meters per second. At each moment, each cat is running towards the cat just right to her (in counter-clockwise direction) i.e. Meredith is running towards Oli
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