Rolling Ball
CodeChefOpen on judge ↗
Chef was recently studying the rolling motion in physics and he found that whenever a ball is placed on a slant edge it starts rolling downwards. So, chef thought of implementing it in a program. But chef's coding is not that good. Please help chef in making a program where the program will take 2 co-ordinates(both end of edges in 2-D plane) named as A(x1,y1) and B(x2,y2) and also it will take th
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