![]() | ||||
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 II
Description Given N real numbers a1, a2, ¡, aN, you are to write a program to calculate P as defined below. Input The input consists of several test cases. Each test case consists of two lines:
Output For each test case, output P in scientific notation in a single line. If P is equal to zero, output ¡°0.000¡±. If 1 ¡Ü |P| < 10, output P directly with its fractional part rounded to three decimal places. In any other cases, output P in the format xEn where P = x ¡Á 10n (1 ¡Ü |x| < 10 and n is an integer). x should also be rounded to three digits after decimal point. Sample Input Sample Output Hint Source |
[Submit] [Go Back] [Status] [Discuss]
All Copyright Reserved 2003-2005 Ying Fuchen,Xu Pengcheng
Any problem, Please Contact Administrator