Alan And Frames
CodeChefOpen on judge ↗
In order to make his machine work, Alan Turing will have to attach circular rotors to it. He can attach the rotors with the help of metal frames. There are $N$ circular rotors , with radius R1, R2....RN. There are $S$ square frames and $C$ circular frames which he can use. You know their side lengths and radii respectively. Obviously, he can only use a frame for a rotor if the rotor can fit into
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