摘要: 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) 编辑