Advertisement
chertila

six_andrey\

Nov 21st, 2023 (edited)
808
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.68 KB | None | 0 0
  1. def hvr(x, left, middle, right):
  2.     if x[1] == "HAML":
  3.         return left
  4.     if x[1] == "VHDL":
  5.         return middle
  6.     return right
  7.  
  8.  
  9. def mgc(x, left, middle, right):
  10.     if x[0] == "MUF":
  11.         return left
  12.     if x[0] == "GAP":
  13.         return middle
  14.     return right
  15.  
  16.  
  17. def df(x, left, middle, right):
  18.     if x[3] == "D":
  19.         return left
  20.     if x[3] == "FORTH":
  21.         return middle
  22.     return right
  23.  
  24.  
  25. def main(x):
  26.     if x[4] == 1974:
  27.         if x[2] == 1965:
  28.             return mgc(x, hvr(x, 0, 1, 2), df(x, 3, 4, 5), df(x, 6, 7, 8))
  29.     if x[4] == 2005:
  30.         if x[2] == 1965:
  31.             return mgc(x, hvr(x, 9, 10, 11), 12, 13)
  32.     return 14
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement