SHARE
TWEET

05ab1e explanation

a guest Jun 18th, 2018 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     g<°              # 10 to the power of: (Length of the input minus 1)
  2.                      #  i.e. 601 → 10**2 → 100
  3.        ©             # Store this value in the register (`b`)
  4.         ÷            # Integer-divide the input by this value
  5.                      #  i.e. 601 and 100 → 6
  6.          ¹®%9*       # Input modulo-`b` multiplied by 9
  7.                      #  i.e. 601 and 100 → 600%100*9 → 9
  8.               ®      # Push `b` to the stack again
  9.                O     # Sum the stack of these three values
  10.                      #  i.e. 6 and 9 and 100 → 115
  11.                 <    # And decrease this result by 1
  12.                      #  i.e. 115 - 1 → 114
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top