Problem Statement:
Lexa is an employee at XYZ. She wants to build a computing instance, to build one she needs to put together three components Processor, RAM, and SSD. She has multiple specs of each of the components, and the cost of them in an array P, R, and S. Each instance to assemble would cost her (Px + Ry)*(Ry + Sz). But at any instance, she does not want Ram cheaper than other components.
Find the total cost of all possible instances.
Input.
The first line contains the number of test cases.
For each test case contains three integers, the number of specs she has for the Processor, RAM, and SSD.
The second line contains the various prices of Processors.
The third line contains the various prices of RAM.
The fourth line contains the various prices of SSD.
Output.
Every test case contains a single line, the required cost to assemble all possible instances.
asked in NUTANIX 2019-2020 placement
Recommended Posts:
- Nutanix Interview Experience | Set 5
- Nutanix Interview Experience | Set 4
- Nutanix Interview (On Campus for Internships)
- Nutanix Interview Experience | Set 2 (On-Campus)
- Nutanix Interview Experience (On-Campus)
- Nutanix Interview Experience 2018
- Nutanix Interview Experience | Set 1 (On-Campus for Internship)
- Nutanix Interview Experience (On-Campus 2018)
- Nutanix Interview Experiance - Campus Placements
- Nutanix Interview Experience | Set 3 (On-Campus for Internship)
- Nutanix CTO Team Interview Experience for 3yrs Experienced
- Nutanix Interview Experience for MTS - QA (4+ year experience) [ Language - Python ]
- Sprinklr Placement Interview Experience
- CGI Interview Experience | (Campus placement)
- Cognizant Interview Experience | On Campus Placement
- Oracle Interview Experience | Set 53 (Placement Drive)
- Google Interview Experience | Set 2 (Placement Questions)
- ValueLabs Interview Experience (Placement Drive)
- BuyHatke Interview Experience | FTE - Campus Placement
- Microsoft on Campus Placement and Interview Questions
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


