We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Apply
  • Hiring developers?
  1. Prepare
  2. Mathematics
  3. Linear Algebra Foundations
  4. Linear Algebra Foundations #1 - Matrix Addition

Linear Algebra Foundations #1 - Matrix Addition

Problem
Submissions
Leaderboard
Discussions

Matrix Addition

Add the two matrices given below and find the integers corresponding to , , , , , , , , and :

[1  2  3]       [4  5  6]     [a b c]
[2  3  4]   +   [7  8  9]  =  [d e f] 
[1  1  1]       [4  5  7]     [g h i]

To submit your answer, enter the resultant values of each of the nine integers (i.e., , , , , , , , , and ) on a new line and click Submit Code.

Input Format

There is no input for this challenge; calculate the values of through using the matrices given above.

Output Format

In the text box below, enter the values of each of the nine integers on a new line. You must have a total of nine lines of output and the integers must be printed in order (i.e., , , , , , , , , and , respectively).

Sample Output

1
2
3
4
5
6
7
8
9

Author

PRASHANTB1984

Difficulty

Easy

Max Score

2

Submitted By

10166

Need Help?


View discussions
View top submissions

rate this challenge

MORE DETAILS

Download problem statement
Download sample test cases
Suggest Edits
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy