Skip to main content
added 69 characters in body
Source Link
ElPedro
  • 6.5k
  • 2
  • 26
  • 39

Python 2, 105 8282 81 bytes

i,x=map(int,input()),1 for y in i[:0:-1]: if i[0]%10>=yi[0]%10<y:i[0]+=yx=0 else:x=0i[0]+=y print x 

Try it online!Try it online!

Many thanks for a massive -23 from @ØrjanJohansen

Thanks to @VedantKandoi (and @ØrjanJohansen) for another -1

Python 2, 105 82 bytes

i,x=map(int,input()),1 for y in i[:0:-1]: if i[0]%10>=y:i[0]+=y else:x=0 print x 

Try it online!

Many thanks for a massive -23 from @ØrjanJohansen

Python 2, 105 82 81 bytes

i,x=map(int,input()),1 for y in i[:0:-1]: if i[0]%10<y:x=0 else:i[0]+=y print x 

Try it online!

Many thanks for a massive -23 from @ØrjanJohansen

Thanks to @VedantKandoi (and @ØrjanJohansen) for another -1

deleted 24 characters in body
Source Link
ElPedro
  • 6.5k
  • 2
  • 26
  • 39

Python 2, 105105 82 bytes

i,x=map(int,input()),1 whilefor len(i)>1andy xin i[:0:-1]: if i[0]>=i[-1]:i=[(i[0]+i[-1])%10]+i[1i[0]%10>=y:-1]i[0]+=y else:x=0 print x 

Try it online!Try it online!

Feels like itMany thanks for a massive could should be shorter.-23 from @ØrjanJohansen

Python 2, 105 bytes

i,x=map(int,input()),1 while len(i)>1and x: if i[0]>=i[-1]:i=[(i[0]+i[-1])%10]+i[1:-1] else:x=0 print x 

Try it online!

Feels like it could should be shorter.

Python 2, 105 82 bytes

i,x=map(int,input()),1 for y in i[:0:-1]: if i[0]%10>=y:i[0]+=y else:x=0 print x 

Try it online!

Many thanks for a massive -23 from @ØrjanJohansen

Source Link
ElPedro
  • 6.5k
  • 2
  • 26
  • 39

Python 2, 105 bytes

i,x=map(int,input()),1 while len(i)>1and x: if i[0]>=i[-1]:i=[(i[0]+i[-1])%10]+i[1:-1] else:x=0 print x 

Try it online!

Feels like it could should be shorter.