会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
人生如逆旅,我亦是行人。
博客园
首页
新随笔
联系
订阅
管理
2018年4月2日
算法(六) 常见算法题
摘要: 1、喝汽水问题。每7个汽水瓶可以换一瓶汽水,输入为n瓶汽水,求得最后能喝到多少瓶汽水 public static int count(int n){ return n+emptyCount(n); } public static int emptyCount(int m) { int empty;
阅读全文
posted @ 2018-04-02 15:05 情歌z
阅读(160)
评论(0)
推荐(0)
编辑
公告