nq1s788

19-20 переход с вариантами

Mar 7th, 2026
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. def moves(a):
  2.     ret = [a - 1]
  3.     if a % 3 == 0:
  4.         ret.append(a // 3)
  5.     else:
  6.         ret.append(a - 2)
  7.     if a % 5 == 0:
  8.         ret.append(a // 5)
  9.     else:
  10.         ret.append(a - 3)
  11.     return ret
Advertisement
Add Comment
Please, Sign In to add comment