You Rsquo Re Given Double Linked List Of Double Linked Lists To Find The Amount Of E 732942

You’re given double linked list of double linked lists. To find the amount of each of the subloop, and then the product of the sums.

Input: Number N that tells how many lists there are M number that tells how many items are in each list in the next M lines is the data 1 <= A <= 1000 for each of the lists.

Output: A number that is the product of the sums of the lists. With seven decimals.

Sample input: 3 4 1 2 3 4 2 3 4 5 6 7 8 9

Output: 1400

Sample input

Sample output

4

2352000

4

 

6 13 16 7

 

7 23 9 11

 

8 0 8 19

 

6 6 9 11

 

3

823200

8

 

20 22 11 20 22 24 8 13

 

5 6 10 16 3 13 5 2

 

17 0 18 13 8 18 6 18

 

4

366743280

10

 

21 18 13 1 13 21 15 15 10 11

 

16 8 16 16 7 7 21 4 0 21

 

24 1 12 8 9 17 18 20 24 12

 

18 12 21 7 20 19 24 0 22 15

 

3

7755264

17

 

5 22 12 2 9 12 5 13 11 20 22 18 3 17 6 19

 

20

 

20 18 5 11 2 7 15 22 7 1 10 22 18 1 1 8 8

 

7 10 13 19 19 20 2 1 8 24 0 13 23 6 12 6 21

 

3

365310

6

 

9 19 17 1 3 5

 

19 22 24 23 19 16

 

13 5 9 18 7 3

 

6

234137861650

6

 

9 9 17 12 22 17

 

21 12 16 16 18 12

 

8 0 1 2 20 24

 

13 8 20 17 24 19

 

23 4 0 10 16 24

 

22 9 4 18 3 11

 

5

79861991040

14

 

16 3 13 12 14 8 3 22 4 8 0 5 1 7

 

18 13 10 23 18 15 13 6 2 23 13 11 15 15

 

4 19 15 3 20 4 15 4 4 21 6 1 16 6

 

24 18 22 8 0 0 16 6 24 3 5 10 1 19

 

20 11 3 22 22 4 14 7 6 1 14 12 13 15

 

6

21722772456000

13

 

9 6 24 17 16 17 7 13 22 14 2 4 17

 

10 20 18 19 2 4 5 24 7 9 14 7 11

 

24 22 17 24 15 21 22 4 1 1 13 21 3

 

6 16 4 24 11 10 3 21 14 20 8 11 9

 

13 15 1 12 19 6 10 22 11 10 10 24 24

 

14 6 6 21 21 1 17 14 2 11 19 23 10

 

7

12885948986421420

18

 

22 6 23 1 9 1 14 11 23 5 13 0 18 5 0 18 6 24

 

15 7 15 0 8 0 5 8 6 20 21 23 18 21 13 9 0 12

 

12 24 1 4 19 24 17 0 23 9 18 13 15 2 6 5 6

 

23

 

13 1 0 2 17 7 15 16 15 20 1 11 9 16 21 13

 

15 15

 

19 5 9 23 6 2 14 9 13 18 12 8 2 1 18 23 4 21

 

19 13 1 13 7 6 2 8 2 5 5 14 11 11 3 23 3 16

 

1 16 16 10 21 17 22 9 15 3 14 14 8 1 6 10 7

 

20

 

8

525136114863360000

16

 

10 15 7 1 11 6 23 1 1 13 3 11 6 18 7 12

 

6 17 11 12 19 1 20 2 2 13 10 13 11 13 21 4

 

23 5 0 6 2 24 24 1 20 17 0 23 12 0 15 20

 

11 12 10 16 12 1 21 7 0 0 5 21 2 16 0 9

 

3 21 3 8 23 12 20 19 19 15 7 14 18 5 20 15

 

16 0 0 1 0 14 20 14 16 3 12 12 2 4 1 14

 

15 6 6 14 12 19 14 8 23 18 12 11 7 0 16 7

 

6 5 13 11 16 15 2 3 1 5 13 12 13 17 4 4

 

Prof. Angela

4.6/5

Calculate Price


Price (USD)
$
Open chat