码迷,mamicode.com
首页 >  
搜索关键字:uva 11827 maximum gc    ( 15683个结果
【LeetCode】Best Time to Buy and Sell Stock II
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-05-10 00:24:49    阅读次数:255
Oracle DG 三种模式(转)
DG有下面三种模式– Maximum protection– Maximum availability– Maximum performance 在Maximum protection下, 可以保证从库和主库数据完全一样,做到zero data loss.事务同时在主从两边提交完成,才算事务完成。如...
分类:数据库   时间:2014-05-09 23:19:59    阅读次数:554
Leetcode:Maximum Subarray 最大字段和
戳我去解题当从头至尾遍历数组时,对于数组中的每一个元素,有两种选择:1.加入之前的subArray2.舍弃之前的subArray,从该元素开始另起一个subArray那么该如何确定选择执行哪一种情况呢?如果之前subArray值大于0,那么我们可以认为这个subArray对以后的后续结果是有贡献的,...
分类:其他好文   时间:2014-05-09 09:34:10    阅读次数:274
AndroidUI组件之GridView
javapackage com.gc.gridviewdemo; /** * @author Android将军 */ /** * 知识点讲解: * 1、GridView 用于在界面上按行、列分布的方式来显示多个组件。 * GridView和ListView有共同的父类:AbsListView,因此GridView * 和ListView具有很高的相似性,它们都是列表项。 * Gri...
分类:移动开发   时间:2014-05-09 06:31:23    阅读次数:380
AndroidUI组件之TabHost
package com.gc.tabhost; /** * @author Android将军 * * * * 1、TabHost是一种非常实用的组件,TabHost可以很方便地在窗口上放置 * 多个标签页,每个标签页相当于获得了一个与外部容器相同大小的组件 * 摆放区域。通过这种方式,就可以在一个容器里放置更多组件。 * 2、与TabHost结合使用的还有如下组件: *...
分类:移动开发   时间:2014-05-09 06:27:02    阅读次数:406
UVA ShellSort
题目如下: Problem D: ShellSort He made each turtle stand on another one's back And he piled them all up in a nine-turtle stack. And then Yertle climbed up. He sat down on the pile. What a wonderful v...
分类:其他好文   时间:2014-05-09 06:20:44    阅读次数:396
UVA 10025(数学)
The ? 1 ? 2 ? ... ? n = k problem  The problem Given the following formula, one can set operators '+' or '-' instead of each '?', in order to obtain a given k ? 1 ? 2 ? ... ? n =...
分类:其他好文   时间:2014-05-09 06:10:40    阅读次数:285
uva :185 - Roman Numerals(dfs)
题目:uva :185 - Roman Numerals 题目大意:给出一个字符串的等式,问这个字符串是否是罗马等式吗?有符合的阿拉伯等式吗?前者是就输出correct or incorrect ,后者就得分情况: ambiguous 能组成阿拉伯等式的字母组合大于等于2, valid 能组成阿拉伯等式的字母组合只有1种impossible 没有符合阿拉伯等式的字母组合。解...
分类:其他好文   时间:2014-05-09 06:06:02    阅读次数:329
uva 10020- Minimal coverage (贪心思想 简单区间覆盖)
题目大意:给出一个范围M,然后给出若干的区间,以0 0 终止, 要求用最少的区间将0 ~M 覆盖,输出最少个数以及方案。 解题思路:典型的区间覆盖问题,算法竞赛入门经典P154上有讲。 /*author: charkj_z */ /*time: 0.108s */ /*rank: 674 */ /*为什么不把没用的地方去掉? 因为去掉了我觉得不像我能写出来的*/ /*Ac code :...
分类:其他好文   时间:2014-05-09 02:26:29    阅读次数:275
uva575
/* * uva575 * Date:2014/5/7 * State: AC */ #include #include #include #include #include using namespace std; const int MAXN=34; char Arr[MAXN]; int main() { //cout << "Hello world!" << end...
分类:其他好文   时间:2014-05-09 02:25:56    阅读次数:269
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!