2013年12月1日

nyoj-最大素因子

摘要: 最大素因子时间限制:1000ms | 内存限制:65535KB难度:2描述GreyAnts最近正在学习数论中的素数,但是现在他遇到了一个难题:给定一个整数n,要求我们求出n的最大素因子的序数,例如:2的序数是1,3的序数是2,5的序数是3,以此类推. 研究数论是需要很大的耐心的,为了惩罚那些没有耐心读完题目的童鞋,我们规定:1的最大素因子序数是0.输入有多组测试数据,每一行输入一个数字n.(0<n<=1000000)输出在接下来的一行,输出结果.样例输入12345样例输出01213 阅读全文

posted @ 2013-12-01 22:57 chennmx 阅读(155) 评论(1) 推荐(0) 编辑

hdu1114-完全背包

摘要: Piggy-BankTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9141Accepted Submission(s): 4620Problem DescriptionBefore ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes f 阅读全文

posted @ 2013-12-01 19:42 chennmx 阅读(131) 评论(0) 推荐(0) 编辑

hdu2602-01背包

摘要: Bone CollectorTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 23108Accepted Submission(s): 9379Problem DescriptionMany years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such 阅读全文

posted @ 2013-12-01 19:27 chennmx 阅读(258) 评论(1) 推荐(0) 编辑

导航