题意:求哪些点是割点,割掉以后能把图分成几块。
太水不欲发题解。
tarjan就好,不懂看代码。
代码:
#include
#include
#include
#include
#define N 1005
using namespace std;
int map[N][N];
bool exist[N];
int dfn[N],low[N],cnt;
int stk[N],top...
分类:
其他好文 时间:
2015-01-13 10:42:00
阅读次数:
162
结合了几篇外国友人的帖子和primefaces文档:
一、上传
1、在web.xml中添加
primefaces.UPLOADER
auto|native
本人亲测commons不可用,就算加入filter
2.1 简单方式上传
这个是针对mode=simple的上传方案,如果mode=advanced,去掉enctype="multipart...
分类:
Web程序 时间:
2015-01-13 09:07:57
阅读次数:
197
Implement int sqrt(int x).
Compute and return the square root of x.
二分查找法:
class Solution {
public:
int sqrt(int x)
{
int high = INT_MAX;
int low = 0;
while(low...
分类:
其他好文 时间:
2015-01-12 17:41:51
阅读次数:
138
想查询 dev/video的类型,找不到命令,闲的蛋疼留个模版
用的时候把video列表写进solve前的 dev_list即可
#include
#include
#include
#include
#include /* low-level i/o */
#include
#include
#include
#include
#include...
分类:
系统相关 时间:
2015-01-12 17:39:19
阅读次数:
385
用惯了 crashlytics ,Crash 收集功能的确很强大,各种 Crash 收集,而且实时给开发者发送邮件
详情见:唐巧一篇文章
国内的 Crash 的第三方,相比之下就 Low 很多,毕竟人家也是专业做 Crash 的,貌似被 Twitter收购了
但是你想过没有自己实现一个简单的 Crash 收集呢,比国内的第三方简陋些,可以实现基本功能呢?
先说 Crash ,...
分类:
移动开发 时间:
2015-01-12 14:47:45
阅读次数:
207
作者:Vamei 出处:http://www.cnblogs.com/vamei 欢迎转载,也请保留这段声明。谢谢!我们以下图为基础,说明Linux的架构(architecture)。(该图参考《 Advanced Programming in Unix Environment》)最内层是我们的硬件...
分类:
系统相关 时间:
2015-01-12 06:45:06
阅读次数:
346
1 // LowArrayApp.java 2 // demonstrates array class with low-level interface 3 // to run this program: C>java LowArrayAPP 4 //java数据结构和算法(第二版)拉佛 著 ...
分类:
移动开发 时间:
2015-01-11 14:42:20
阅读次数:
247
Pat1089代码
题目描述:
According to Wikipedia:
Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertion sort removes one element ...
分类:
其他好文 时间:
2015-01-10 01:31:42
阅读次数:
282
Pat1087代码
题目描述:
Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost while gaining the most happiness.
Input S...
分类:
其他好文 时间:
2015-01-10 01:31:07
阅读次数:
245
Pat1090代码
题目描述:
A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer.
Starting from one root supp...
分类:
其他好文 时间:
2015-01-10 01:28:52
阅读次数:
212