码迷,mamicode.com
首页 >  
搜索关键字:poj 3087 shufflem up    ( 27914个结果
Cable master (POJ No.1064)
二分搜索思想:bool C(double x)可以得到长度为x的绳子//#define LOCAL#include#includeint const MAX_N=10005;int const MAX_M=100;double const INF=100000000;int N,K;double d...
分类:其他好文   时间:2014-05-17 00:13:44    阅读次数:271
MySQL 5.5: InnoDB Change Buffering
To speed up bulk loading of data, InnoDB implements aninsert buffer, a special index in the InnoDB system tablespace that buffers modifications to sec...
分类:数据库   时间:2014-05-16 18:26:09    阅读次数:532
POJ 3156 - Interconnect (概率DP+hash)
题意:给一个图,有些点之间已经连边,现在给每对点之间加边的概率是相同的,问使得整个图连通,加边条数的期望是多少。此题可以用概率DP+并查集+hash来做。用dp(i,j,k...)表示当前的每个联通分量的点数分别是i,j,k...(连通分量的个数不固定)时,加边的期望。这样以dp(i,j,k)为例分...
分类:其他好文   时间:2014-05-16 06:23:26    阅读次数:312
LeetCode OJ - Linked List Cycle
题目: Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space?解题思路: 使用快慢指针,快指针每次走两步,慢指针每次走一步...
分类:其他好文   时间:2014-05-16 05:19:21    阅读次数:271
LeetCode OJ - Linked List Cycle II
题目: Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull. Follow up: Can you solve it without using extr...
分类:其他好文   时间:2014-05-16 04:50:13    阅读次数:329
Ubuntu /boot paritiion clean up
1. Check the /boot partition size to decide if need clean up $ df 2. Check the current used Linux kernel $ uname -r 3. Check all Linux kernel to decide which ones to be removed $ ls /boot...
分类:其他好文   时间:2014-05-15 03:24:16    阅读次数:235
POJ 1436 Horizontally Visible Segments(线段树建图+枚举)
题目连接:http://poj.org/problem?id=1436 题意:给一些线段,每个线段有三个值y1, y2, x代表起点为(x, y1),终点为(x, y2)的线段。当从一个线段可以作水平线到另一个线段并且不穿过其他线段时,就称这两个线段时水平可见的。当三个线段可以两两水平可见,就称为形成一个线段三角。问:在这些线段中有多少个这样的线段三角? 分析:可以把每条线段看做是一个点,如果...
分类:其他好文   时间:2014-05-14 15:27:25    阅读次数:282
POJ 1742
CoinsTime Limit:3000MSMemory Limit:30000KTotal Submissions:27580Accepted:9335DescriptionPeople in Silverland use coins.They have coins of value A1,A2,...
分类:其他好文   时间:2014-05-14 11:52:46    阅读次数:270
linux下的基本网络配置
第一种:使用命令修改(直接即时生效,重启失效)#ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up说明:eth0是第一个网卡,其他依次为eth1,eth*192.168.0.1是给网卡配置的第一个网卡配置的ip地址netmask 255.255.25...
分类:系统相关   时间:2014-05-14 09:09:43    阅读次数:428
线段树-poj-2823
大意:给出数组a,内容为 a1 a2 a3 ... an。再给一个常数k。从i=1起,计算ai、a i+1、...、a i+k-1区间内的最小值和最大值。 线段树咯。...
分类:其他好文   时间:2014-05-13 14:11:41    阅读次数:187
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!