dxnge

16

Oct 21st, 2021
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. print(1*8**3 + 1*8**2 + 4*8 + 6)
  2.  
  3.  
  4. x = int(input())
  5. a = 0; b = 1
  6. while x > 0:
  7.     if x % 2 > 0:
  8.         a += x % 8
  9.     else:
  10.         b *= x % 8
  11.     x = x // 8
  12. print(a, b)
Advertisement
Add Comment
Please, Sign In to add comment