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
上传用户:离殇
短信收发控制(AT命令),OCX源码,可支持PDU、UNICODE编码
上传时间: 2013-12-26
上传用户:gxmm
调制解调器AT指令集
上传时间: 2015-02-08
上传用户:wuyuying
SonyEricosson常用AT命令手册_V1[1]
标签: SonyEricosson 命令手册
上传时间: 2015-02-09
上传用户:huannan88
gsm at中文指令集
上传时间: 2015-02-10
上传用户:thesk123
紫微斗數排命盤算命軟體
标签:
上传时间: 2014-01-02
上传用户:894898248
gsm模块AT指令代码
上传时间: 2015-02-15
上传用户:qq21508895
AT Commands for GPRS
上传时间: 2014-01-08
上传用户:wangchong
AT Commands for FAX
上传时间: 2015-02-18
上传用户:gaome
at command for pda
上传时间: 2015-02-18
上传用户:CSUSheep