摘要:
昂贵的聘礼Time Limit: 1000MSMemory Limit: 10000KTotal Submissions: 31751Accepted: 8978Description年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答应把女儿嫁给他。探险家拿不出这么多金币,便请求酋长降低要求。酋长说:"嗯,如果你能够替我弄到大祭司的皮袄,我可以只要8000金币。如果你能够弄来他的水晶球,那么只要5000金币就行了。"探险家就跑到大祭司那里,向他要求皮袄或水晶球,大祭司要他用金币来换,或者替他弄来其他的东 阅读全文
摘要:
POJ测试数据合集OJ上的一些水题(可用来练手和增加自信)(poj1003,poj1004,poj1005,poj1207,poj3299,poj2159,poj2739,poj1083,poj2262,poj3006,poj2255,poj3094)初级:一.基本算法:(1)枚举. (poj1018,poj1753,poj2965)(2)贪心(poj1328,poj2109,poj2586)(3)递归和分治法.(4)递推.(5)构造法.(poj3295,poj3239)(6.1)模拟法.(poj1008,poj1068,poj2632,poj1573,poj2993,poj2996,poj3 阅读全文
摘要:
The DoorsTime Limit:2 Seconds Memory Limit:65536 KBYou are to find the length of the shortest path through a chamber containing obstructing walls. The chamber will always have sides at x = 0, x = 10, y = 0, and y = 10. The initial and final points of the path are always (0, 5) and (10, 5). There wil 阅读全文
摘要:
Heavy CargoTime Limit:2 Seconds Memory Limit:65536 KBBig Johnsson Trucks Inc. is a company specialized in manufacturing big trucks. Their latest model, the Godzilla V12, is so big that the amount of cargo you can transport with it is never limited by the truck itself. It is only limited by the weigh 阅读全文
摘要:
测试数据:输入:40 1 10 3 41 2 91 3 22 0 32 1 52 3 83 2 6-1 -1 -1输出:0=>1 1 0→10=>2 9 0→1→3→20=>3 3 0→1→31=>0 11 1→3→2→01=>2 8 1→3→21=>3 2 1→32=>0 3 2→02=>1 4 2→0→12=>3 6 2→0→1→33=>0 9 3→2→03=>1 10 3→2→0→13=>2 6 3→2#include #include #define INF 1000000 //无穷大#define MAXN 20 阅读全文
摘要:
RiskTime Limit:2 Seconds Memory Limit:65536 KBRisk is a board game in which several opposing players attempt to conquer the world. The gameboard consists of a world map broken up into hypothetical countries. During a player's turn, armies stationed in one country are only allowed to attack only 阅读全文
摘要:
Stockbroker GrapevineTime Limit:2 Seconds Memory Limit:65536 KBStockbrokers are known to overreact to rumours. You have been contracted to develop a method of spreading disinformation amongst the stockbrokers to give your employer the tactical edge in the stock market. For maximum effect, you have t 阅读全文
摘要:
Invitation CardsTime Limit:8000MSMemory Limit:262144KTotal Submissions:16653Accepted:5403DescriptionIn the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are aware of this fact. They want to propagate theater a... 阅读全文