搜索资源列表
circlecutting
- 集装箱的装箱问题 给定一个集装箱,其长为L,宽为W和高为H,现有一批圆柱形木材,每根木材的长均为L,但是半径不同,设第i根木材半径为ri。问如何装箱,使得集装箱的空间利用率最高? 本程序要求用贪心算法解决: 贪心算法总是作出在当前看来是最好的选择。也就是说,不从整体最优上加以考虑,它所做出的仅是在某种意义上的局部最优解。 -problem given a container, its long-L, width W and H for high, the existing bat
gou1
- 从键盘输入N个数字,程序将对这些数进行由大到小的排序。程序采取的的冒泡排序法,且程序输出了其每一趟排序的具体过程-N input from the keyboard figures, the number of these procedures will be conducted importance of the ranking. The procedures Bubble Sort of law and its procedures output per trip sequencing of
ftp
- scr ipt per inviare via ftp le immagini ad un server remoto, lo scr ipt processa le immagini in ordine cronologico
ferry
- 某汽车轮渡口,有n辆车要过河。n辆车只有两种要么是客车,要么是货车。已知过江渡船每次能载10辆车,从0分开始每10分钟来一次(即0分一辆,10分一辆,以此类推)。又知上渡船要遵守下述规定:若x分来了一辆渡船所有到大渡口时间<=x分且还没过河的车辆才可能上船,且客车先于货车上船,每上4辆客车必上1辆货车,这时若没有货车就上客车,若没有客车就上货车。试编写一个程序,模拟渡口的管理,统计客车和货车的平均等待时间。 输入格式: 第一行一个正整数n(1000 <= n <= 10
llkz
- 这代码的功能是计算关于网络上传和下载速率,即每秒钟上传多少kb和下载多少kb。-This function code is to calculate the upload and download speeds on the network, that is how many kb per second upload and download How many kb.
rates
- 一个能源供应问题的c++源代码,需要调用CPLEX优化软件。- Assume you run a power supply company. You have several power generators // available, each of which has a minimum and maximum production level and a // cost per unit output. The question is which generators to u
telephone_billing
- 问题的提出:编写一个长途电话计费程序,计费规则是每6秒钟0.06元,要求能输入发话地、收话地,输出话费。-Of the problem: write a long-distance telephone billing procedures, billing rules is $ 0.06 per 6 seconds, the requests can be input to the speaker, the closing words, the output calls.
LAB10_E1
- Calculate the salary of the employee by hours and save it as records, output the infomations, the total salary is calculated by the total hours and salary per hour. Question: 1. Write a program to read FIVE (5) employees’ records from the keybo
Expression-evaluation
- 输入中缀算术表达式S,S中的操作数为非负整数,只含+,-和*,/运算,也可能含有括号(),运算符的计算顺序和实际四则运算的计算顺序相同. 输出表达式S的值. 注意除法运算只取整数部分,例如1/2=0. Input 输入有多组数据. 每组数据是一个算术表达式S,S的长度不超过100. 输入的S保证合法,而且不包含多余的空格或制表符. S的操作数、中间结果和最终结果都不会超过int类型的范围,也不会出现除数为0的情况. 输入以#号结束. Output 对于每个算术表达式S,输
findspeed
- Physics formula of speed and find the speed of car in meter per second
realtime-particle-based-fluid-simulation---progra
- sph fluid:The base program renders particle systems using JOGL (Java ... JOGL: A Beginner s Guide and Tutorial ... By default, the simulation will perform several time steps per frame. .... More interesting scenes: Dropping water in a box is only so
Modern-Periodic-Table-Project-in-C
- Modern Periodic Table Project in C. The Modern Periodic Table project in C is a simple console application built without the use of graphics. It is developed using the C programming language for the purpose of storing name, symbol, atomic number
test1
- Airport simulation, : The user must supply the number of time intervals the simulation is to run, the expected number of planes arriving, the expected number of planes departing per time interval, and the maximum allowed size for runway queues. Pos
lab02
- f(n)=f(n-1)+f(n-2) f(0)=f(1)=1,求斐波那契数列第20项,分别用循环和递归的方式,比较时间效率。提示:可以使用c函数clock取出当前系统时间,计算前后各一次,两次相减除以每秒的时钟数,就可以得到以秒为单位的差距-f (n) = f (n-1)+ f (n-2) f (0) = f (1) = 1, Item 20 seeking Fibonacci number Fibonacci sequence that were circulating and recursi
PA1-2(1)
- 描述 公司有n个员工,编号1 ~ n。员工数量众多,需要你为他们编写一个管理系统。 员工上班时都要登录管理系统登记一个code,离开要从管理系统上注销,员工也可以随时更新自己的code。到了下班时间,所有员工都会自动注销。公司管理人员随时都可能想要知道有多少员工上班,以及任一员工登记的code。 输入 第一行两个整数n、m。接下来m行,每行都是以下内容之一: I a c //Log In:员工a登录,code为c。若a已登录,则将code更新为c