码迷,mamicode.com
首页 >  
搜索关键字:lintcode1 a+b problem solution 题解    ( 75925个结果
codeforces Sereja and Dima 题解
一个轮流取数的游戏,取得的值最大者胜,这里要求结果。 这里使用一下deque数据结构吧。当然这里使用一般数列,用two points的思想解决也是可以的。 deque是可以两头取数都很快的容器。很适合本题这样的情况...
分类:其他好文   时间:2014-07-22 23:00:16    阅读次数:286
codeforces A. Slightly Decreasing Permutations 题解
Permutation p is an ordered set of integers p1,??p2,??...,??pn, consisting of n distinct positive integers, each of them doesn't exceed n. We'll denote the i-th element of permutation p as pi. ...
分类:其他好文   时间:2014-07-22 23:00:15    阅读次数:312
codeforces D. Ice Sculptures 题解
本题还是有一定难度的。 注意点: 1 要使用逆向思维,不是要计算melt掉多少sculptures, 而是要计算需要剩下多少个sculptures 2 所有情况都需要考虑到,最大间隔melt掉的sculptures是n/3个 3 要判断这样间隔melt掉sculptures之后,剩下的sculptures是否能组成多边形 要很仔细想清楚才能做出来。 It is never too careful to scrutinize a problem! It is never too careful to desi...
分类:其他好文   时间:2014-07-22 23:00:13    阅读次数:279
hdu 4521 小明系列问题——小明序列 (间隔至少为d的LIS 两种解法)
小明系列问题——小明序列 Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 1567    Accepted Submission(s): 463 Problem Description   大家都知道小明最喜欢研究...
分类:其他好文   时间:2014-05-03 00:40:15    阅读次数:348
UVA之11078 - Open Credit System
【题目】 Problem E Open Credit System Input: Standard Input Output: Standard Output In an open credit system, the students can choose any course they like, but there is a problem. Some of the stude...
分类:其他好文   时间:2014-05-03 00:22:50    阅读次数:380
UVA之409 - Excuses, Excuses!
Excuses, Excuses!  Judge Ito is having a problem with people subpoenaed for jury duty giving rather lame excuses in order to avoid serving. In order to reduce the amount of time requi...
分类:其他好文   时间:2014-05-02 23:54:43    阅读次数:474
codeforces New Year Present 题解
也是有趣的题目,操作机器人,要求写一个指令序列。 不过本题对指令序列并没有太严格的要求,所以,基本上可以满足条件 - 放满钱币就可以了,对指令顺序没有要求。 下面是一种程序的写法,循环扫描,还有很多种写法的。...
分类:其他好文   时间:2014-05-02 23:46:03    阅读次数:516
codeforces Gravity Flip 题解
很有趣,很有新意的题目。 原来可以这么改变gravity,形成这样的效果的,有意思。 不过题解却是很容易的,就是一个排序问题,O(∩_∩)O~,但是没看到这样的题目还真没想过。...
分类:其他好文   时间:2014-05-02 23:33:04    阅读次数:434
Leetcode: Remove Elements
一次性通过的,比较顺利,从读题到编写到检查到通过,14分50秒,我在不断进步中,相信经过一段时间联系,这种题可以一眼就写出来,不超过5分钟。这道题应该说方法跟 Remove Duplicates from sorted Array挺类似的My Solution: 1 public class Sol...
分类:其他好文   时间:2014-05-02 12:56:10    阅读次数:260
android开发环境搭建遇到的问题
①解决安卓SDK更新dl-ssl.google.com无法连接进入C:\Windows\System32\drivers\etc下,用记事本打开host文件://74.125.237.1 dl-ssl.google.com74.125.23.190 dl-ssl.google.com②eclipse...
分类:移动开发   时间:2014-05-02 12:15:03    阅读次数:343
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!