fork(1) download
  1. def f(n): return 420 / n
  2.  
  3. a = f(2) + f(3) + f(5) + f(7)
  4. b = f(2*3) + f(2*5) + f(2*7) + f(3*5) + f(3*7) + f(5*7)
  5. c = f(2*3*5) + f(2*3*7) + f(2*5*7) + f(3*5*7)
  6. d = f(2*3*5*7)
  7. x = a - b + c - d
  8. X = 420 - x
  9.  
  10. print("a =",a)
  11. print("b =",b)
  12. print("c =",c)
  13. print("d =",d)
  14. print("x =",x)
  15. print("X =",X)
Success #stdin #stdout 0.03s 9180KB
stdin
Standard input is empty
stdout
a = 494.0
b = 202.0
c = 34.0
d = 2.0
x = 324.0
X = 96.0