杭电ACM1196题

#include<stdio.h>
int main()
{
	int n;
	while(scanf("%d",&n)!=EOF && n!=0)
	{
		int s=1;
		while(n%2==0)
		{
			s=s*2;
			n=n/2;
		}
		printf("%d\n",s);
	}
	return 0;
}

相关文章:

  • 2021-04-27
  • 2021-04-26
  • 2021-07-12
  • 2021-09-26
  • 2021-06-26
  • 2021-04-18
  • 2021-10-12
  • 2021-12-14
猜你喜欢
  • 2022-01-10
  • 2021-12-14
  • 2021-04-04
  • 2021-08-19
  • 2021-05-05
  • 2021-11-13
  • 2021-07-31
相关资源
相似解决方案