dxnge

10

Oct 11th, 2021 (edited)
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. for g in range(1000, -1000, -1):
  2.   x = g
  3.   P = 0
  4.   S = 10*(x - x % 15)
  5.   i = 2
  6.   while i < 20:
  7.     S = S - 2*i
  8.     P = P + i
  9.     i = i + 2
  10.   if S == 270 and P == 90:
  11.     print(g)
  12.     break
Add Comment
Please, Sign In to add comment