Guest User

Untitled

a guest
Nov 21st, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. def coefTargetSum(R, X, Y):
  2. coefResult = []
  3. for x in range(R):
  4. for y in range(R):
  5. if x * X + y * Y == R:
  6. coefResult.extend([x, y])
  7. return coefResult
  8. return -1
Add Comment
Please, Sign In to add comment