Here are two positive integers n, M. please output n. what is the m-th bit from right to left of this number And output all the digits of n

CSDN Q & A 2022-01-15 02:24:05

Description
Here are two positive integers n, m. Please export n The of this number is... From right to left m What is the number of bits . And the output n All digits of .
Input
Two positive integers n, m. (0<=n<=1000000,1<=m<=70<=n<=1000000,1<=m<=7).
You can think that the input is legal data .
Output
The first line outputs n The of this number is... From right to left m position .
The second line outputs n Every one of them , Space separates the middle .
for example :
input:
233333 2
output:
3
2 3 3 3 3 3


thank
Similar articles

2022-01-15

2022-01-15