登录
首页 » C# »

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

  • Printing
    Printing from any printer
    2012-08-04 03:59:02下载
    积分:1
  • CHAPTER2
    pid自适应控制器学习和程序大家学习,很好用的(点对点)
    2010-09-17 10:52:59下载
    积分:1
  • cailiaoqingdan
    说明:  超声波测距原理图\硬件资料\cailiaoqingdan.rar(Ultrasonic Ranging schematic \ hardware information \ cailiaoqingdan.rar)
    2010-03-28 20:40:52下载
    积分:1
  • sun
    日地月系统动画模拟,其中包括地球太阳自转和月球绕地球转(The Day the Earth-Moon system animation simulation, including the earth, the sun' s rotation and the moon around the earth)
    2012-11-27 18:55:17下载
    积分:1
  • FIRA机器人足球赛5v5文件
    FIRA机器人足球赛5v5程序的源代码,可编译。
    2022-01-31 09:41:36下载
    积分:1
  • C# 响应新增系统菜单项命令
    C# 制作的响应式菜单,响应新增系统菜单项命令,在标题栏单击鼠标右键,会显示出菜单,单击“新增菜单”会响应该菜单的点击,新增了一项自定义的菜单项及命令,实现过程如下:   protected override void WndProc(ref Message SystemMessage)   {//响应新增系统菜单项命令    switch (SystemMessage.Msg)    {    case WM_SYSCOMMAND:    if (((int)SystemMessage.WParam) == WM_USER + 2)    MessageBox.Show("响应新增系统菜单项命令", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);    else    base.WndProc(ref SystemMessage);    break;    default:    base.WndProc(ref SystemMessage);    break;    }   }
    2022-07-16 20:46:37下载
    积分:1
  • stp/rstp源码
    stp/rstp源码,linux下测试可用 ,标准协议源码
    2022-11-26 01:35:03下载
    积分:1
  • opnet的aloha协议仿真
    对于学习OPNET无线仿真的同学很有用处。
    2023-06-20 02:30:04下载
    积分:1
  • bmp-class
    文件中包括了一个位图类,类中设计了一些对BMP文件数据提取很有用的函数,可通过该类延伸设计对BMP文件的各种处理。(Document includes a bitmap category, class, designed a number of BMP files data extraction very useful function, through the extension of the design of such a variety of BMP file processing.)
    2013-11-02 17:39:19下载
    积分:1
  • stm32(示波器)8.7
    STM32示波器c语言程序,欢迎下载,谢谢(STM32 viewer C language)
    2020-06-23 11:00:02下载
    积分:1
  • 696518资源总数
  • 104224会员总数
  • 54今日下载