tarjan算法第一题
喷我一脸。。。。把手写栈的类型开成了BOOL,一直在找错。。。
#include
#include
#include
#include
#define maxn 100005
const int MOD=1000000007;
using namespace std;
struct node
{
int to,next;
}edge[maxn...
分类:
其他好文 时间:
2014-05-15 08:18:56
阅读次数:
353
指向const对象的指针,例如:const int
*pival;pival是以个指向int类型const对象的指针,const限定pival指针所指向的对象类型,而并非pival本身,也就是说,pival并不是const,在定义时不需要对它进行初始化,如果需要,允许给pival重新赋值,使其指向另...
分类:
其他好文 时间:
2014-05-15 07:44:06
阅读次数:
197
MySQL has a number of global buffers, i.e. your
SGA. There are also a number of per session/thread buffers that combined with
other memory usage const...
分类:
其他好文 时间:
2014-05-15 07:34:17
阅读次数:
307
题意:让你染色点,要求在给出的区间内|红色个数-蓝色个数|
思路:排序后依次交替染色就能达到效果
#include
#include
#include
#include
#include
using namespace std;
const int MAXN = 110;
int arr[MAXN];
int n,m,x,y;
int main(){
scanf("%d%d",...
分类:
其他好文 时间:
2014-05-15 02:53:54
阅读次数:
205
Problem Description
Consider the following exercise, found in a generic linear algebra textbook.
Let A be an n × n matrix. Prove that the following statements are equivalent:
1. A is invertible...
分类:
其他好文 时间:
2014-05-15 01:30:21
阅读次数:
309
C++的学习中,我想每个人都被变量定义和申明折磨过,比如我在大学笔试过的几家公司,都考察了const和变量,类型的不同排列组合,让你区别有啥不同。反正在学习C++过程中已经被折磨惯了,今天再来看看重温下那段“辉煌的历史”。...
分类:
编程语言 时间:
2014-05-14 23:51:02
阅读次数:
480
program Test;{$APPTYPE CONSOLE}uses System,
System.SysUtils; const Value: array[0..5] of Byte = (5, 72, 101, 76, 76, 111); {
Old ShortString represent...
分类:
其他好文 时间:
2014-05-14 23:42:03
阅读次数:
475
1:生成随机数 2:定义常量(两种) (1):define():随便定义在哪里
(2):const():只能定义在最前面 3:想在函数里用全局变量必须用global申明一下 例:$conn = ""; //全局变量 function
get_c...
分类:
Web程序 时间:
2014-05-14 23:37:33
阅读次数:
615
program Project1;{$APPTYPE CONSOLE}{$R *.res}uses
System.SysUtils;TYPE Trec = record Member1, Member2: Integer; end;CONST IntRec:
Trec = (Member1: 55;...
分类:
其他好文 时间:
2014-05-14 23:18:51
阅读次数:
554
题目一道简单的倒着的floyd。具体可看代码,代码可简化,你有兴趣可以简化一下,就是把那个Dijsktra所实现的功能放到倒着的floyd里面去。#include#include#includeusing
namespace std;const int MAXN=110; const int IN....
分类:
其他好文 时间:
2014-05-14 22:19:11
阅读次数:
309