不要让昨天 占据你的今天 夏午晴天

夏午晴天

2017年2月27日

校赛-种树

摘要: /* 萌樱花的后院有n个树坑,所有树坑排列在一行上,每一个树坑都可以种一棵树,相邻树坑间的距离为1,现在所有的树坑都是空着的。 作为一只单身狗,他决定种上至少k棵树来保护环境。 为了让树苗宝宝健康快乐地生长,他要求任意两棵树之间的距离至少为m,请问这样种树的方案数是多少? 输入 1<=n,k,m<= 阅读全文

posted @ 2017-02-27 18:13 夏晴天 阅读(162) 评论(0) 推荐(0) 编辑

HDU_1022

摘要: 题目: As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains i 阅读全文

posted @ 2017-02-27 12:10 夏晴天 阅读(191) 评论(0) 推荐(0) 编辑

导航

Live2D