上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 94 下一页

2013年9月8日

HDU 4715 Difference Between Primes

摘要: Difference Between PrimesTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 338Accepted Submission(s): 78Problem DescriptionAll you know Goldbach conjecture.That is to say, Every even integer greater than 2 can be expressed as the sum of two primes. T 阅读全文

posted @ 2013-09-08 19:51 kuangbin 阅读(699) 评论(0) 推荐(0) 编辑

HDU 4710 Balls Rearrangement

摘要: Balls RearrangementTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 93Accepted Submission(s): 35Problem DescriptionBob has N balls and A boxes. He numbers the balls from 0 to N-1, and numbers the boxes from 0 to A-1. To find the balls easily, he put 阅读全文

posted @ 2013-09-08 19:48 kuangbin 阅读(500) 评论(0) 推荐(0) 编辑

HDU 4709 Herding (枚举)

摘要: HerdingTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 415Accepted Submission(s): 59Problem DescriptionLittle John is herding his father's cattles. As a lazy boy, he cannot tolerate chasing the cattles all the time to avoid unnecessary omission 阅读全文

posted @ 2013-09-08 19:47 kuangbin 阅读(838) 评论(0) 推荐(0) 编辑

HDU 4708 Rotation Lock Puzzle (简单题)

摘要: Rotation Lock PuzzleTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 290Accepted Submission(s): 60Problem DescriptionAlice was felling into a cave. She found a strange door with a number square matrix. These numbers can be rotated around the center 阅读全文

posted @ 2013-09-08 19:46 kuangbin 阅读(1069) 评论(0) 推荐(0) 编辑

HDU 4707 Pet (水题)

摘要: PetTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 181Accepted Submission(s): 55Problem DescriptionOne day, Lin Ji wake up in the morning and found that his pethamster escaped. He searched in the room but didn’t find the hamster. He tried to use so 阅读全文

posted @ 2013-09-08 19:44 kuangbin 阅读(1696) 评论(0) 推荐(0) 编辑

HDU 4706 Children's Day (水题)

摘要: Children's DayTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 158Accepted Submission(s): 72Problem DescriptionToday is Children's Day. Some children ask you to output a big letter 'N'. 'N' is constituted by two vertical line 阅读全文

posted @ 2013-09-08 19:42 kuangbin 阅读(843) 评论(0) 推荐(0) 编辑

ZOJ 2112 Dynamic Rankings (动态第k大,树状数组套主席树)

摘要: Dynamic RankingsTime Limit:10 Seconds Memory Limit:32768 KBThe Company Dynamic Rankings has developed a new kind of computer that is no longer satisfied with the query like to simply find the k-th smallest number of the given N numbers. They have developed a more powerful system such that for N numb 阅读全文

posted @ 2013-09-08 10:32 kuangbin 阅读(6400) 评论(0) 推荐(2) 编辑

2013年9月7日

SPOJ 10628. Count on a tree (树上第k大,LCA+主席树)

摘要: 10628. Count on a treeProblem code: COTYou are given a tree withNnodes.The tree nodes are numbered from1toN.Each node has an integer weight.We will ask you to perform the following operation:u v k: ask for the kth minimum weight on the path from nodeuto nodevInputIn the first line there are two inte 阅读全文

posted @ 2013-09-07 07:42 kuangbin 阅读(2072) 评论(0) 推荐(0) 编辑

2013年9月6日

SPOJ 3267. D-query (主席树,查询区间有多少个不相同的数)

摘要: 3267. D-queryProblem code: DQUERYEnglishVietnameseGiven a sequence of n numbers a1, a2, ..., anand a number of d-queries. A d-query is a pair (i, j) (1 ≤ i ≤ j ≤ n). For each d-query (i, j), you have to return the number of distinct elements in the subsequence ai, ai+1, ..., aj.InputLine 1: n (1 ≤ n 阅读全文

posted @ 2013-09-06 12:15 kuangbin 阅读(2468) 评论(0) 推荐(0) 编辑

2013年9月5日

POJ 2104 && POJ 2761 (静态区间第k大,主席树)

摘要: 查询区间第K大,而且没有修改。使用划分树是可以做的。作为主席树的入门题,感觉太神奇了,Orz 1 /* *********************************************** 2 Author :kuangbin 3 Created Time :2013-9-4 20:13:20 4 File Name :POJ2104.cpp 5 ************************************************ */ 6 7 #include 8 #include 9 #include 10 #incl... 阅读全文

posted @ 2013-09-05 10:29 kuangbin 阅读(3771) 评论(0) 推荐(0) 编辑

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 94 下一页

导航

JAVASCRIPT: