pythagorean triplet
CodeChefOpen on judge ↗
chef has given three random number by his mother he has to identify wether the given 3 numbers are pythagorean triplet or not ? any number is pythagorean triplet if the square of addition of any two term is equal to square of 3rd term. for example: in given number 4 5 3 4^2 + 3^2 = 5^2 in above example it is triplet so if the given term is pythagorean triplet then print "YES" else print
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