public static int getOne(int n){ if(n <2){ return n; }else{ return ((n % 2)+getOne(n/2)); } }
posted on 2015-03-28 16:20 爱踢小菜 阅读(199) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 爱踢小菜 Powered by .NET 9.0 on Kubernetes