ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Разделы > Linear Data Structures: Arrays > задача:


50449 - The biggest result

Гость
• Вопросы к жюри (3)

Задачи раздела

• 51083 - Grades Histogram
• 51084 - Reflect a matrix
• 51011 - Decoding the Path
• 50515 - Lines - Revisited
• 51088 - Number of letters
• 50913 - Manhattan Distance
• 51125 - Filling an Array 3
• 50824 - Sum of Group Maxes
• 50449 - The biggest result
• 51172 - The biggest Minute
• 51085 - xyx Divisible by k
• 51087 - Are they the same?
• 50442 - Polynomial Addition
• 51015 - Student Scholarships
• 50982 - A thief in labyrinth
• 51091 - Guess the number - 1
• 51008 - Sum of Regional Maxes

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
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