![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
poj
soul11201
这个作者很懒,什么都没留下…
展开
-
poj 2421 hdu 1102 Constructing Roads
因为用的前几次的代码input 和parent开的太小了,一直wa。 #include #include #include typedef struct{ int a,b; int len; int status; }Edge; Edge input[6000]; /******************************************************原创 2013-02-19 08:53:47 · 449 阅读 · 0 评论 -
hdu 1063 poj 1001 Exponentiation(幂)
将其转化为整数的大数乘法。 #include #include /********************************************************/ void rever(char *res){ // ????????? int res_len = strlen(res); for(int i = 1,j = 0;i < res_len;i +=原创 2013-02-18 16:07:40 · 482 阅读 · 0 评论 -
hdu 1316 poj 2413 how many Fibs
先前是怎么都过不了,后来打了一张斐波那契表就过了,。 #include #include char res[150],res_1[150],res_2[150]; char all_res[600][130]; int all_res_len[600]; int res_top = 0,res_fir_top,res_sec_top; int a_len,b_len; int原创 2013-02-17 20:38:01 · 773 阅读 · 0 评论 -
poj 1700 过河问题
参考blog: http://www.cnblogs.com/steady/archive/2011/01/23/1942555.html http://blog.csdn.net/wuzhekai1985/article/details/6846934 上面两篇blog都给出了该怎么做,而且非常详细,但是没给出为什么这么做。 我试着证明了一下,我感觉这个题的策略其实就原创 2013-06-21 13:33:59 · 895 阅读 · 0 评论