码迷,mamicode.com
首页 >  
搜索关键字:median of two sor    ( 12209个结果
SPOJ TWOPATHS Two Paths
题目意思:给一棵树,找到俩个不相交的通路,使得这俩个通路的长度和乘机最大;解法: 小哥一看呵呵 这不就是枚举点 然后求俩边的树的直径在相乘求个最大值的题么! 呵呵 这个N 有100000 当时就不玩了; 学长指导了下我; 俺会了!/灯泡 在枚举点在书的直径上时点的左右的最长的链无非这几...
分类:其他好文   时间:2014-07-30 12:07:53    阅读次数:342
[LeetCode] Container With Most Water
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo...
分类:其他好文   时间:2014-07-30 12:05:03    阅读次数:248
Combinations leetcode java
题目:Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.For example,If n = 4 and k = 2, a solution is:[ [2,4], ...
分类:编程语言   时间:2014-07-30 09:58:03    阅读次数:218
linux常用命令(持续更新)
1. 查看linux系统版本:登录到服务器执行 lsb_release -a ,即可列出所有版本信息,例如: [root@SOR_SYS ~]# lsb_release -a查看内核版本:[root@localhost ~]# uname -aLinux localhost.localdomain ...
分类:系统相关   时间:2014-07-30 00:56:22    阅读次数:264
pots(BFS)
D - Pots Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%lld & %llu Submit Status Description You are given two pots, having the volume of A and B liters respectively. ...
分类:其他好文   时间:2014-07-29 21:58:32    阅读次数:402
JQuery中操作css样式
//1、获取和设置样式$("#tow").attr("class")获取ID为tow的class属性$("#two").attr("class","divClass")设置Id为two的class属性。//2、追加样式$("#two").addClass("divClass2")为ID为two的对象...
分类:Web程序   时间:2014-07-29 20:45:02    阅读次数:272
Product UVA 10106
题目: Product The Problem The problem is to multiply two integers X, Y. (0250) The Input The input will consist of a set of pairs of lines. Each line in pair contains one mu...
分类:其他好文   时间:2014-07-29 18:03:42    阅读次数:283
HDU4597:Play Game(记忆化)
Problem Description Alice and Bob are playing a game. There are two piles of cards. There are N cards in each pile, and each card has a score. They take turns to pick up the top or bottom card from...
分类:其他好文   时间:2014-07-29 15:03:28    阅读次数:248
基础篇——序列化和文件的输入输出
一、对象序列化(存储) FileOutputStream fileStream = new FileOuputStream("file.ser"); ObjectOutputStream os = new ObjectOutputStream(fileStream); os.writeObject(one); os.writeObject(two); os.close(); 当对象被序列...
分类:其他好文   时间:2014-07-29 14:47:18    阅读次数:195
poj1753,Flip Game
Flip Game Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 30449   Accepted: 13232 Description Flip game is played on a rectangular 4x4 field with two-sided p...
分类:其他好文   时间:2014-07-29 14:33:28    阅读次数:225
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!