登录
首页 » C# »

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

  • C_Function
    该文件是一个比较全面的c语言函数文档,包含了全部的函数(The file is a more comprehensive documentation of the c-language function, contains all the functions)
    2011-07-30 19:37:37下载
    积分:1
  • 回溯法求砝码称重问题
    编写c++代码。使用回溯法求解砝码称重问题,代码稍微修改也可用于求解0-1背包问题 问题描述:有n个砝码,现在要称一个质量为m的物体,请问最少需要挑出几个砝码来称?注意一个砝码最多只能挑一次 输入描述 Input Description:第一行两个整数n和m,接下来n行每行一个整数表示每个砝码的重量。 输出描述 Output Description:输出选择的砝码的总数k,你的程序必须使得k尽量的小。 样例输入 Sample Input 3 10 5 9 1 样例输出 Sample Output 2
    2022-08-05 17:01:05下载
    积分:1
  • openssl-1.1.0f
    openssl source code openssl source code openssl source code openssl source code openssl source code openssl source code
    2023-06-10 19:50:03下载
    积分:1
  • QC@TD
    说明:  公司内部QC@TD文档 无密级 个人编写欢迎中肯意见(Internal QC @ TD documents without dense)
    2011-04-18 10:38:22下载
    积分:1
  • SQL
    图书管理系统,能够查询,删除,添加等。 是一个非常不错的系统(Books management system management system, able to search, delete, add, etc.Is a very good system )
    2011-12-29 23:06:24下载
    积分:1
  • GA
    说明:  很好的关于遗传方面的资料 有兴趣的同志 可以和我多多探讨一下, 大家互相进步(Very good information on the genetic aspects of the comrades who are interested and I can explore a lot, you progress to each other)
    2010-11-01 15:28:20下载
    积分:1
  • FELICS
    In computer science and information theory, data compression, source coding,[1] or bit-rate reduction involves encoding information using fewer bits than the original representation. Compression can be either be lossy or lossless. Lossless compression reduces bits by identifying and eliminating statistical redundancy. No information is lost in lossless compression. Lossy compression reduces bits by identifying marginally important information and removing it. The process of reducing the size of a data file is popularly referred to as data compression, although its formal name is source coding (coding done at the source of the data, before it is stored or transmitted).
    2012-09-26 18:06:47下载
    积分:1
  • 5683851pwm
    ARM 2103 PWM example
    2011-07-29 00:48:50下载
    积分:1
  • K60-document
    k60的相关资料,可用于智能车程序的学习(k60 the relevant information can be used for the learning of the intelligent vehicle program)
    2012-09-29 20:25:10下载
    积分:1
  • 偏差频率源AD9956驱动程序
    用来驱动DDS芯片AD9956,使其合成频率信号。针对AD9956的优良特性,实现频率和相位的控制。(It is used to drive DDS chip AD9956 to synthesize frequency signal. Aiming at the excellent characteristics of AD9956, frequency and phase control is realized.)
    2020-06-17 23:20:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载