![]() | ||||
Online Judge | Problem Set | Authors | Online Contests | User |
---|---|---|---|---|
Web Board Home Page F.A.Qs Announcement | Current Contest Past Contests Scheduled Contests Award Contest |
Max Sequence Time Limit:3000MS Memory Limit:65536K
Give you N integers a1, a2 ... aN (|ai| <=1000, 1 <= i <= N).
![]() You should output S. Input The input will consist of several test cases. For each test case, one integer N (2 <= N <= 100000) is given in the first line. Second line contains N integers. The input is terminated by a single line with N = 0. OutputFor each test of the input, print a line containing S. Sample Input
POJ Monthly--2005.08.28,Li Haoyuan |
[Submit] [Go Back] [Status] [Discuss]
All Copyright Reserved 2003-2005 Ying Fuchen,Xu Pengcheng
Any problem, Please Contact Administrator