摘要:题目链接D. Gargari and Permutationstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputGargari got bored...
阅读全文
摘要:A题给一个由a和b两种类型的字符组成的字符串,每次可以从中选取任意长度的回文子序列(不一定连续)并删除。问最少需要几次能将整个字符串为空。思路:如果本身是个回文串,那么只需要一次,否则需要两次(第一次选全部的a,第二次全部选b)。Accepted Code: 1 def is_palidrome(s...
阅读全文
摘要:题目链接For an upcoming programming contest, Roy is forming some teams from thenstudents of his university. A team can have any number of contestants.Roy ...
阅读全文
摘要:题目链接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...
阅读全文
摘要:题目链接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 ...
阅读全文
摘要:题目链接IntervalsTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2931Accepted Submission(s): 1067Prob...
阅读全文
摘要:题目链接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...
阅读全文
摘要:题目链接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...
阅读全文
摘要:题目链接After completing her final semester, Savita is back home. She is excited to meet all her friends. HerNfriends live in different houses spread acro...
阅读全文
摘要:题目链接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...
阅读全文
摘要:题目链接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...
阅读全文
摘要:题目链接Ashton appeared for a job interview and is asked the following question. Arrange all the distinctsubstringsof a given string in lexicographical or...
阅读全文
摘要:题目链接Longest Common SubstringTime Limit: 8000/4000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4077Accepted Submissio...
阅读全文
摘要:题目链接Fast Matrix CalculationTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 87Accepted Submission...
阅读全文
摘要:题目链接3-idiotsTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2165Accepted Submission(s): 740Proble...
阅读全文
摘要:题目链接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...
阅读全文
摘要:题目链接A * B Problem PlusTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12490Accepted Submission(s):...
阅读全文
摘要:题目链接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...
阅读全文
摘要:题目链接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...
阅读全文
摘要:题目链接B. A Lot of Gamestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAndrew, Fedor and Alex are i...
阅读全文
摘要:vim的学习曲线相当的大(参看各种文本编辑器的学习曲线),所以,如果你一开始看到的是一大堆VIM的命令分类,你一定会对这个编辑器失去兴趣的。下面的文章翻译自《Learn Vim Progressively》,我觉得这是给新手最好的VIM的升级教程了,没有列举所有的命令,只是列举了那些最有用的命令。非...
阅读全文
摘要:题目链接a + bTime Limit:2000/1000MS (Java/Others)Memory Limit:128000/64000KB (Java/Others)Problem DescriptionInputOutputSample Input23 11 2 33 101 2 3Samp...
阅读全文
摘要:题目链接D. Serega and Funtime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSerega loves fun. However, ...
阅读全文
摘要:题目链接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 ...
阅读全文
摘要:题目链接Divide GroupsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1153Accepted Submission(s): 418Pr...
阅读全文
摘要:题目链接Counting OffspringTime Limit: 15000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1757Accepted Submission(s):...
阅读全文
摘要:题目链接Room and MoorTime Limit: 12000/6000 MS (Java/Others)Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 842Accepted Submission(s): 250...
阅读全文
摘要:题目链接C. Civilizationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAndrew plays a game called "Ci...
阅读全文
摘要:题目链接Matrix multiplicationTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 2143Accepted Submission...
阅读全文
摘要:题目链接迷宫城堡Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7097Accepted Submission(s): 3159Problem De...
阅读全文
摘要:题目链接最长回文Time Limit: 4000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7976Accepted Submission(s): 2735Problem De...
阅读全文
摘要:题目链接The Famous ICPC Team AgainTime Limit: 30000/15000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 796Accepted Submis...
阅读全文
摘要:题目链接K-th NumberTime Limit:20000MSMemory Limit:65536KTotal Submissions:36890Accepted:11860Case Time Limit:2000MSDescriptionYou are working for Macrohar...
阅读全文
摘要:题目链接食物链Time Limit:1000MSMemory Limit:10000KTotal Submissions:44316Accepted:12934Description动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。现有N个动物,以1-N编...
阅读全文
摘要:题目链接瑶瑶想要玩滑梯Time Limit:10000/5000MS (Java/Others)Memory Limit:512000/256000KB (Java/Others)SubmitStatisticNext ProblemProblem Description众所周知,瑶瑶(tsyao)...
阅读全文
摘要:题目链接瑶瑶的第K大Time Limit:10000/5000MS (Java/Others)Memory Limit:512000/256000KB (Java/Others)SubmitStatisticNext ProblemProblem Description一天,萌萌的妹子--瑶瑶(ts...
阅读全文
摘要:题目链接Fire NetTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6282Accepted Submission(s): 3551Proble...
阅读全文
摘要:题目链接Rain on your ParadeTime Limit: 6000/3000 MS (Java/Others)Memory Limit: 655350/165535 K (Java/Others)Total Submission(s): 2644Accepted Submission(s...
阅读全文