HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Array and Matrices > problem:


50449 - The biggest result

Guest
• Review clarifications (3)

Volume problems

• 50496 - Falling Bricks
• 50802 - Comparing Exams
• 50785 - Swimming Contest
• 50866 - Buy the cheapest
• 50517 - Confusion Matrix
• 50515 - Lines - Revisited
• 50999 - Overlapping Trips
• 50507 - Sequential Numbers
• 50449 - The biggest result
• 50442 - Polynomial Addition
• 50434 - Row Min Subtraction
• 50870 - ZScore normalization
• 50869 - Birthday Celebration
• 50821 - Derivative of an array
• 50513 - Climbing Up the Stairs
• 50854 - Area of Triangle Revised
• 50520 - Filling a Matrix Randomly

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Question by Ibrahim Mesecan.

The biggest result

Question: Write a program that reads n arithmetic operations and then the program finds the biggest result.

Input specification
You will be given an integer in the first line: n, the number of operations where 1 ≤ n ≤ 10,000. Then, in the following n lines you are given two space separated numbers where they are integers between -2E4 and -2E4. Then, in the following n lines you will be given the operators. There are only 4 possible operations given: +, -, *, and /. Pay attention that division operator may produce floating point result.

Output specification
Do the given operations on the given numbers. Then show the biggest result. (Do not print in scientific format )

Sample Input I
3
3 4
-9 7
1 8
*
+
/
Sample Output I
12

Note: The results from the given operations:

  1. 3 * 4 = 12
  2. (-9) + 7 = -2
  3. 1 / 8 = 0.125
So, the biggest result is 12.



Для отправки решений необходимо выполнить вход.

www.contester.ru