D - Triangle Count
CodeChefOpen on judge ↗
You are given an equilateral triangle $ΔABC$ with the side $BC$ being the base. Each side of the triangle is of length $L$. There are $L-1$ additional points on each of the sides dividing the sides into equal parts of unit lengths. Points on the sides of the triangle are called **major** points. Joining these points with lines parallel to the sides of $ΔABC$ will produce some more equilateral tria
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