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.

80 lines
1.2 KiB

  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. ##############################
  38. # def doSomething(x ,k):
  39. # z = k * x
  40. # return 6 + mul(x,z)
  41. #
  42. # def mul(a,b):
  43. # return a * b
  44. #
  45. # def main():
  46. # x=64341
  47. # z=76548465
  48. #
  49. # print(mul(x,z) - doSomething(x,x))
  50. #######################
  51. #
  52. # def mul(a,b):
  53. # return a * b
  54. #
  55. # def asdf(a):
  56. # b = a * a
  57. # c = 4 - b
  58. # d = 5 * c
  59. # return mul(d,c) / mul(b,b)
  60. ############################
  61. def go(a,b,c,d):
  62. e = a * b
  63. f = c * d
  64. g = e * f
  65. h = g / e
  66. i = h * 5
  67. return g * i
  68. def main():
  69. print(go(3,5,7,11))
  70. if __name__ == '__main__':
  71. #pascal(8)
  72. main()