Time
Limit: 3000/1000 MS (Java/Others) Memory Limit:
32768/32768 K (Java/Others)
Total Submission(s):
626 Accepted Submission(s):
381
1 #include<stdio.h> 2 int main() 3 { 4 int m,n; 5 while(scanf("%d%d",&n,&m),n+m) 6 { n=1; 7 while(!(m&1)) m>>=1,n++; 8 printf("%d\n",n); 9 } 10 return 0; 11 }
原文:http://www.cnblogs.com/gongxijun/p/3615610.html