Advertisement
ayshan

Store

Apr 4th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. count = 0
  2. for a in range(14):
  3. for b in range(12):
  4. for c in range(9):
  5. if 185 == a*15+b*17+c*21:
  6. count += 1
  7. print(a,b,c)
  8. print('Всего способов - ', count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement