Skip to content

Commit

Permalink
chore: day 19
Browse files Browse the repository at this point in the history
  • Loading branch information
shiwangi-07 committed Apr 14, 2024
1 parent b2c08e1 commit 1928039
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Easy/Day 19/problem.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Given is a 2×2 matrix A.The determinant of A can be found as ad−bc.
Find the determinant of the given matrix.
A = | a b |
| c d |

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Input:
First line of input contains two integers a, b.
Second line of input contains two integers c, d.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Output:
Print the determinant.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

(-100 <= a, b, c, d <= 100).
Time Limit: 2 sec
Memory Limit: 1024 MB
15 changes: 15 additions & 0 deletions Easy/Day 19/sample_tc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Sample Input 1:
1 2
3 4

Sample Output 1:
-2

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Sample Input 2:
0 -1
1 0

Sample Output 2:
1
1 change: 1 addition & 0 deletions Easy/Day 19/solution.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Write your code here.

0 comments on commit 1928039

Please sign in to comment.