上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
  2013年9月20日
摘要: Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5400Accepted Submission(s): 2411Problem Description为了训练小希的方向感,Gardon建立了一座大城堡,里面有N个房间(N 2 #include 3 #include 4 #include 5 using namespace std; 6 7 vectoredge[10010];//用邻接表存图; 8 int n,m; 9 int dfn[100. 阅读全文
posted @ 2013-09-20 20:58 straw_berry 阅读(437) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1053Huffman问题利用STL中的priority_queue解决; 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 9 struct cmp10 {11 bool operator()(const int a, const int b)12 {13 return a > b;14 }15 };16 int solve(string... 阅读全文
posted @ 2013-09-20 18:43 straw_berry 阅读(245) 评论(0) 推荐(0) 编辑
  2013年9月19日
摘要: Time Limit:1000MSMemory Limit:10000KTotal Submissions:31455Accepted:8924DescriptionA single positive integer i is given. Write a program to find the digit located in the position i in the sequence of number groups S1S2...Sk. Each group Sk consists of a sequence of positive integer numbers ranging fr 阅读全文
posted @ 2013-09-19 00:49 straw_berry 阅读(206) 评论(0) 推荐(0) 编辑
  2013年9月17日
摘要: Time Limit:1000MSMemory Limit:30000KTotal Submissions:7184Accepted:3353DescriptionTransmitting and memorizing information is a task that requires different coding systems for the best use of the available space. A well known system is that one where a number is associated to a character sequence. It 阅读全文
posted @ 2013-09-17 20:42 straw_berry 阅读(254) 评论(0) 推荐(0) 编辑
  2013年9月13日
摘要: Time Limit:2000MSMemory Limit:65536KTotal Submissions:7558Accepted:2596DescriptionThe cows, as you know, have no fingers or thumbs and thus are unable to play Scissors, Paper, Stone' (also known as 'Rock, Paper, Scissors', 'Ro, Sham, Bo', and a host of other names) in order to ma 阅读全文
posted @ 2013-09-13 20:03 straw_berry 阅读(286) 评论(0) 推荐(0) 编辑
  2013年9月11日
摘要: Naive and Silly MugglesTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 137Accepted Submission(s): 94Problem DescriptionThree wizards are doing a experiment. To avoid from bothering, a special magic is set around them. The magic forms a circle, whic 阅读全文
posted @ 2013-09-11 22:23 straw_berry 阅读(304) 评论(0) 推荐(0) 编辑
  2013年9月9日
摘要: http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2622 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const long long INF = 1LL map[110];12 int inque[110];13 long long dis[110][12];14 int s,t,x,n,m;15 16 void spfa()17 {18 queueque;19 for(int i = 0; ... 阅读全文
posted @ 2013-09-09 23:00 straw_berry 阅读(242) 评论(0) 推荐(0) 编辑
  2013年9月6日
摘要: Time Limit:1000MSMemory Limit:10000KTotal Submissions:6647Accepted:3241DescriptionIn Pearlania everybody is fond of pearls. One company, called The Royal Pearl, produces a lot of jewelry with pearls in it. The Royal Pearl has its name because it delivers to the royal family of Pearlania. But it also 阅读全文
posted @ 2013-09-06 21:09 straw_berry 阅读(233) 评论(0) 推荐(0) 编辑
  2013年9月3日
摘要: Time Limit:2000MSMemory Limit:65536KTotal Submissions:7290Accepted:3409DescriptionFew know that the cows have their own dictionary withW(1 ≤W≤ 600) words, each containing no more 25 of the characters 'a'..'z'. Their cowmunication system, based on mooing, is not very accurate; sometim 阅读全文
posted @ 2013-09-03 21:19 straw_berry 阅读(262) 评论(0) 推荐(0) 编辑
  2013年8月30日
摘要: Time Limit:1000MSMemory Limit:10000KTotal Submissions:8571Accepted:2997DescriptionSome of the secret doors contain a very interesting word puzzle. The team of archaeologists has to solve it to open that doors. Because there is no other way to open the doors, the puzzle is very important for us.There 阅读全文
posted @ 2013-08-30 16:51 straw_berry 阅读(210) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页