登录
首页 » C# »

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

  • 12864driver
    KS0108驱动12864字符型液晶程序(KS0108 LCD driver 12864 Character program)
    2011-08-22 22:13:05下载
    积分:1
  • ARM(LINUX)timerdriver
    linux下定时器的驱动程序,用于linux下定时器的驱动(linux drivers under the timer, the timer for the driver under linux)
    2010-05-21 18:13:05下载
    积分:1
  • list
    list控件的基本适应方法,简单易懂。。很适合初学者(The basic adaptation list controls, easy to understand. . It is suitable for beginners)
    2014-02-10 22:46:21下载
    积分:1
  • ad
    说明:  dsp 抽样定理程序代码 A/D转换的基本过程和程序处理过程 (dsp sampling theorem code A/D conversion processing of the basic processes and procedures)
    2013-08-12 20:00:42下载
    积分:1
  • Binary-Search
    If you have not registered, Please [regist first].You should upload at least five sourcecodes/documents. (upload 5 files, you can download 200 files). Webmaster will activate your member account after checking your files. If you do not want to upload source code,
    2011-12-13 19:23:17下载
    积分:1
  • 用GtkWidget实现的重新定位父窗口的示例程序
    用GtkWidget实现的重新定位父窗口的示例程序,在GTK中重新加载父窗口可以实现类似自动取词,平移窗口等功能
    2022-03-02 21:03:47下载
    积分:1
  • C#对Excel操作,大概是完全版
    没什么特别要说的;除了关闭Excel建议用Dispose()。
    2023-09-07 13:40:03下载
    积分:1
  • hongwai-yaokong-jiema
    红外遥控解码,基于51单片机的例程,简单实用,我在学习单片机的时候用到的(Infrared remote control decoding, based on 51 MCU routine, simple and practical, I used the time to learn microcontroller)
    2013-08-04 16:53:01下载
    积分:1
  • cSharp-walk-man
    一个c#编写的行走的人的例程,此例程主要是为了更好的使用c#的picturebox和定时器。(A c# prepared by a person walking routine, mainly in order to make better use of c# picturebox and timer.)
    2013-08-26 16:27:10下载
    积分:1
  • DrawBall
    gdi+的使用,画多格,并画带颜色的圆,可用来显示彩票数据。(gdi+ the use of multi-format paintings and draw a circle with a color display lottery data.)
    2013-07-30 17:30:00下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载