- 博客(8)
- 收藏
- 关注
原创 HDU 1023 (卡特兰数)
这个求卡特兰数我还是很晕 ,真菜鸟。不过 把参考的这个精简的代码拿过来留着吧。哎!#include#include#includeusing namespace std;int a[120][122];int b[130];int i,j,k,n;//求出前100个卡特兰数的模板 void catalan(){ int tem,len;
2015-05-27 14:26:45
287
原创 HDU 2602
Bone CollectorTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 37157 Accepted Submission(s): 15349Problem DescriptionMany year
2015-05-26 20:38:36
307
原创 HDU 1024
New~ 欢迎“热爱编程”的高考少年——报考杭州电子科技大学计算机学院 关于2015年杭电ACM暑期集训队的选拔 Max Sum Plus PlusTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1951
2015-05-26 20:07:49
449
原创 东大 1535
WenZhouTuHao is a very boring person(You will know who he is). There are n Building blocks. The blocks are number from 1 to n . For each i, the distance between the bottoms of Building blocks i and
2015-05-26 19:38:56
283
原创 HDU 1018
数学题,简单的,不过觉得这个思路值得学习 。//简单题意:求n!的的位数// n!=10^m log10(n!)=m ; 累加// log10() 函数 在cmath 头文件中#include #include using namespace std;int num;int n;double sum;int main(){ ci
2015-05-26 19:36:57
266
原创 求1到n的最小公倍数(要存储<M的素数)
求1到n的最小公倍数: 可能结果非常的大,要mo 1e9+71.首先打印 int prime[m+1]={0}; //素数表 int flag[m+1]={0}; //标志数组 for(int i=2;i { if( ! flag[i] ){ prime[ +
2015-05-26 18:56:01
2234
转载 HDU做题
1002 简单的大数1003 DP经典问题,最大连续子段和1004 简单题1005 找规律(循环点)1006 感觉有点BT的题,我到现在还没过1007 经典问题,最近点对问题,用分治1008 简单题1009 贪心1010 搜索题,剪枝很关键1011
2015-05-20 16:54:30
652
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人