#include #include #define max(a, b) (((a) >
(b)) ? (a) : (b))void GetMaxCost(int **data, int **result, int n){ int i,
j; for(j = 1; j = 1; i--) { for....
分类:
其他好文 时间:
2014-05-16 03:17:40
阅读次数:
195
1.慢查询日志:slow_launch_time=2
查询大于某个时间的值(单位:s)slow_query_log=on/off
开启关闭慢查询日志slow_query_log_file=/opt/data/host-slow.log
慢查询日志位置2.连接数:max_connections MyS...
分类:
数据库 时间:
2014-05-15 21:44:08
阅读次数:
447
为了照到点Point(x0,y0),圆心可以在一个范围内移动,我们设该范围为(x,y)(Vec[i].x,Vec[i].y)表示第如果圆心在这个范围内,则第i个点就一定能照到,sum表示为了能照到前i个点,最靠近右边的圆的边界坐标。#define
LOCAL#include#include#incl...
分类:
其他好文 时间:
2014-05-15 14:31:11
阅读次数:
237
学习笔记 MAX_SCRIPT_01关于max
script的脚本编辑一直想系统的学习一下,以下是我的学习笔记首先需要掌握的一些词汇:$showmoverotate(eulerAngles x y
z)scalein coordsysforwhereclassOfrandom#() 和 []at t...
分类:
其他好文 时间:
2014-05-15 14:17:09
阅读次数:
248
POJ2533#include #include #define max(a, b)
(((a) > (b)) ? (a) : (b))void GetMaxIncLen(int *data, int *maxLen, int
size){ int i, j; for(i = 2; i max) ....
分类:
其他好文 时间:
2014-05-15 13:52:57
阅读次数:
259
//#define
LOCAL#include#include#include#includeint const MAX_N=1001;typedef struct Point{
double x,y; bool operatorVec[i].y) { ...
分类:
其他好文 时间:
2014-05-15 13:51:08
阅读次数:
230
简单点说其实Segment Tree就是二分法的灵活运用。
需要的基础知识:
1 二分法
2 二叉树
3 最好熟悉堆排序
操作就是二分法和堆排序巧妙地合并起来。
有了这些基础知识Segment Tree就没有任何难度了。
参考原文:
http://www.geeksforgeeks.org/segment-tree-set-1-sum-of-given-range/
...
分类:
其他好文 时间:
2014-05-15 13:33:33
阅读次数:
250
1.慢查询日志:slow_launch_time=2查询大于某个时间的值(单位:s)slow_query_log=on/off开启关闭慢查询日志slow_query_log_file=/opt/data/host-slow.log慢查询日志位置2.连接数:max_connectionsMySQL最大连接数back_log当连接数满了后,设置一个值,允许多少个连接进入等待堆..
分类:
数据库 时间:
2014-05-15 12:44:41
阅读次数:
385
第一步vim/etc/sysctl.conf
net.ipv4.tcp_keepalive_time=1800
net.ipv4.tcp_keepalive_probes=5
net.ipv4.tcp_keepalive_intvl=15
net.core.rmem_max=167772160
net.core.wmem_max=167772160
net.ipv4.tcp_rmem=409687380167772160
net.ipv4.tcp_wmem=409665536167772160
net...
分类:
其他好文 时间:
2014-05-15 12:32:43
阅读次数:
248
public class Test { public static void
main(String[] string){ int i = Integer.MAX_VALUE; System.out.println(i); ...
分类:
其他好文 时间:
2014-05-15 10:13:33
阅读次数:
224