Advertisement
boris-vlasenko

70

Jan 13th, 2016
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. for x in range(1,100):
  2.     for y in range(1,100-x):
  3.         z = 100 - x - y
  4.         if 10*x+5*y+0.5*z <= 100:
  5.             print(x,y,z)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement