← Back to List

20359번: A simple task ↗

Solutions

Python 3
71 B | 71 chars
n = int(input())
c = 0
while n % 2 == 0:
  n //= 2
  c += 1
print(n, c)