上一页 1 ··· 67 68 69 70 71 72 73 74 75 ··· 94 下一页

2012年4月13日

POJ 2208 Pyramids(欧拉四面体公式)

摘要: PyramidsTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 2268Accepted: 751Special JudgeDescriptionRecently in Farland, a country in Asia, a famous scientist Mr. Log Archeo has discovered ancient pyramids. But unlike those in Egypt and Central America, they have triangular (not rectangular) f 阅读全文

posted @ 2012-04-13 21:27 kuangbin 阅读(936) 评论(0) 推荐(0) 编辑

POJ 1113 Wall (凸包)

摘要: WallTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 21502Accepted: 7048DescriptionOnce upon a time there was a greedy King who ordered his chief Architect to build a wall around the King's castle. The King was so greedy, that he would not listen to his Architect's proposals to build 阅读全文

posted @ 2012-04-13 13:24 kuangbin 阅读(3497) 评论(0) 推荐(1) 编辑

2012年4月6日

HDU 1211 RSA(数列题目)

摘要: RSATime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 706Accepted Submission(s): 524Problem DescriptionRSA is one of the most powerful methods to encrypt data. The RSA algorithm is described as follow:> choose two large prime integer p, q> calcu 阅读全文

posted @ 2012-04-06 00:04 kuangbin 阅读(549) 评论(0) 推荐(0) 编辑

2012年4月5日

HDU 2817 A sequence of numbers(数列,简单题)

摘要: A sequence of numbersTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1129Accepted Submission(s): 359Problem DescriptionXinlv wrote some sequences on the paper a long time ago, they might be arithmetic or geometric sequences. The numbers are not ver 阅读全文

posted @ 2012-04-05 23:08 kuangbin 阅读(2249) 评论(0) 推荐(0) 编辑

HDU 1792 A New Change Problem(数学规律题,数论知识)

摘要: A New Change ProblemTime Limit: 5000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 533Accepted Submission(s): 265Problem DescriptionNow given two kinds of coins A and B,which satisfy that GCD(A,B)=1.Here you can assume that there are enough coins for both kinds.P 阅读全文

posted @ 2012-04-05 22:48 kuangbin 阅读(1240) 评论(6) 推荐(0) 编辑

2012年4月3日

HDU 4198 Quick out of the Harbour(BFS+优先队列)

摘要: Quick out of the HarbourTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 75Accepted Submission(s): 47Problem DescriptionCaptain Clearbeard decided to go to the harbour for a few days so his crew could inspect and repair the ship. Now, a few days lat 阅读全文

posted @ 2012-04-03 21:01 kuangbin 阅读(1067) 评论(0) 推荐(0) 编辑

2012年4月1日

POJ 2635 The Embarrassed Cryptographer(整数刷新,千进制取模)

摘要: The Embarrassed CryptographerTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 9291Accepted: 2403DescriptionThe young and very promising cryptographer Odd Even has implemented the security module of a large system with thousands of users, which is now in use in his company. The cryptographic 阅读全文

posted @ 2012-04-01 23:18 kuangbin 阅读(1348) 评论(0) 推荐(1) 编辑

POJ 1141 Brackets Sequence(DP)

摘要: Brackets SequenceTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 18313Accepted: 5020Special JudgeDescriptionLet us define a regular brackets sequence in the following way: 1. Empty sequence is a regular sequence. 2. If S is a regular sequence, then (S) and [S] are both regular sequences. 3. 阅读全文

posted @ 2012-04-01 22:37 kuangbin 阅读(2232) 评论(0) 推荐(0) 编辑

2012年3月30日

HDU 1027 Ignatius and the Princess II (产生第m大的排列,STLmap中的next_permutation(array,array+n);)

摘要: Ignatius and the Princess IITime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2272Accepted Submission(s): 1371Problem DescriptionNow our hero finds the door to the BEelzebub feng5166. He opens the door and finds feng5166 is about to kill our pretty P 阅读全文

posted @ 2012-03-30 00:47 kuangbin 阅读(689) 评论(0) 推荐(0) 编辑

C++STL的next_permutation

摘要: C++STL的next_permutation在标准库算法中,next_permutation应用在数列操作上比较广泛.这个函数可以计算一组数据的全排列.但是怎么用,原理如何,我做了简单的剖析.首先查看stl中相关信息.函数原型:template<class BidirectionalIterator> bool next_permutation( BidirectionalIterator _First, BidirectionalIterator _Last );template<class BidirectionalIterator, class BinaryPredi 阅读全文

posted @ 2012-03-30 00:44 kuangbin 阅读(10459) 评论(3) 推荐(6) 编辑

上一页 1 ··· 67 68 69 70 71 72 73 74 75 ··· 94 下一页

导航

JAVASCRIPT: