procedure TForm1.Button1Click(Sender: TObject); var Buffer: PChar; fd: Integer; Stream: TMySQLBlobStream; bmp:TBitmap; flen:Int64; begin bmp:=TBitmap.Create; try //向Mysql表写入Bmp图像 bmp.LoadFrom...
分类:
其他好文 时间:
2015-03-13 09:26:34
阅读次数:
119
题目:http://acm.hdu.edu.cn/showproblem.php?pid=3123题意很简单,就是同余模的简单应用。代码如下:#include #include #include #include typedef __int64 ll;using namespace std;char...
分类:
其他好文 时间:
2015-03-11 22:51:50
阅读次数:
129
一开始我以为直线上怎么会有最短距离,后来发现每两点之间直接到和间接到达的距离一样的,比如 1 ->2->3 = 1->2+2->3但是不等于1->3的直接距离
建完图以后直接Floyd就行,还有就是long long 会WA ,用__int64
#include
#include
#include
#include
#include
#include
#include
#incl...
分类:
其他好文 时间:
2015-03-11 21:42:07
阅读次数:
153
引用类型就是在赋值或给函数传递参数对的时候,把本身数据传递过去,这样在函数的调用过程中,会影响原始数据,类属于引用类型1、整型:Int8:有符号8位整型;Int16:有符号16位整型Int32:Int64:Int:平台相关有符号整型UInt8:无符号8位整型UInt16:无符号16位整型UInt32:UInt64:U..
分类:
编程语言 时间:
2015-03-11 19:59:15
阅读次数:
195
题目: 传送门题意很简单就不解释了,水题一道。#include #include #include #include typedef __int64 ll;#define inf 0x3f3f3f3f#include #include using namespace std;struct node....
分类:
其他好文 时间:
2015-03-10 22:44:20
阅读次数:
152
求一棵树内最远的两点,DFS,顺便记录以某节点为根内最远的两点的距离,返回最远点的距离。其实是DP。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define LL unsigned __int64 7...
分类:
其他好文 时间:
2015-03-10 21:11:06
阅读次数:
112
首先见测试代码(在g++/gcc下运行):#includeusing namespace std;int main(){ cout<<sizeof(int)<<endl; cout<<sizeof(unsigned int)<<endl; cout<<sizeof(long)<<endl; cout...
分类:
其他好文 时间:
2015-03-10 19:08:00
阅读次数:
119
type arr=record u,v,w,nt:longint; end;var i,j,m,n,x,y:longint; ans:int64; a:array[0..200008] of arr; fa:array[0..200008] of lon...
分类:
其他好文 时间:
2015-03-10 13:45:32
阅读次数:
176
水一发,最小生成树。注意不连通情况。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define LL unsigned __int64 7 using namespace std; 8 9 cons...
分类:
其他好文 时间:
2015-03-10 13:41:13
阅读次数:
163
BFS+强连通。输出max(缩点后出度为0的点数,缩点后入度为0的点数)。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define LL unsigned __int64 7 using...
分类:
其他好文 时间:
2015-03-09 23:57:08
阅读次数:
218