08 2014 档案

Codeforces 463D
摘要:题目链接D. Gargari and Permutationstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputGargari got bored... 阅读全文

posted @ 2014-08-31 22:45 Stomach_ache 阅读(317) 评论(0) 推荐(0) 编辑

CodeChef August Lunchtime 2014 题解
摘要:A题给一个由a和b两种类型的字符组成的字符串,每次可以从中选取任意长度的回文子序列(不一定连续)并删除。问最少需要几次能将整个字符串为空。思路:如果本身是个回文串,那么只需要一次,否则需要两次(第一次选全部的a,第二次全部选b)。Accepted Code: 1 def is_palidrome(s... 阅读全文

posted @ 2014-08-31 21:38 Stomach_ache 阅读(220) 评论(0) 推荐(0) 编辑

Hackerrank--Team Formation
摘要:题目链接For an upcoming programming contest, Roy is forming some teams from thenstudents of his university. A team can have any number of contestants.Roy ... 阅读全文

posted @ 2014-08-31 12:29 Stomach_ache 阅读(1036) 评论(0) 推荐(0) 编辑

Hackerrank--XOR love (Math系列)
摘要:题目链接Devendra loves the XOR operation very much which is denoted by∧sign in most of the programming languages. He has a listAofNnumbers and he wants to... 阅读全文

posted @ 2014-08-27 21:16 Stomach_ache 阅读(321) 评论(0) 推荐(0) 编辑

Hackerrank--Lexicographic paths
摘要:题目链接Krishnakant is standing at(0,0)in the Cartesian plane. He wants to go to the point(N,M)in the same plane using only horizontal and vertical moves ... 阅读全文

posted @ 2014-08-27 13:30 Stomach_ache 阅读(415) 评论(0) 推荐(0) 编辑

Hdu 1384(差分约束)
摘要:题目链接IntervalsTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2931Accepted Submission(s): 1067Prob... 阅读全文

posted @ 2014-08-26 11:07 Stomach_ache 阅读(254) 评论(0) 推荐(0) 编辑

Hackerrank--Volleyball Match
摘要:题目链接Tatyana is a big sports fan and she likes volleyball a lot! She writes down the final scores of the game after it has ended in her notebook.If you... 阅读全文

posted @ 2014-08-25 18:53 Stomach_ache 阅读(665) 评论(0) 推荐(0) 编辑

Hackerrank--Prime Sum
摘要:题目链接The problem is quite simple. You're given a number N and a positive integer K. Tell if N can be represented as a sum of K prime numbers (not neces... 阅读全文

posted @ 2014-08-25 12:44 Stomach_ache 阅读(392) 评论(0) 推荐(0) 编辑

Hackerrank--Savita And Friends(最小直径生成树MDST)
摘要:题目链接After completing her final semester, Savita is back home. She is excited to meet all her friends. HerNfriends live in different houses spread acro... 阅读全文

posted @ 2014-08-24 10:20 Stomach_ache 阅读(369) 评论(0) 推荐(0) 编辑

Hackerrank--Kundu and Tree
摘要:题目链接Kundu is true tree lover. Tree is a connected graph havingNvertices andN-1edges. Today when he got a tree, he colored each edge with one of either... 阅读全文

posted @ 2014-08-23 22:26 Stomach_ache 阅读(685) 评论(0) 推荐(0) 编辑

Hackerrank--String Function Calculation(后缀数组)
摘要:题目链接Jane loves string more than anything. She made a function related to the string some days ago and forgot about it. She is now confused about calcu... 阅读全文

posted @ 2014-08-22 18:55 Stomach_ache 阅读(1042) 评论(0) 推荐(1) 编辑

Hackerrank--Ashton and String(后缀数组)
摘要:题目链接Ashton appeared for a job interview and is asked the following question. Arrange all the distinctsubstringsof a given string in lexicographical or... 阅读全文

posted @ 2014-08-22 15:06 Stomach_ache 阅读(873) 评论(0) 推荐(0) 编辑

Hdu 1403(后缀数组)
摘要:题目链接Longest Common SubstringTime Limit: 8000/4000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4077Accepted Submissio... 阅读全文

posted @ 2014-08-22 10:47 Stomach_ache 阅读(223) 评论(0) 推荐(0) 编辑

Hdu 4965(矩阵快速幂)
摘要:题目链接Fast Matrix CalculationTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 87Accepted Submission... 阅读全文

posted @ 2014-08-19 18:09 Stomach_ache 阅读(324) 评论(0) 推荐(0) 编辑

Hdu 4609 (FFT)
摘要:题目链接3-idiotsTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2165Accepted Submission(s): 740Proble... 阅读全文

posted @ 2014-08-19 10:42 Stomach_ache 阅读(211) 评论(0) 推荐(0) 编辑

Hackerrank--Emma and sum of products (FFT)
摘要:题目链接Emma is really fond of integers and loves playing with them. Her friends were jealous, and to test her, one of them gave her a problem.Emma is giv... 阅读全文

posted @ 2014-08-19 08:58 Stomach_ache 阅读(339) 评论(0) 推荐(0) 编辑

Hdu 1402 (FFT)
摘要:题目链接A * B Problem PlusTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12490Accepted Submission(s):... 阅读全文

posted @ 2014-08-19 08:48 Stomach_ache 阅读(181) 评论(0) 推荐(0) 编辑

Hackerrank--Divisibility of Power(Math)
摘要:题目链接You are given an arrayAof sizeN. You are asked to answerQqueries.Each query is of the form :i j xYou need to printYesifxdivides the value returned... 阅读全文

posted @ 2014-08-17 13:53 Stomach_ache 阅读(304) 评论(0) 推荐(0) 编辑

Hackerrank--Stock Maximize(DP Practice)
摘要:题目链接Your algorithms have become so good at predicting the market that you now know what the share price of Wooden Orange Toothpicks Inc. (WOT) will be... 阅读全文

posted @ 2014-08-17 07:55 Stomach_ache 阅读(221) 评论(0) 推荐(0) 编辑

Codeforces 455B
摘要:题目链接B. A Lot of Gamestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAndrew, Fedor and Alex are i... 阅读全文

posted @ 2014-08-13 16:43 Stomach_ache 阅读(421) 评论(0) 推荐(0) 编辑

vim 简明教程(转自飘过的小牛)
摘要:vim的学习曲线相当的大(参看各种文本编辑器的学习曲线),所以,如果你一开始看到的是一大堆VIM的命令分类,你一定会对这个编辑器失去兴趣的。下面的文章翻译自《Learn Vim Progressively》,我觉得这是给新手最好的VIM的升级教程了,没有列举所有的命令,只是列举了那些最有用的命令。非... 阅读全文

posted @ 2014-08-11 10:28 Stomach_ache 阅读(228) 评论(0) 推荐(0) 编辑

ACdream 1007 (快速幂)
摘要:题目链接a + bTime Limit:2000/1000MS (Java/Others)Memory Limit:128000/64000KB (Java/Others)Problem DescriptionInputOutputSample Input23 11 2 33 101 2 3Samp... 阅读全文

posted @ 2014-08-11 09:57 Stomach_ache 阅读(180) 评论(0) 推荐(0) 编辑

Codeforces 455D
摘要:题目链接D. Serega and Funtime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSerega loves fun. However, ... 阅读全文

posted @ 2014-08-10 15:42 Stomach_ache 阅读(370) 评论(0) 推荐(0) 编辑

ACdream 1157 (cdq分治)
摘要:题目链接SegmentsTime Limit:4000/2000MS (Java/Others)Memory Limit:20000/10000KB (Java/Others)Problem Description由3钟类型操作:1)D L R(1 File Name: 1157.cpp 3 ... 阅读全文

posted @ 2014-08-10 10:57 Stomach_ache 阅读(1088) 评论(0) 推荐(0) 编辑

Hdu 4751(2-SAT)
摘要:题目链接Divide GroupsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1153Accepted Submission(s): 418Pr... 阅读全文

posted @ 2014-08-10 00:04 Stomach_ache 阅读(152) 评论(0) 推荐(0) 编辑

Hdu 3887树状数组+模拟栈
摘要:题目链接Counting OffspringTime Limit: 15000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1757Accepted Submission(s):... 阅读全文

posted @ 2014-08-09 21:45 Stomach_ache 阅读(177) 评论(0) 推荐(0) 编辑

Hdu 4923(单调栈)
摘要:题目链接Room and MoorTime Limit: 12000/6000 MS (Java/Others)Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 842Accepted Submission(s): 250... 阅读全文

posted @ 2014-08-09 14:10 Stomach_ache 阅读(222) 评论(0) 推荐(0) 编辑

Codeforces 455C
摘要:题目链接C. Civilizationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAndrew plays a game called "Ci... 阅读全文

posted @ 2014-08-09 12:13 Stomach_ache 阅读(223) 评论(0) 推荐(0) 编辑

Hdu 4920矩阵乘法(内存访问的讲究)
摘要:题目链接Matrix multiplicationTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 2143Accepted Submission... 阅读全文

posted @ 2014-08-08 13:06 Stomach_ache 阅读(243) 评论(0) 推荐(0) 编辑

Hdu 1269 强连通判定
摘要:题目链接迷宫城堡Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7097Accepted Submission(s): 3159Problem De... 阅读全文

posted @ 2014-08-08 12:42 Stomach_ache 阅读(255) 评论(0) 推荐(0) 编辑

Hdu 3068 最长回文字串Manacher算法
摘要:题目链接最长回文Time Limit: 4000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7976Accepted Submission(s): 2735Problem De... 阅读全文

posted @ 2014-08-08 12:38 Stomach_ache 阅读(172) 评论(0) 推荐(0) 编辑

Hdu 4251 区间中位数(划分树)
摘要:题目链接The Famous ICPC Team AgainTime Limit: 30000/15000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 796Accepted Submis... 阅读全文

posted @ 2014-08-03 00:10 Stomach_ache 阅读(764) 评论(0) 推荐(0) 编辑

Poj 2104区间第k大(归并树)
摘要:题目链接K-th NumberTime Limit:20000MSMemory Limit:65536KTotal Submissions:36890Accepted:11860Case Time Limit:2000MSDescriptionYou are working for Macrohar... 阅读全文

posted @ 2014-08-02 19:59 Stomach_ache 阅读(229) 评论(0) 推荐(0) 编辑

Poj 1182种类(带权)并查集
摘要:题目链接食物链Time Limit:1000MSMemory Limit:10000KTotal Submissions:44316Accepted:12934Description动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。现有N个动物,以1-N编... 阅读全文

posted @ 2014-08-02 19:13 Stomach_ache 阅读(130) 评论(0) 推荐(0) 编辑

ACdream 1101 线段树
摘要:题目链接瑶瑶想要玩滑梯Time Limit:10000/5000MS (Java/Others)Memory Limit:512000/256000KB (Java/Others)SubmitStatisticNext ProblemProblem Description众所周知,瑶瑶(tsyao)... 阅读全文

posted @ 2014-08-02 15:19 Stomach_ache 阅读(229) 评论(1) 推荐(0) 编辑

ACdream 1099求第k大
摘要:题目链接瑶瑶的第K大Time Limit:10000/5000MS (Java/Others)Memory Limit:512000/256000KB (Java/Others)SubmitStatisticNext ProblemProblem Description一天,萌萌的妹子--瑶瑶(ts... 阅读全文

posted @ 2014-08-02 13:21 Stomach_ache 阅读(225) 评论(0) 推荐(0) 编辑

Hdu 1045 二分匹配
摘要:题目链接Fire NetTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6282Accepted Submission(s): 3551Proble... 阅读全文

posted @ 2014-08-01 23:42 Stomach_ache 阅读(162) 评论(0) 推荐(0) 编辑

Hdu 2389 二分匹配
摘要:题目链接Rain on your ParadeTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 655350/165535 K (Java/Others)Total Submission(s): 2644Accepted Submission(s... 阅读全文

posted @ 2014-08-01 22:36 Stomach_ache 阅读(189) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

导航

统计

点击右上角即可分享
微信分享提示