登录
首页 » C# »

于 2022-09-28 发布 文件大小:63.55 kB
0 137
下载积分: 2 下载次数: 1

代码说明:

4-11 最优服务次序问« 问题描述:设有n 个顾客同时等待个顾客的服务次序才能使平总和除以n。« 编程任务:对于给定的n个顾客需要的服务时间,编程计算最优服务次序。« 数据输入:由文件input.txt给出输入数据。第一行是正整数n,表示有n 个顾客。接下来的1 行中,有n个正整数,表示n个顾客需要的服务时间。« 结果输出:将编程计算出的最小平均等待时间输出到文件output.txt。输入文件示例 输出文件示例input.txt output.txt1056 12 1 99 1000 234 33 55 99 812532.-4-11 optimal order asked laquo services; Problem description : n with customers while waiting for customer service so that the order can be divided by the sum of n-ping. Laquo; Programming tasks : to the n needs of its customers time and programming services for calculating optimal order. Laquo; Data input : from the document input.txt given input data. The first line is a positive integer n, n said a customer. Following a visit, n is an integer, n said the needs of the customer service hours. Laquo; Results output : Programming will calculate the average waiting time for the smallest output to a file output.txt. Examples of input document output files example input.txt output.txt1056 12 1 99 1000 23

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • soket服务端接收手机或其它客户端传来的字符
    soket服务端接收手机或其它客户端传来的字符
    2022-01-24 09:13:04下载
    积分:1
  • USBMOUSE_sch
    USB鼠标的设计资料之二:原理图。PDF和DSN格式(USB mouse design data 2: Schematic diagram. PDF and DSN format)
    2009-10-27 23:13:28下载
    积分:1
  • asp.net 视频播放网站源码(含数据库)
    asp.net sql server数据库,视频播放网站源码
    2021-05-06下载
    积分:1
  • IEEE754
    将float数据转化为IEEE754格式(Will float data into IEEE754 format)
    2020-11-29 11:19:28下载
    积分:1
  • Inlet_profile_
    说明:  For the model of indoor air distribution tuyere proposed by Professor Zhang Tengfei, this paper is UDF code for fluent simulation.
    2020-06-25 09:00:01下载
    积分:1
  • matlabaco2
    基于matlab的机器人路径规划源代码。。。。。。(The robot path planning based on matlab source code. . . . . .)
    2009-10-28 10:33:08下载
    积分:1
  • PMSM_dsp_2812
    说明:  永磁同步电机PMSM用2812编写的一段程序,代码是C,有详细注释(Permanent magnet synchronous motor PMSM using a program written in 2812, the code is C, with detailed notes)
    2011-04-06 18:51:52下载
    积分:1
  • igbt
    逆变器死区效应分析与补偿方法.: 针对电压源型空间矢量脉宽调制逆变器的死区效应, 提出了一种根据电流矢量判断电流极性的死区补偿方法, 分析了因死区时间、 功率器件导通关断时间引起的误差电压矢量.(Inverter dead time effect analysis and compensation method.: For the voltage source space vector pulse width modulation inverter dead time effect, we propose a judgment based on current polarity current vector deadband compensation method to analyze due to death-time, the power device turn-off time due to the error voltage vector.)
    2013-10-17 20:45:28下载
    积分:1
  • Ventilator
    plc程序:梯形图。功能:在s7-200上实现通风机的模拟控制(PLC: the ladder diagram program. Function: the realization of analog control ventilation in S7-200)
    2014-12-11 23:39:13下载
    积分:1
  • readBMP
    用C语言实现位图格式的图像读取功能,可直接使用。(read BMP by C ,can be used directly.)
    2018-04-03 17:51:33下载
    积分:1
  • 696516资源总数
  • 106668会员总数
  • 21今日下载