dxnge

tsk 20

Nov 4th, 2021
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. for i in range(1000, 0, -1):
  2.     a = i
  3.     R, L = 13, 0
  4.     while a >= R:
  5.         L += 1
  6.         a -= R
  7.     M = a
  8.     if M < L:
  9.         M =L
  10.         L = a
  11.     if L == 9 and M == 12:
  12.         print(i)
  13.         break
  14.  
Advertisement
Add Comment
Please, Sign In to add comment