Guest User

Untitled

a guest
Feb 27th, 2020
114
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from datetime import datetime
  2.  
  3. inicio = datetime.now()
  4. a, b, c = 0, 0, 0
  5. for l in range(30):
  6.     c += 1
  7.     c ** c
  8.     for j in range(30):
  9.         b += 1
  10.         b ** b
  11.         for k in range(10):
  12.             a += 1
  13.             a ** a
  14. print(a)
  15. final = datetime.now()
  16. print(final - inicio)
  17.  
  18. inicio = datetime.now()
  19. d, e, f = 0, 0, 0
  20. for l in range(30):
  21.     f += 1
  22.     f ** f
  23.     for j in range(10):
  24.         e += 1
  25.         e ** e
  26.         for k in range(30):
  27.             d += 1
  28.             d ** d
  29. print(d)
  30. final = datetime.now()
  31. print(final - inicio)
  32.  
  33. inicio = datetime.now()
  34. g, h, i = 0, 0, 0
  35. for l in range(10):
  36.     i += 1
  37.     i ** i
  38.     for j in range(30):
  39.         h += 1
  40.         h ** h
  41.         for k in range(30):
  42.             g += 1
  43.             g ** g
  44. print(g)
  45. final = datetime.now()
  46. print(final - inicio)
RAW Paste Data