Skip to content

Instantly share code, notes, and snippets.

@nishio
Created September 2, 2010 06:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nishio/561961 to your computer and use it in GitHub Desktop.
Save nishio/561961 to your computer and use it in GitHub Desktop.
$ python
Python 2.6.5 (r265:79063, Jun 8 2010, 03:58:29)
[GCC 4.2.1 (Apple Inc. build 5659)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> si = sj = 1
>>> for si in range(1, 100):
... for sj in range(1, si):
... x = si - sj
... y = sj
... while x < 7110:
... x, y = y, x + y
... if y == 7110:
... print si, sj
...
70 16
86 70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment