← All problemsSign in

Chef and Angle

Chef has recently learnt the pythagoras theorem and is excited to play around with right angled triangles. However, he doesn’t like decimal point numbers and only wants to deal with integers. a^2 + b^2 = c^2 [see the image](https://drive.google.com/file/d/18lOp9g24Dwn2O7FBI77JWvr6gRZ-_W0w) Given an integer value for a^2, find the number of possible triangles that can be formed given constraints

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start