求出有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
For given numbers a and b in function aplusb, return the sum of them.NoteYou don't need to parse the input and output. Just calculate and return.Examp...
分类:
其他好文 时间:
2014-12-31 07:36:50
阅读次数:
253
本文主要讲述 Windows 操作系统的安装,以 Windows 7 系统光盘安装为例。以系统安装盘安装操作系统(后续统一写为 OS:operate system),无论是笔记本,还是台式机均需从光盘启动,需要在 BIOS(英文"Basic Input Output System"的缩略词,直译过来...
题目描述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
之前了解到leetcode是个不错的刷题站点,今天稍微尝试了一下第一题,比较简单,要排序又要通过hash表来保存相应的index。只是在弄输出结果的时候,花了点时间。之前还一直以为判断输出结果是通过在函数中output出来的,结果是将结果作为函数的返回值返回给系统来判断。class Solution...
分类:
其他好文 时间:
2014-12-30 18:52:06
阅读次数:
189
insert into test_tb output inserted.id,inserted.data values('c'),('d')delete from test_tb output deleted.id where data='c'update test_tb set data='ab....
分类:
数据库 时间:
2014-12-29 15:09:45
阅读次数:
126
【英语魔法俱乐部——读书笔记】 0 序&前沿0.1 以编者自身的经历引入“不求甚解,以看完为目的”阅读方式,即所谓“泛读”。找到适合自己的文章开始“由浅入深”的阅读,在阅读过程中就会见到各种句型和常见单词,在上下文中学习单词和句型。阅读是积累Input的过程,有了足够的Input才能有Output,...
分类:
其他好文 时间:
2014-12-29 11:52:42
阅读次数:
185
1. gcc -E source_file.c
-E,只执行到预编译。直接输出预编译结果。
2. gcc -S source_file.c
-S,只执行到源代码到汇编代码的转换,输出汇编代码。
3. gcc -c source_file.c
-c,只执行到编译,输出目标文件。
4. gcc (-E/S/c/) source_file.c -o output_filename...
分类:
其他好文 时间:
2014-12-29 09:09:02
阅读次数:
156
Exercise 6-1. write a program that will prompt for and read a positive integer less than1,000 from the keyboard, and then create and output a string t...
分类:
其他好文 时间:
2014-12-28 23:33:48
阅读次数:
190