2013年5月4日

UVa 10911 - Forming Quiz Teams 状态压缩dp

摘要: 4thIIUCInter-UniversityProgramming Contest, 2005GForming Quiz TeamsInput: standard inputOutput: standard outputProblemsetter:Sohel HafizYou have been given the job of forming the quiz teams for the next ‘MCA CPCI Quiz Championship’. There are2*Nstudents interested to participate and you have to form 阅读全文

posted @ 2013-05-04 20:42 电子幼体 阅读(209) 评论(0) 推荐(0) 编辑

UVa 11151 - Longest Palindrome 字符串dp

摘要: Write a programto determine the length of the longest palindrome you can get from a string.Input and OutputThe first line of input contains an integerT(≤ 60). Each of the nextTlines is a string, whose length is always less than 1000.For ≥90% of the test cases, string length ≤ 255.For each input stri 阅读全文

posted @ 2013-05-04 18:23 电子幼体 阅读(141) 评论(0) 推荐(0) 编辑

导航