2014年8月31日

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 阅读(1034) 评论(0) 推荐(0) 编辑

导航