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 |

Language: Max Sequence II
Description Given P as defined below.Input The input consists of several test cases. Each test case consists of two lines:
a| ≤ 30 for all _{i}i s.t. 1 ≤ i ≤ N) which are either integral or accurate to one digit after decimal point.
Process to the end of input. Output For each test case, output x| < 10 and n is an integer). x should also be rounded to three digits after decimal point.Sample Input 5 -5.0 2.0 3.0 -2.0 0.5 3 -1 0 -1 Sample Output 6.000E1 0.000 Hint Built-in floating-point types provided by the compilers may not hold P.Source POJ Monthly--2006.05.28, Static |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator