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
上传用户:离殇
Tutorial on ms OFFICE automation with vb .net
标签: automation Tutorial OFFICE with
上传时间: 2014-01-02
上传用户:xymbian
OFFICE 97 中『小帮手』
上传时间: 2014-12-02
上传用户:ls530720646
一个支持POP3(Post OFFICE Protocol Version 3)的MFC类
标签: Protocol Version OFFICE POP3
上传时间: 2013-12-06
上传用户:jjj0202
NTKO OFFICE文档控件JSP示例安装指南
上传时间: 2013-12-11
上传用户:change0329
这里拥有OFFICE的全部操作技巧
上传时间: 2015-02-13
上传用户:fredguo
OFFICE 2000中可以排版维吾尔文字。该程序只能在win98操作系统下正常运行
上传时间: 2013-12-09
上传用户:lacsx
pb-OFFICE xp风格菜单
上传时间: 2013-12-27
上传用户:wfeel
OFFICE 教程全套的OFFICE教程
上传时间: 2015-02-20
上传用户:妄想演绎师
如何在Web页面上直接打开、编辑、创建OFFICE文档
上传时间: 2014-01-27
上传用户:pinksun9