求出有n(1
Input
第一行有2个整数n和m(0
Output
输出结点1到结点n之间的最短路径,如果1到n之间不存在路径,输出 -1。
Sample Input
3 3
1 2 10
2 3 15
1 3 30
题目分析:dijkstra单元最短路径。
一.最短路径的最优子结构性质
该性质描述为:如果P(i,j)={Vi....Vk..V...
分类:
其他好文 时间:
2014-12-31 10:07:41
阅读次数:
705
This usage table lets usbhidctl decode the HID data correctly for the APC RS/XS1000's.This work was obtained from riccardo@torrini.org.Sample output i...
分类:
其他好文 时间:
2014-12-31 09:56:10
阅读次数:
249
题目描述Description给出两个正整数A和B,计算A*B的值。保证A和B的位数不超过500位。输入描述Input Description读入两个用空格隔开的正整数输出描述Output Description输出A*B的值样例输入Sample Input3 12样例输出Sample Output...
分类:
其他好文 时间:
2014-12-30 23:29:56
阅读次数:
324
1.创建一个测试目录[root@localhost~]#mkdir/sample[root@localhost~]#cd/sample2.创建Dockerfile文件[root@localhostsample]#touchDockerfile3.编辑Dockerfile文件[root@localhostsample]#vimDockerfileFROMubuntu:14.04MAINTAINERovcerclvn2008@qq.comENVREFRESHED_AT2014-12..
分类:
Web程序 时间:
2014-12-28 18:21:39
阅读次数:
897
题目描述Description给出两个正整数A和B,计算A+B的值。保证A和B的位数不超过500位。输入描述Input Description读入两个用空格隔开的正整数输出描述Output Description输出A+B的值样例输入Sample Input3 12样例输出Sample Output...
分类:
其他好文 时间:
2014-12-28 01:41:17
阅读次数:
171
在网上发现几个使用Camera API2开发的实例程序,总结一下方便后续参考:1.Camera2 Basic :https://github.com/googlesamples/android-Camera2BasicThis sample demonstrates how to use basic...
分类:
移动开发 时间:
2014-12-27 23:01:18
阅读次数:
210
ylbtech- ASP.NET MVC:ASP.NET MVC file download sample 功能描述:ASP.NET MVC file download sample2,TechnologyAndTheEnvironment(技术与环境)操作系统:windows开发语言:C#开发框....
分类:
Web程序 时间:
2014-12-27 21:45:38
阅读次数:
218
题目描述Description给出两个正整数A和B,计算A-B的值。保证A和B的位数不超过500位。输入描述Input Description读入两个用空格隔开的正整数输出描述Output Description输出A-B的值样例输入Sample Input3 12样例输出Sample Output...
分类:
其他好文 时间:
2014-12-27 06:41:51
阅读次数:
210
参考链接:
Displaying Bitmaps Efficiently
Caching Bitmaps 翻译
先吐槽一下:google 给示例中都有错误的地方,国内翻译的也不去掉错误.太坑.
谷歌官方Demo
Download
the sample
也可参照guolin的文章,
经过一番学习,初步实践完成.贴出来,备用.
package...
分类:
移动开发 时间:
2014-12-26 18:40:37
阅读次数:
200
第一、block的使用
1、截获自动变量的值
typedef void(^TEST)(void);
int main(int argc, const char * argv[]) {
@autoreleasepool {
TEST test;
NSString *sample=@"hello";
test=^{
...
分类:
移动开发 时间:
2014-12-26 16:48:32
阅读次数:
198