You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
976 B

  1. # def do(x):
  2. # e = x * 5
  3. # b = e * 6
  4. # c = b * 7
  5. # f = c * 1
  6. # d = c * f
  7. # return d * mul(d,e)
  8. #
  9. # def add(x ,k):
  10. # z = k * x
  11. # return do(x) + mul(x,z)
  12. #
  13. #
  14. # def mul(a,b):
  15. # return a * b
  16. #
  17. # def main():
  18. # x=365235
  19. # z=11876525
  20. # print(do(z) + add(x,x))
  21. ################################
  22. # def add(x ,k):
  23. # z = k * x
  24. # return 6 + mul(x,z)
  25. # def asdf(a,b):
  26. # d = b + b
  27. # c = a * d
  28. # e = c - a
  29. # return e * c
  30. #
  31. # def asdf(a,b):
  32. # c = a + b
  33. # e = c - a
  34. # f = e + b
  35. # g = f + 2
  36. # return g * a
  37. def doSomething(x ,k):
  38. z = k * x
  39. return 6 + mul(x,z)
  40. # def main(x,z):
  41. # out =
  42. def mul(a,b):
  43. return a * b
  44. def main():
  45. x=64341
  46. z=76548465
  47. print(mul(x,z) - doSomething(x,x))
  48. #
  49. # def mul(a,b):
  50. # return a * b
  51. #
  52. # def asdf(a):
  53. # b = a * a
  54. # c = 4 - b
  55. # d = 5 * c
  56. # return mul(d,c) / mul(b,b)
  57. if __name__ == '__main__':
  58. #pascal(8)
  59. main()