- 博客(26)
- 资源 (4)
- 收藏
- 关注
转载 c3p0的相关配置说明
http://blog.youkuaiyun.com/cyq1984/article/details/11934897Hibernate推荐使用c3p0作为数据库连接池,管理数据库连接的资源。如果使用的应用服务器为非商业版本(比如:tomcat等),建议使用c3p0作为数据库连接池。但是,如果使用的是商业应用服务器,建议使用应用服务器内置的数据库连接池。因为,商业产品一般都会提供连接池的运行情
2017-12-16 01:22:29
276
原创 数据结构课程设计:稀疏矩阵(加、减、乘、求逆矩阵)
经过一周的课设,课设终于接近尾声了,期间重写了3边,第一次是变量名太混乱,各种瞎胡搞,“ii kk”这些奇葩变量都用上了,这次是一个警钟吧,要记住。第二次重写是因为,参照学长博客,但用到了指针的东西,自己指针学的渣,怕给组员讲不懂,所以,有了这最后一个版本。自我感觉,最后一个版本写的还可以,不过还是有一个小小的bug,今天中午写说明书的时候发现的,加法(减法用加法实现,当然也有),在计算时,最后一
2015-01-07 20:56:39
3963
转载 稀疏矩阵的三元组顺序表存储及矩阵相乘算法小结
稀疏矩阵的三元组顺序表存储及矩阵相乘算法小结转载自:http://blog.youkuaiyun.com/qiaoruozhuo) 一:稀疏矩阵的三元组顺序表数据结构 typedef int ElemType; typedef struct{ intx, y; //该非零元素的行下标和列下标 ElemTypee; //该非零元素的值} Tr
2014-12-26 21:30:06
2431
原创 uva350 - Pseudo-Random Numbers
Computers normally cannot generate really random numbers, but frequently are used to generate sequences of pseudo-random numbers. These are generated by some algorithm, but appear for all practical pu
2014-07-17 16:22:21
761
原创 uva568-Just the Facts
Just the Facts The expression N!, read as ``N factorial," denotes the product of the first N positive integers, where N is nonnegative. So, for example,NN!01
2014-07-17 16:19:10
560
原创 数论uva575-Skew Binary
Skew Binary When a number is expressed in decimal, the k-th digit represents a multiple of 10k. (Digits are numbered from right to left, where the least significant digit is number 0.) F
2014-07-17 16:10:25
523
原创 算法竞赛入门经典第3章总结
// P47 use getchar input a int#include #include using namespace std;int main(){ int a[10]; int bit = 1; int sum = 0; int i = 0; while((a[i] = getchar()) && a[i] != '\n')
2014-07-17 15:51:41
685
原创 HDU-2050
这题推起来还是能接受的,折线分割平面,应该从直线去推导折线的情况,而且直线分割平面是有现成公式可以用的1条直线将平面分成 2 部分2条直线将平面分成 4 = 2 + 2 部分3条直线将平面分成 7 = 2 + 2 + 3 部分4条直线将平面分成 11 = 2 + 2 + 3 + 4 部分。。。n条直线将圆分成 2+2+3+4+...+n = 1 + n(n+1)/2 (n
2014-07-09 00:22:53
710
原创 HDU2049
#include #include using namespace std;long long arrange(int n, int m) ///此题就是组合问题,复习了一下排列组合公式{ long long outcome = 1; long long outco = 1; for(int i = 1; i <= m; ++i) { o
2014-07-08 22:55:44
611
原创 南阳理工16题
#include #include #include using namespace std;const int max_size = 1005;int a, b;int DP[max_size];///定义结构体typedef struct Arry{ int lon; ///矩形的长 int wide; ///矩形的宽}Arry;Arry a
2014-07-02 18:46:38
506
转载 qsort的使用
七种qsort排序方法 一、对int类型数组排序 int num[100]; Sample: int cmp ( const void *a , const void *b ) { return *(int *)a - *(int *)b; } qsort(num,100,sizeof(num[0]),cmp); 二、对char类型数组排序(同int类型)
2014-07-02 11:05:39
794
转载 收藏高精度模板
/**********************************高精度加,减,乘,除,取模,模板**********************************/#include #include using namespace std;inline int compare(string str1, string str2){ if(str1.size() >
2014-07-01 17:24:23
608
原创 HDOJ-3068最长回文
Problem Description给出一个只由小写英文字符a,b,c...y,z组成的字符串S,求S中最长回文串的长度.回文就是正反读都是一样的字符串,如aba, abba等 Input输入有多组case,不超过120组,每组输入为一行小写英文字符a,b,c...y,z组成的字符串S两组case之间由空行隔开(该空行不用处理)字符串长度len
2014-06-29 10:55:44
656
原创 HLG1134
#include #include #define MAX_SIZE 1005int map[MAX_SIZE][MAX_SIZE], visit[MAX_SIZE][MAX_SIZE];int n, m, num, height;int move[4][2] = {{-1, 0}, {0, -1}, {1, 0}, {0, 1}};struct node{ int
2014-06-11 18:47:26
694
原创 POJ1611--HLG1160
一样的模板题#include using namespace std; int fa[30000], put[30000]; void init(int n) { for(int i = 0; i < n; ++i) { fa[i] = i; } } int find(int u) {
2014-06-06 17:58:01
452
原创 HLG1073之并查集
#include #define N 50005 using namespace std; int fa[N]; ///定义N个父节点 int num[N]; ///用于记录每组有多少个对象 void init(int n){ for(int i = 0; i < n; ++i) { f
2014-06-06 17:55:57
454
原创 POJ3268之最短路
#include #define INF 0x1f1f1f1f #define MAX_SIZE 1005 using namespace std; int map[MAX_SIZE][MAX_SIZE]; int dis[MAX_SIZE]; bool mark[MAX_SIZE]; void init(int n) { for(int
2014-06-06 17:53:56
496
原创 POJ1611----HLG1160
[code="c++"]#include using namespace std;int fa[30000], put[30000];void init(int n){ for(int i = 0; i < n; ++i) { fa[i] = i; }}int find(int u){ if(fa...
2014-04-29 20:18:32
120
原创 HLG1073
[code="c++"]#include #define N 50005using namespace std;int fa[N]; ///定义N个父节点int num[N]; ///用于记录每组有多少个对象void init(int n){ for(int i = 0; i < n; ++i) { ...
2014-04-29 18:16:38
187
原创 POJ3268
///其实能还短,然后再改吧[code="c++"]#include #define INF 0x1f1f1f1f#define N 1005using namespace std;int map1[N][N], map2[N][N];//建两个图,一个是另一个的转置int dis1[N], dis2[N];bool mark1[N], mark2[N];int n...
2014-04-23 16:45:46
146
原创 POJ3061
#include int a[1000000];int min(int x, int y){ return x = (x }int solve(int n, int sum1){ int res, sum, t, s; sum = t = s = 0; res = n + 1; for(; ;) {
2014-04-13 17:23:08
601
Single-Shot Object Detection with Enriched Semantics.pptx
2019-07-01
组会ppt 关于 BiSeNet
2019-07-01
组会 ppt DANet:DualAttentionNetworkforSceneSegmentation
2019-07-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人