NIKOLAY_TETUS

23 задание

Jun 23rd, 2021
600
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def F(x, y):
  2.     if x == y:
  3.         return 1;
  4.     elif x == 21:
  5.         return 0
  6.     elif x > y:
  7.         return 0
  8.  
  9.     return F(x + 1, y) + F(x * 3, y) + F(x * 4, y)
  10.  
  11.  
  12. print(F(2, 16) * F(16, 60))
  13.  
RAW Paste Data