Created
July 16, 2012 13:53
-
-
Save iizukak/3122846 to your computer and use it in GitHub Desktop.
project euler problem 9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #project euler problem 9 | |
| #auther @iizukak | |
| def pitag(): | |
| for a in range(1, 1001): | |
| for b in range(1, 1001): | |
| for c in range(1, 1001): | |
| if a + b + c == 1000: | |
| if a ** 2 + b ** 2 == c ** 2: | |
| return a * b * c | |
| print(pitag()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment