码迷,mamicode.com
首页 > 其他好文
ZOJ 3321 Circle【并查集】
解题思路:给定n个点,m条边,判断是否构成一个环注意到构成一个环,所有点的度数为2,即一个点只有两条边与之相连,再有就是判断合并之后这n个点是否在同一个连通块CircleTime Limit: 1 Second Memory Limit: 32768 KBYour task is so easy. ...
分类:其他好文   时间:2015-01-28 00:45:23    阅读次数:365
Codeforces Round #286 (Div. 2)
A题。。暴力枚举在每个位置添加字符,然后检查一下是不是回文串 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 using namespace std; 9 10 #define LL long ...
分类:其他好文   时间:2015-01-28 00:42:26    阅读次数:261
HDU 3161 Iterated Difference 暴力
Iterated DifferenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 786Accepted Submission(s): 505P...
分类:其他好文   时间:2015-01-28 00:44:40    阅读次数:259
CentOS编译安装LNMP环境
这里是教大家如何在centos下利用源码编译安装LNMP环境。 工具/原料centos服务器一台自用电脑一台 准备篇配置好IP、DNS 、网关,确保使用远程连接工具能够连接服务器配置防火墙,开启80端口、3306端口vi/etc/sysconfig/iptables#编辑防火墙配置文件 -A IN....
分类:其他好文   时间:2015-01-28 00:44:57    阅读次数:218
LeetCode Factorial Trailing Zeroes
class Solution {public: int trailingZeroes(int n) { int count = 0; while (n) { count += n / 5; n /= 5; }...
分类:其他好文   时间:2015-01-28 00:42:47    阅读次数:199
【PDF单页转化为图片输出 注意:英文或图片类的PDF可转化,中文抛异常】
1 public static void main(String[] args) throws IOException 2 { 3 /** 4 * PDF单页转化为图片输出 注意:英文或图片类的PDF可转化,中文抛异常 5 */ 6 ...
分类:其他好文   时间:2015-01-28 00:41:18    阅读次数:187
路由器中pppoe,动态IP,静态IP的区别
路由器中pppoe,动态IP,静态IP的区别要把路由器设置得能上网,无非就是设置WAN外网接口连接而已。WAN接口能上网,则连接的电脑就能上网,反之则上不了网。只不过WAN接口往往有pppoe,动态IP,静态IP三种连接方式,一般的用户搞不清楚有什么区别。且听我慢慢道来……第一种:PPPOE模式可以...
分类:其他好文   时间:2015-01-28 00:43:01    阅读次数:261
bzoj 3251
http://www.lydsy.com/JudgeOnline/problem.php?id=3251这道题在北京八十中的时候有人讲过。。 不过由于自己continue 写掉了一个所以调了很久。做法是如果整个序列没有合法三角形的话,那么整个链长不超过50个(最大的情况是斐波那契数列) 所以大于50...
分类:其他好文   时间:2015-01-28 00:41:22    阅读次数:224
Camel概念【Exchange 】
Exchange An exchange in Camel is the message’s container during routing. (在camel中,exchange被当做路由交换的容器) An exchange also provides support for the various types of interactions betwee...
分类:其他好文   时间:2015-01-27 23:37:38    阅读次数:558
nginx反向代理
1. 操作系统 CentOS 6.4 x86_64 2.软件版本 Nginx 1.4.2 3.实验拓扑 注,实验拓扑见下文。 4.安装yum源 1 2 3 [root @nginx ~]# rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8...
分类:其他好文   时间:2015-01-27 23:37:58    阅读次数:735
Nginx的负载均衡方案详解
Nginx的负载均衡方案详解作者:chszs,转载需注明。博客主页:http://blog.csdn.net/chszsNginx的负载均衡方案有:1、轮询轮询即Round Robin,根据Nginx配置文件中的顺序,依次把客户端的Web请求分发到不同的后端服务器。配置的例子如下: http{ upstream sampleapp { server >; ...
分类:其他好文   时间:2015-01-27 23:38:13    阅读次数:427
关于层DIV自适应高度的问题总汇
我们先来看一个最普通的父层自适应子层高度的例子(通常来讲,布局时父层都是不设置高度的) .f{ width:200px; border:1px solid #000; padding: 25px; margin: 50px auto;} .z{ width:200px; height:200px; background:#000} 运行结果是这样的如下图所示...
分类:其他好文   时间:2015-01-27 23:36:41    阅读次数:407
Mybatis开发总结
有了Hibernate的开发基础,上手MyBatis是非常快的。但是在实际应用中,还是遇到了一些问题。总结一下,分享出来: 1、使用插件“mybatisGenerator”生成的辅助代码  Example做组合查询,非常方便,如下: AfficheExample example = new AfficheExample(); Criteria cri = example.createC...
分类:其他好文   时间:2015-01-27 23:36:58    阅读次数:381
LeetCode --- 1. Two Sum
题目链接:[Two Sum](https://oj.leetcode.com/problems/two-sum/ )Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of th...
分类:其他好文   时间:2015-01-27 23:36:58    阅读次数:356
ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be translated
standby down了,所以重启报错,ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be  translated :?1,重启报错信息SQL> startup                                                                            ...
分类:其他好文   时间:2015-01-27 23:36:37    阅读次数:336
SecureCRTP配置几个小技巧
原文来自:http://blog.csdn.net/lili72   lili72 背景:由于在lunix上操作,最常用的是secureCRT,现在把这个工具,基本常用方式记录一下。     一:  设置直接跳到跳板机,不要再次ssh 登陆。A--B-->C  不用跳2次到达目的机,一次直接到达。 1  2  3 4 5 6  7  8    二:设置编辑器...
分类:其他好文   时间:2015-01-27 23:35:26    阅读次数:363
LeetCode --- 2. Add Two Numbers
题目链接:Add Two Numbers You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers a...
分类:其他好文   时间:2015-01-27 23:36:05    阅读次数:373
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!