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
上传用户:离殇
java 开发的邮件服务器平台。支持以下协议。 协议可以修改为自己的专门标识,这个版本绝对能用,我自己的邮件服务器就是使用这个开源项目,修改后架设的,据说21cn也是用这个引擎开发的邮件系统。SMTP转发的时候需要二次开发。 Item Status Since First released SMTP server Stable 1.0 0.95 Mailet Engine Stable 1.2 0.95 FileSystem mailboxes/spool Stable 1.2 1.0 RDBMS mailboxes/spool Stable 1.2 1.2 POP3 server Stable 1.1 1.0 RDBMS - Users Stable 1.2.1 1.2.1 LDAP Support - Users Experimental 1.2 1.2 TLS Support - POP3 Experimental 1.2 1.2 Remote Manager Stable 1.0 1.0 TLS Support - Remote Manager Stable 1.2 1.2 NNTP server Experimental 1.2 1.2 FetchPOP Experimental 2.1 2.1
上传时间: 2014-01-19
上传用户:zhouchang199
载入txt文件迷宫,含几种搜索方法,例如depth First search, breadth First search等
上传时间: 2015-03-13
上传用户:3到15
Pocket 1945 is a classic shooter inspired by the classic 1942 game. The game is written in C# targeting the .NET Compact Framework. This article is my First submission to Code Project and is my contribution to ongoing .NET CF competition.
标签: classic game inspired shooter
上传时间: 2014-02-10
上传用户:康郎
一个程序,用于判定给定的文法是否为LL(1)文法。 实现了:1.文法的机内表示;2. First集和FOLLOW集的计算; 3. LL(1)预测分析表的构造。
标签: 程序
上传时间: 2015-03-30
上传用户:yzy6007
本程序将用户信息设计成一个类,使用对象模拟对 象数据库,将用户信息保存到数据文件中。并实现打开 文件,保存文本,添加&删除用户信息等功能。 在运行的过程中,用户须先填上自己的姓名、性别 ,然后选择自己所在省份、城市。点击“Add”按钮, 该用户信息即可添加进面板左边的文本区,点击 “Delete”时,可删除该用户的信息,点击“Open”可 打开一个文件,点“Prior”可将该用户信息上移一行, “Next”下移一行,“First”上移至文本区第一行, “Last”信息下移至最后一行,“Save”保存左边的文 件为一个文本文档。
上传时间: 2015-03-31
上传用户:253189838
TOYFDTD1 is a stripped-down minimalist, 3D FDTD code demonstrating the basic tasks in implementing a simple 3D FDTD simulation. An idealized rectangular waveguide is modeled by treating the interior of the mesh as free space and enforcing PEC conditions on the faces of the mesh. A simplified plane wave source is inserted at one end. First released 12 April 1999. Version 1.03 released 2 December 1999.
标签: demonstrating stripped-down implementing minimalist
上传时间: 2013-12-21
上传用户:无聊来刷下
The code assumes a two-dimensional computational domain with TMz polarization (i.e., non-zero field Ez, Hx, and Hy). The program is currently written so that the incident field always strikes the lower-left corner of the total-field region First. (If you want a different corner, that should be a fairly simple tweak to the code, but for now you ll have to make that tweak yourself.) I have attempted to provide copious comments in the code and hope that a knowledgeable C programmer can quickly map the approach as described in the paper to what is in the program.
标签: two-dimensional computational polarization non-zero
上传时间: 2013-12-13
上传用户:cylnpy
本程序主要实现预测分析表的构造,并求First和follow集
上传时间: 2015-04-27
上传用户:vodssv
The code is fairly straightforward, except perhaps for the call to convertColumnIndexToModel. That call is necessary because if the user moves the columns around, the view s index for the column doesn t match the model s index for the column. For example, the user might drag the Vegetarian column (which the model considers to be at index 4) so it s displayed as the First column — at view index 0. Since prepareRenderer gives us the view index, we need to translate the view index to a model index so we can be sure we re dealing with the intended column
标签: convertColumnIndexToModel straightforward perhaps fairly
上传时间: 2013-12-10
上传用户:it男一枚