Law of cosines - triples: Difference between revisions

m
Minor correction
(Added C++ solution)
m (Minor correction)
Line 460:
int c2 = a * a + b * b - a * b;
int c = isqrt(c2);
if ((c >!= a || c >!= b) && c <= max2 && c * c == c2)
++count;
}
1,777

edits