标签:
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 4313 Accepted Submission(s):
2372
#include<stdio.h> int main() { int n; scanf("%d",&n); while(n--) { int a,c=0; scanf("%d",&a); while(a%2==0) { c++; a/=2; } printf("%d %d\n",a,c); } return 0; }
标签:
原文地址:http://www.cnblogs.com/a1225234/p/4677422.html