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

Разделы > Арифметика > задача:


50400 - nth Row rth Element of a Table

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

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

• 50305 - John's Tasks
• 50649 - Puzzle
• 50321 - Missing Number
• 50308 - IT Knowledge Seminars
• 50293 - Sum of odd numbers from ...
• 50401 - Sum of Odd Numbers
• 50365 - Sum of the numbers from a...
• 50390 - Total Salary Paid
• 50400 - nth Row rth Element of ...
• 50292 - Average of 4 Marks
• 50462 - Class Average (3 Grades)
• 50439 - Telephone Calls
• 50436 - Pocket Money
• 50288 - Even numbers in even posit...
• 50299 - Median
• 50571 - Numrat Armstrong
• 50572 - Numrat Palindrome

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

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

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Prepared by Ibrahim Mesecan.

nth Row rth Element of a Table

We frequently use tables, in computers. But normally, there is no tabular structure in the memory. Computer memory is a vectoral form series of memory locations. The data is stored in a vectoral form but whenever needed it's treated in a tabular format.

Question:
Write a program that reads a list of numbers in vectoral format, Then, you will be given the row and col positions of two elements from the table. Show the sum of these numbers

Input specification
You will be first given 2 integers: dimensions of the table (numRows and numCols) where 0 < (numRows and numCols) < 1000. The numbers in the table are integers between -30000 and 30000. Then, you will be given the row and column positions of two elements from the table. The last line will contain the numbers of the table in vector format. And, there will be at most 1000 integers in every line.

Output specification
Show just one integer number: sum of the two numbers.

Sample Input I   
  3 2
  2 2 3 1
  19 22 -14 17 19 -6  
Sample Output I   
  36


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

www.contester.ru