会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lz亢龙有悔
2014年12月28日
《算法竞赛入门经典》第二章 2.3
摘要: 程序2-7 略去程序2-8 1 #define LOCAL 2 #include 3 #define INF 100000000 4 int main() 5 { 6 #ifdef LOCAL 7 freopen("data.in","r",stdin); 8 freope...
阅读全文
posted @ 2014-12-28 13:00 lz亢龙有悔
阅读(117)
评论(0)
推荐(0)
《算法竞赛入门经典》第二章 2.4
摘要: 任务1: 1 #include 2 int main() 3 { 4 int i, n; 5 scanf("%d",&n); 6 for(i = 1; i 2 int main() 3 { 4 int i, n; 5 scanf("%d",&n); 6 ...
阅读全文
posted @ 2014-12-28 12:52 lz亢龙有悔
阅读(168)
评论(0)
推荐(0)
《算法竞赛入门经典》第二章 2.2
摘要: 程序2-4 1 #include 2 #include 3 int main() 4 { 5 int n, count = 0; 6 scanf("%d",&n); 7 while(n>1) 8 { 9 if(n % 2 ==1) n = 3*n +1...
阅读全文
posted @ 2014-12-28 00:17 lz亢龙有悔
阅读(132)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告