摘要:
两个数异或,相同为0;不同为1。再调用方法判断有几个1。 代码段: public class Hanshujiaohuan { public static int sun(int a) { int count=0; while(a>0) { if((a&1)==1) count++; a>>=1; 阅读全文
posted @ 2019-04-01 22:06
F会飞的猪
阅读(349)
评论(0)
推荐(0)
2019年4月1日