#include #include #define maxn 1000 #define inf 0x3fffffff using namespace std; struct Edage { int from; int to; int cost; }es[maxn]; int d[maxn]; int... ...
分类:
编程语言 时间:
2017-02-03 16:57:52
阅读次数:
146
#include<stdio.h> void AddOne() { staic int ilnt=1; ilnt=ilnt+1; printf("%d\n",ilnt); } int main() { printf("第一次调用: "); AddOne(); printf("第二次调用: "); A ...
分类:
其他好文 时间:
2017-02-03 11:12:39
阅读次数:
167
You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a given value. The path does not need t ...
分类:
其他好文 时间:
2017-02-03 10:35:44
阅读次数:
175
1.Spring容器 Spring容器最基本的接口就是BeanFactory, 负责配置,创建和管理bean。我们通常不直接使用BeanFactory接口,而是使用其子接口ApplicationContext. 接口ApplicationContext常用实现类是FileSystemXmlAppli ...
分类:
编程语言 时间:
2017-02-03 10:34:12
阅读次数:
267
附件:https://pan.baidu.com/s/1ctezAe ...
分类:
移动开发 时间:
2017-02-02 20:57:24
阅读次数:
236
1 准备工作 (1)将adb.exe从 \Sdk\platform-tools目录下移动到 \Sdk\tools目录下(主要是看emulator这几个文件在哪个文件夹就把adb.exe移动到哪个文件夹); (2)将sqlite3.exe从 \Sdk\platform-tools目录下移动到 \Sdk ...
分类:
移动开发 时间:
2017-02-02 20:49:48
阅读次数:
501
在Hibernate3中获取Session的方法: 前提是类要继承HibernateDaoSupport: 在Hibernate4中,仍然需要继承HibernateDaoSupport,但是不能再this.getSession()了,只能通过SessionFacotry获得Session。首先要获得 ...
分类:
Web程序 时间:
2017-02-02 19:56:07
阅读次数:
220
开发目的:实现象棋人机对战简单AI,网络对战,移植到android中。 开发平台:windows10 + Qt5.4 for android 开发语言:C++ 开发过程:1.棋盘绘制; 方法一:重写 paintEvent(QPaintEvent *) 虚函数,调用QPainter painter(t ...
分类:
其他好文 时间:
2017-02-02 16:29:19
阅读次数:
200
Description 给定一个含有n个数的序列a[1],a[2],a[3]……a[n],程序必须回答这样的询问:对于给定的i,j,k,在a[i],a[i+1],a[i+2]……a[j]中第k小的数是多少(1≤k≤j-i+1),并且,你可以改变一些a[i]的值,改变后,程序还能针对改变后的a继续回答 ...
分类:
其他好文 时间:
2017-02-02 12:59:42
阅读次数:
210