Skip to content

Instantly share code, notes, and snippets.

@hwiorn
Last active December 17, 2015 19:39
Show Gist options
  • Save hwiorn/5661595 to your computer and use it in GitHub Desktop.
Save hwiorn/5661595 to your computer and use it in GitHub Desktop.
euler 9번 문제
for(b<-(2 to 999); a<-(b to 999); if(a + b < 1000 &&
math.pow(a, 2) + math.pow(b, 2) == math.pow(1000-a-b, 2)))
println(a * b * (1000-a-b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment