1925. Count Square Sum Triples
https://leetcode.com/problems/count-square-sum-triples
Description
A square triple (a,b,c)
is a triple where a
, b
, and c
are integers and a2 + b2 = c2
.
Given an integer n
, return the number of square triples such that 1 <= a, b, c <= n
.
Example 1:
Example 2:
Constraints:
1 <= n <= 250
ac
Last updated