登录
首页 » C# »

于 2022-09-28 发布 文件大小:63.55 kB
0 148
下载积分: 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 个回复

  • IMLS
    点云曲面建模,基于距离函数,运用移动最小二乘法,拟合曲面,提取等值面,用于散乱点云的快速三角网格构建(Point cloud surface modeling, based on the distance function, the use of moving least squares method, fitting surface, isosurface extraction for fast scattered point cloud build triangular mesh)
    2020-11-12 10:09:45下载
    积分:1
  • dizhenbo
    对各向同性均匀介质,进行模拟。并利用弹性边界吸收。(For isotropic uneven medium, modeling. And by using elastic boundary absorption. )
    2012-03-08 16:25:27下载
    积分:1
  • WPFButton
    WPF按钮button的发光特效,可使按钮具备外发光特效,去掉了按钮自带的闪动效果。(The luminous effects WPF WPF button button light effects, can make the button with outer glow effects, remove the button s own flashing effect. )
    2013-08-05 22:41:22下载
    积分:1
  • SSH客户端工具Bitvise SSH Client
    说明:  这是用ftp的一个工具,是SSh客户端工具(This is a tool for ftp, a SSh client tool)
    2019-05-12 17:49:04下载
    积分:1
  • vcmatlab
    VC与matlab混合编程。详细介绍了几种混合编程的方法,实用易懂。(VC mixed with matlab programming. Details of several hybrid programming approach, practical and easy to understand.)
    2011-08-21 09:28:39下载
    积分:1
  • Slave-Reader
    2.4G 通讯模块主机程序。。。。。。。。。(master reader)
    2013-03-19 11:07:24下载
    积分:1
  • 车位引导程序主机内容
    使用超声波车辆探测传感器进行车位上的有无车辆的判断,将车位数据发送到从机,由从机对一列的车位数量进行统计后将数据发送给主机,并将车位信息发送给LED指示屏提醒车主哪里有空位,主机处再接收到所有从机的车位数据后对数据统计后显示在总车位屏,提醒司机停车场是否停满车辆。
    2022-06-12 17:07:35下载
    积分:1
  • Recursive-triangle
    三角形的递归算法的实现,简单的算法实现,用vc语言。(Recursive triangle)
    2013-09-03 16:06:57下载
    积分:1
  • optics-VCPP
    说明:  Optics聚类算法 OPTICS没有显示地产生一个数据集合簇,它为自动和交互地聚类分析计算一个簇次序。这个次序代表了数据基于密度地聚类结构。它包含地信息,等同于从一个宽广地参数设置范围所获得的基于密度的聚类(Optics do not show clustering algorithm OPTICS to produce a collection of data clusters, it is automatically and interactively computing cluster analysis a cluster order. This order represents the data to cluster based on the density structure. It contains in information from a broadly equivalent range of parameters obtained by density-based clustering)
    2020-11-07 15:19:49下载
    积分:1
  • 综合治疗机程序备份
    迪文开发实例包括双路adc DMA采样,多任务操作,串口接收(Diwen development examples include dual-channel adc DMA sampling, multi-tasking operation, serial port reception)
    2017-08-24 18:05:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载