Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 061e659cfb
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.28 kb
package main
import "fmt"
func main() {
for a := 1; a < 333; a++ {
for b := a + 1; b < (1000-a-b); b++ {
c := 1000 - b - a
if a*a + b*b == c*c {
fmt.Printf("%v\n", a*b*c)
return
}
}
}
}
Jump to Line
Something went wrong with that request. Please try again.