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: Quadratic Functions
Description You are to process a sequence of M queries of two types:
Input The first line consists of one integer: M (number of queries). (2 ≤ M ≤ 106)
Output For each computation query, print a line consisting of one integer which denotes the global minimum value. Assume the absolute values of the answers are no more than 2 × 109. Sample Input 2 I 1 2 1 Q 1 Sample Output 4 Source POJ Monthly--2007.10.06, Amber(hupo001)@POJ |
[Submit] [Go Back] [Status] [Discuss]
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator