上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 50 下一页
摘要: #include #include #include #include using namespace std;const double eps=1e-9;double a[4][5]={{1,-1,-2,-5,10},{-2,7,6,-12,6},{3,-2,-5,-17,31},{-5,-2,9,27,-63}};double ans[10];bool l[10];int solve(doub... 阅读全文
posted @ 2013-08-08 07:29 码代码的猿猿 阅读(208) 评论(0) 推荐(0)
摘要: HyperhuffmanTime Limit: 5 Seconds Memory Limit: 32768 KBYou might have heard about Huffman encoding - that is the coding system that minimizes the expected length of the text if the codes for cha... 阅读全文
posted @ 2013-08-07 19:13 码代码的猿猿 阅读(201) 评论(0) 推荐(0)
摘要: FrecklesTime Limit: 2 Seconds Memory Limit: 65536 KBIn an episode of the Dick Van Dyke show, little Richie connects the freckles on his Dad's back to form a picture of the Liberty Bell. Alas, one... 阅读全文
posted @ 2013-08-07 18:44 码代码的猿猿 阅读(174) 评论(0) 推荐(0)
摘要: 求树的直径:任选一点求BFS,所得的距离这个点最远的一定是直径上的一个距离该点较远的端点,再进行一次BFS就能找到直径。。。。。Extend 7-day VacationTime Limit: 1 Second Memory Limit: 32768 KBCYJJ is planning on her vacation. Since her boss has permitted her ... 阅读全文
posted @ 2013-08-07 17:27 码代码的猿猿 阅读(206) 评论(0) 推荐(0)
摘要: RobbersTime Limit: 5 Seconds Memory Limit: 32768 KB Special JudgeN robbers have robbed the bank. As the result of their crime they chanced to get M golden coins. Before the robbery the band ... 阅读全文
posted @ 2013-08-07 08:33 码代码的猿猿 阅读(278) 评论(0) 推荐(0)
摘要: String SuccessorTime Limit: 2 Seconds Memory Limit: 65536 KBThe successor to a string can be calculated by applying the following rules:Ignore the nonalphanumerics unless there are no alphanumeri... 阅读全文
posted @ 2013-08-07 07:26 码代码的猿猿 阅读(208) 评论(0) 推荐(0)
摘要: The HiveTime Limit: 2 Seconds Memory Limit: 65536 KBThere is a hive in the village. Like this. There are 9 columns (from A to I) in this hive. Different column may have the different number of gr... 阅读全文
posted @ 2013-08-05 23:12 码代码的猿猿 阅读(171) 评论(0) 推荐(0)
摘要: 逗比的A题技巧: Move to Baggage OfficeTime Limit: 1 Second Memory Limit: 32768 KBwatashi's mm is so pretty as well as clever. When she has to move to YQ from ZJG, she turns to watashi for help to move h... 阅读全文
posted @ 2013-08-05 19:22 码代码的猿猿 阅读(198) 评论(0) 推荐(0)
摘要: Number PuzzleTime Limit: 2 Seconds Memory Limit: 65536 KBGiven a list of integers (A1, A2, ..., An), and a positive integer M, please find the number of positive integers that are not greater tha... 阅读全文
posted @ 2013-08-05 05:32 码代码的猿猿 阅读(211) 评论(0) 推荐(0)
摘要: C LooooopsTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 14925Accepted: 3767DescriptionA Compiler Mystery: We are given a C-language style for loop of type for (variable = A; variable != B; ... 阅读全文
posted @ 2013-08-03 05:22 码代码的猿猿 阅读(104) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 50 下一页