1 | #!/usr/bin/env python2 |
2 | """ |
3 | squares.py |
4 | """ |
5 | from __future__ import print_function |
6 | |
7 | import sys |
8 | |
9 | n = 1000 |
10 | x = 10000 |
11 | |
12 | def main(): |
13 | for i in xrange(n): |
14 | for j in xrange(i, n): |
15 | if i*i + j*j == x: |
16 | print(i, j) |
17 | |
18 | |
19 | if __name__ == '__main__': |
20 | main() |