Problem

Submissions

0

Avg. time to solve

20 min

Success Rate

80%

Problem Statement

```
The very first line of input contains an integer ‘T’ denoting the number of test cases.
The first and the only line of every test case contains two space-separated positive integers ‘M’ and ‘N’.
```

```
For each test case, print the result obtained after multiplying these two numbers.
```

```
The result can be very large. So, print the answer modulo 1000000007.
You do not need to print anything, it has already been taken care of. Just return the result.
```

```
1 <= T <= 10
1 <= M, N <= 10^8
Time Limit: 1 sec
```

```
2
5 10
3 9
```

```
50
27
```

```
For the first test case we have, M = 5 and N = 10. Therefore our result is M*N = 5*10 = 50.
For the second test case we have, we have M = 3 and N = 9. Therefore our result is M*N = 3*9 = 27.
```

```
3
1 5
3 4
1 1
```

```
5
12
1
```

Console