Created
September 2, 2010 06:33
-
-
Save nishio/561961 to your computer and use it in GitHub Desktop.
This file contains 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
$ 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