文件名称:001Lonely-Senter
-
所属分类:
- 标签属性:
- 上传时间:2013-06-16
-
文件大小:771byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
对于每一组输入数据,其第一行为三个整数 N、S 和 Q。其中 N(2<=N<=100) 表示环中站的个数。S(1<=S<=100) 表示货车的最大容量,即货车同时可以装载多少箱货物。而 Q(1<=Q<=100) 表示 B 平台所能放置的货物的总数,假定该系统中所有货运站 B 平台的最大容量都相同。
从第二行往后一共有 N 行,每行一的第一个数字代表该站 B 平台上货物的总数,之后的每个数字代表每箱货物运送到哪个站。
对于每组输入,你需要在独立的一行中输出完成该任务所需要的时间。-For each set of input data, the first line of three integers N, S and Q. Where N (2 < = N < = 100) means that the number of ring station. S (1 < = S < = 100) indicates the maximum capacity of trucks, which can be loaded truck while many boxes of goods. And Q (1 < = Q < = 100) means that can be placed on platform B of the total number of goods, the system assumes that all of the maximum cargo capacity of station B are the same platform. From the second row back a total of N lines, each one the first number represents the station B the total number of goods on the platform, each number represents carton after delivery of goods to which station. For each case, you need a separate output line to complete the task required.
从第二行往后一共有 N 行,每行一的第一个数字代表该站 B 平台上货物的总数,之后的每个数字代表每箱货物运送到哪个站。
对于每组输入,你需要在独立的一行中输出完成该任务所需要的时间。-For each set of input data, the first line of three integers N, S and Q. Where N (2 < = N < = 100) means that the number of ring station. S (1 < = S < = 100) indicates the maximum capacity of trucks, which can be loaded truck while many boxes of goods. And Q (1 < = Q < = 100) means that can be placed on platform B of the total number of goods, the system assumes that all of the maximum cargo capacity of station B are the same platform. From the second row back a total of N lines, each one the first number represents the station B the total number of goods on the platform, each number represents carton after delivery of goods to which station. For each case, you need a separate output line to complete the task required.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
001 孤独的运货员.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.