简单的floyd运用 第一行输入一个整数C。C是测试的情况(0< C <=30).第二行一个正整数N( 0< N <=100),表示道路的总数.紧接N行,每一行包含两个字符串, Si,,Ti,和一个整数Di,代表从Si到Ti的距离(0<= Di <=150)。最后一行有两个字符串,S 和 T,你得找出从S 到 T的最短的距离。地名是不超过120个小写字符的串(从‘a’到‘z’)。假设这里最多有100条直接连通两个地方的路。 Output 输出包含C行,每一行对一种测试情况。对每一种测试情况,输出包含一个整数,假如S 到 T存在一条最短的路,输出从S到T的最短距离,否则输出“-1”. Sample Input 2 2 jiuzhouriver liuchi 89 liuchi liyuan 100 liuchi jiuzhouriver 3 youyongchi fengyuan 100 qinshi meiyuan 100 chaochang supermarkt 100 meiyuan youyongchi Sample Output 89 -1
上传时间: 2016-03-10
上传用户:wyc199288
基于OFDM的无线宽带系统仿真It contains mainly two parts, i.e. link-level simulator and system-level simulator. Link-level simulator focus on a single-cell single-user scenario, where signal is transmitted from tx, and estimated at rx. Comparing the difference in tx/rx signal, the error rate can be found out. The output of the link-level simulator is the BLER/BER vs. SNR mapping table, that can be used for the system-level simulation. System-level simulator focus on a multi-cell multi-user scenario. For the sake of simplicity, it takes the mapping table aquired in the link-level simulation, measure the actural SNR, and finds the corresponding error rate.
标签: simulator i.e. system-level link-level
上传时间: 2016-03-15
上传用户:xsnjzljj
To use the ATLTrace tool: Debug an MFC or ATL project select Start from the Debug menu. Select MFC/ATL Trace Tool in the Tools menu. Expand the tree control list in the Trace List window. Here you will see the running application, any modules within that application, and the trace categories for each module. Customize, for each process, module, and category, which information is displayed in the output window. The Trace level control in the Process group is related to the ATLTRACE2 level only those ATLTRACE2 messages with a level equal to or greater than the setting in the Trace level control will be displayed in the output window. Select Apply to put your settings into effect. You can save your settings, and load them the next time you debug the application use the Save and Load buttons.
标签: Debug the ATLTrace project
上传时间: 2014-01-15
上传用户:wfl_yy
RT2570芯片USB口无线网卡linux设备驱动程序,有调试信息输出的.-RT2570 chip USB wireless network card device driver linux, the output of debugging information.
上传时间: 2014-01-07
上传用户:gxf2016
k-meansy算法源代码。This directory contains code implementing the K-means algorithm. Source code may be found in KMEANS.CPP. Sample data isfound in KM2.DAT. The KMEANS program accepts input consisting of vectors and calculates the given number of cluster centers using the K-means algorithm. Output is directed to the screen.
标签: code implementing directory algorithm
上传时间: 2016-04-07
上传用户:shawvi
Programs in the irregular grid design package described in this manual are used to carry out five main functions: verification and adjustment of coastline and bathymetric data preparation of an irregular triangular depth grid covering the domain to be modelled production of a preliminary irregular triangular model grid with nodes suitably positioned for accurate and efficient numerical modelling interactive checking and editing, including trimming and joining, of model grid display and plotting of model output.
标签: described irregular Programs package
上传时间: 2016-04-09
上传用户:fnhhs
小型的Lex编译器,能从input.txt识别简单的C++语句,并将分析结果存于output.txt中
上传时间: 2014-01-12
上传用户:qq21508895
Problem D:合唱队形 Time Limit:1000MS Memory Limit:65536K Total Submit:1237 Accepted:437 Language: not limited Description N位同学站成一排,音乐老师要请其中的(N-K)位同学出列,使得剩下的K位同学排成合唱队形。 合唱队形是指这样的一种队形:设K位同学从左到右依次编号为1,2…,K,他们的身高分别为T1,T2,…,TK, 则他们的身高满足T1 < T2 < ...< Ti > Ti+1 > … >TK(1<=i<=K)。 你的任务是,已知所有N位同学的身高,计算最少需要几位同学出列,可以使得剩下的同学排成合唱队形。 Input 输入包含若干个测试用例。 对于每个测试用例,输入第一行是一个整数N(2<=N<=100),表示同学的总数。第二行有N个整数,用空格分隔,第i个整数Ti(130<=Ti<=230)是第i位同学的身高(厘米)。当输入同学总数N为0时表示输入结束。 Output 对于每个测试案例,输出包括一行,这一行只包含一个整数,就是最少需要几位同学出列。 Sample Input 8 186 186 150 200 160 130 197 220 3 150 130 140 0 Sample Output 4 1
标签: Limit Accepted Language Problem
上传时间: 2014-01-13
上传用户:aappkkee
对于符号三角形问题,符号三角形的第一行有n个符号。符号可以为“+”或“-”,以下每一行的符号由上行得到,2个同号下面都是“+”,2个异号下面都是“-”。如下图所示(第一行有4个符号的符号三角中的其中的一个): 符号三角形问题要求对于给定的n,计算有多少个不同的符号三角形,使其所含的“+”和“-”的个数相同。 Input 输入包含若干个测试用例。 对于每个测试用例,输入的一行是一个整数n(2<=n<=20),表示符号三角形第一行符号的个数。当输入n为0时表示输入结束。 Output 对于每个测试案例,输出包括一行,这一行只包含一个整数,就是该测试案例总共有多少不同的符号三角形,使其所含的“+”和“-”的个数相同。 Sample Input 2 3 0 Sample Output 0 4
上传时间: 2014-01-02
上传用户:阳光少年2016
Problem F:汽车加油 Time Limit:1000MS Memory Limit:65536K Total Submit:1400 Accepted:404 Language: not limited Description 一辆汽车加满油后可行驶n公里。旅途中有若干个加油站。设计一个有效算法,指出应在哪些加油站停靠加油,使沿途加油次数最少。 编程任务: 对于给定的n和k(k <= 10000)个加油站位置,编程计算最少加油次数。 Input 第一行有2 个正整数n和k,表示汽车加满油后可行驶n公里,且旅途中有k个加油站。接下来的1 行中,有k+1 个整数,表示第k个加油站与第 k-1 个加油站之间的距离。第0 个加油站表示出发地,汽车已加满油。第k+1 个加油站表示目的地。 Output 输出最少加油次数。如果无法到达目的地,则输出”No Solution”。 Sample Input 7 7 1 2 3 4 5 1 6 6 Sample Output 4
标签: Limit Accepted Language Problem
上传时间: 2016-04-12
上传用户:youth25