Tug of War(A tug of war is to be arranged at the local office picnic. For the tug of war, the picnickers must be divided into two teams. Each person must be on one team or the other the number of people on the two teams must not differ by more than 1 the total weight of the people on each team should be as nearly equal as possible. The first line of input contains n the number of people at the picnic. n lines follow. The first line gives the weight of person 1 the second the weight of person 2 and so on. Each weight is an integer between 1 and 450. There are at most 100 people at the picnic. Your output will be a single line containing 2 numbers: the total weight of the people on one team, and the total weight of the people on the other team. If these numbers differ, give the lesser first. )
上传时间: 2014-01-07
上传用户:离殇
A Real Time Linux 一篇介绍如何在Linux这样时间共享操作系统之上添加硬实时功能的方法。
上传时间: 2014-01-09
上传用户:a6697238
一个关于DSP 的小程序
上传时间: 2015-01-25
上传用户:ynwbosss
The source code in a tutorial.
上传时间: 2015-01-25
上传用户:坏天使kk
A source code for gragh
上传时间: 2014-01-17
上传用户:love1314
C++ Source code from a tutorial
上传时间: 2015-01-25
上传用户:daguda
开发环境为visual dsp++3.0的FIR程序模块
上传时间: 2015-01-26
上传用户:a3318966
开发环境为visual dsp++3.0的复数FIR滤波器源码
上传时间: 2014-01-06
上传用户:yimoney
开发环境为visual dsp++3.0的复数DFT源码
上传时间: 2013-12-26
上传用户:netwolf
开发环境为visual dsp++3.0的DSP高速端口测试程序
上传时间: 2015-01-26
上传用户:阳光少年2016