| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
这是题目.最好提交一下.可能测试数据很刁钻.In Reply To:谁做过浙江大学2059? Posted by:Lucifer at 2004-07-15 00:59:48 The Twin Towers -------------------------------------------------------------------------------- Time limit: 1 Seconds Memory limit: 32768K Total Submit: 1347 Accepted Submit: 208 -------------------------------------------------------------------------------- Twin towers we see you standing tall, though a building's lost our faith will never fall. Twin towers the world hears your call, though you're gone it only strengthens our resolve. We couldn't make it through this without you Lord, through hard times we come together more. ... Twin Towers - A Song for America In memory of the tragic events that unfolded on the morning of September 11, 2001, five-year-old Rosie decids to rebuild a tallest Twin Towers by using the crystals her brother has collected for years. Will she succeed in building the two towers of the same height? Input There are mutiple test cases. One line forms a test case. The first integer N (N < 100) tells you the number of crystals her brother has collected. Then each of the next N integers describs the height of a certain crystal. A negtive N indicats the end. Note that all crytals are in cube shape. And the total height of crystals is smaller than 2000. Output If it is impossible, you would say "Sorry", otherwise tell her the height of the Twin Towers. Sample Input 4 11 11 11 11 4 1 11 111 1111 -1 Sample Output 22 Sorry Author: HU, Shichao -------------------------------------------------------------------------------- Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator