上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 53 下一页
摘要: 题目链接: D. Swaps in Permutation time limit per test 5 seconds memory limit per test 256 megabytes input standard input output standard output time limit 阅读全文
posted @ 2016-07-15 14:23 LittlePointer 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 题目链接: C. Exponential notation time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output time limit 阅读全文
posted @ 2016-07-15 14:16 LittlePointer 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 题目链接: B. s-palindrome 题意: 问给定的字符串是否是镜面对称; 思路: 直接看哪些字母是镜面对称的就行; AC代码: 阅读全文
posted @ 2016-07-15 14:11 LittlePointer 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 题目链接: A. Fashion in Berland 题意: 思路: AC代码: 阅读全文
posted @ 2016-07-15 14:07 LittlePointer 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 题意: 给定一个n*m的矩阵,一些格子是空地“F”,一些是障碍"R",找出一个全部由F组成的面积最大的子矩阵; 思路: 对每个格子维护up[i][j],le[i][j],ri[i][j].表示这个格子能向上的最长的长度,这个长度能向左向右移动的最长距离: 面积的最大值就是ans=max(ans ,u 阅读全文
posted @ 2016-07-14 11:53 LittlePointer 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 题目链接: C. Mr. Kitayuta, the Treasure Hunter time limit per test 1 second memory limit per test 256 megabytes input standard input output standard outpu 阅读全文
posted @ 2016-07-12 23:14 LittlePointer 阅读(467) 评论(0) 推荐(0) 编辑
摘要: Time Limit:10000MS Memory Limit:165888KB Description 有n个木块排成一行,从左到右依次编号为1~n。你有k种颜色的油漆,其中第i种颜色的油漆足够涂ci个木块。所有油漆刚好足够涂满所有木块,即c1+c2+...+ck=n。相邻两个木块涂相同色显得很难 阅读全文
posted @ 2016-07-12 18:25 LittlePointer 阅读(687) 评论(0) 推荐(1) 编辑
摘要: 题目链接: Dropping tests Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 9284 Accepted: 3254 Description In a certain course, you take n tests. 阅读全文
posted @ 2016-07-12 13:36 LittlePointer 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 题意: 在一个长度为n的序列中,找到最短的长度序列,使其和大于等于s; 思路: two pointer ,水题; Ac代码: 阅读全文
posted @ 2016-07-12 12:34 LittlePointer 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 题意: 给一些流星的初始位置和运动向量,给了相机的拍摄范围;问你最多能拍到多少颗流星; 思路: 将流星用出现在相机拍摄范围内的时间段表示;sort后在扫面端点更新最大值; Ac代码: 阅读全文
posted @ 2016-07-12 12:23 LittlePointer 阅读(279) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 53 下一页