恒邪

#

[置顶] 超有意思的小学编程题

摘要: 由于小学生所拥有的计算方法有限(他不会用函数,数组,循环,判断等一系列复杂语法结构)Problem E: 武功秘籍Time Limit: 1 SecMemory Limit: 128 MBDescription小明到X山洞探险,捡到一本有破损的武功秘籍(2000多页!当然是伪造的)。 他注意到:书的第10页和第11页在同一张纸上,但第11页和第12页不在同一张纸上 。小明只想练习该书的第a页到第b页的武功,又不想带着整本书。请问他至少要撕下多少张纸带走?Input有多组测试实例,输入小明想要练习的起始页a和末尾页b。(a 2 #include 3 using namespace std; 4. 阅读全文

posted @ 2014-04-04 19:39 恒邪 阅读(1837) 评论(0) 推荐(0) 编辑

2014年5月8日 #

Poj.Grids 2951 浮点数求高精度幂

摘要: 2951:浮点数求高精度幂总时间限制:1000ms内存限制:65536kB描述有一个实数 R ( 0.0 4 #include 5 #define SIZE 126 6 #define LEN 5 7 8 int a[SIZE],b[LEN]; 9 10 int mul( int alen,i... 阅读全文

posted @ 2014-05-08 15:56 恒邪 阅读(504) 评论(0) 推荐(0) 编辑

Last non-zero Digit in N!(阶乘最后非0位)

摘要: Last non-zero Digit in N!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 5861 Accepted Submissio... 阅读全文

posted @ 2014-05-08 15:19 恒邪 阅读(443) 评论(0) 推荐(0) 编辑

2014年5月5日 #

hdu acm 1166 敌兵布阵 (线段树)

摘要: 敌兵布阵Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 37903 Accepted Submission(s): 15985 Problem ... 阅读全文

posted @ 2014-05-05 20:23 恒邪 阅读(201) 评论(0) 推荐(0) 编辑

2014年5月4日 #

Alice and Bob(2013年山东省第四届ACM大学生程序设计竞赛)

摘要: Alice and BobTime Limit: 1000ms Memory limit: 65536K题目描述 Alice and Bob like playing games very much.Today, they introduce a new game. There is a polyn... 阅读全文

posted @ 2014-05-04 20:52 恒邪 阅读(206) 评论(0) 推荐(0) 编辑

2014年5月2日 #

hdu acm-1047 Integer Inquiry(大数相加)

摘要: Integer InquiryTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11678Accepted Submission(s): 2936Pr... 阅读全文

posted @ 2014-05-02 19:57 恒邪 阅读(204) 评论(0) 推荐(0) 编辑

POJ 2352 Stars(树状数组)

摘要: StarsTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 30496Accepted: 13316DescriptionAstronomers often examine star maps where stars are repre... 阅读全文

posted @ 2014-05-02 11:31 恒邪 阅读(160) 评论(0) 推荐(0) 编辑

2014年5月1日 #

hdu acm 1425 sort(哈希表思想)

摘要: sortTime Limit: 6000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 25803Accepted Submission(s): 7764Problem Descr... 阅读全文

posted @ 2014-05-01 11:57 恒邪 阅读(369) 评论(0) 推荐(0) 编辑

2014年4月30日 #

hdu acm 2082 找单词

摘要: 找单词Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3722Accepted Submission(s): 2663Problem Descrip... 阅读全文

posted @ 2014-04-30 19:13 恒邪 阅读(476) 评论(0) 推荐(0) 编辑

hdu acm 1028 数字拆分Ignatius and the Princess III

摘要: Ignatius and the Princess IIITime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11810Accepted Submiss... 阅读全文

posted @ 2014-04-30 16:10 恒邪 阅读(300) 评论(0) 推荐(0) 编辑

整理,模板

摘要: 组合数学、-排列组合数----sum求sum=sum*(m--)/i;int c(int n,int m)//n下标,m上标{ int sum=1; for(int i=1;in-m) m=n-m; int temp=n; for(int i=1;i1) { up[j]/=temp; d... 阅读全文

posted @ 2014-04-30 12:06 恒邪 阅读(199) 评论(0) 推荐(0) 编辑

导航