会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
黄牛
博客园
首页
新随笔
联系
订阅
管理
2012年11月19日
problem 14
摘要: 1 #include"pub.h" 2 #include <map> 3 4 long cnt=0; 5 map<long,long> mp; 6 long collatz(long n) 7 { 8 if(mp.find(n)!=mp.end()) 9 return mp[n];10 else11 {12 if(n<=1)13 {14 return 1;15 }16 else17 {18 if(n&1)19 ...
阅读全文
posted @ 2012-11-19 16:19 黄牛
阅读(198)
评论(0)
推荐(0)
编辑
公告