Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from time import clock
- def hardwork(n):
- a, b = 1, 1
- for i in range(n):
- a, b = b, a + b
- return a
- def main():
- t = clock()
- hardwork(300000)
- print('Time is {}'.format(clock() - t))
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement