My orders
How it works
Examples
Reviews
Blog
Homework Answers
Submit
Sign in
How it works
Examples
Reviews
Homework answers
Blog
Contact us
Submit
Fill in the order form to get the price
Subject
Select Subject
Programming & Computer Science
Math
Engineering
Economics
Physics
Other
Category
C++
Software Engineering
Java | JSP | JSF
Databases | SQL | Oracle | MS Access
C
Python
Excel
C#
Visual Basic
Computer Networks
Functional Programming
Android
Assembler
UNIX/Linux Programming
ASP | ASP.NET
MatLAB
Wolfram Mathematica
MathCAD
Maple
Perl
Action Script | Flash | Flex | ColdFusion
Ruby | Ruby on Rails
Prolog
Objective-C | Swift
Algorithms
Web Development
HTML/JavaScript Web Application
NodeJS Web Application
Other
Deadline
Timezone:
Title
*
Task
*
{"ops":[{"insert":"Miss Ural wants to buy colors for Holi, and that too, at the cheapest cost!\nThere are\u00a0N\u00a0shops selling colors near Ural's house, where the\u00a0i\u2032th\u00a0shop sells colors at rate of\u00a0Ri\u00a0for one unit. Also, i\u2032th\u00a0shop is located at a distance of\u00a0Di\u00a0kilometers from her house. Life was simple, but then petrol and fuel prices soared up. The current price of petrol to travel one kilometer is\u00a0K\nFind the minimum cost at which Miss Ural can buy one unit of color. she does not need to return back home.\n\nThe first line of input contains\u00a0T, number of test cases in a file."},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"The next line contains two integers,\u00a0N\u00a0and\u00a0K, as described in the problem statement."},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"The next line contains\u00a0N space separated integers, denoting\u00a0Di, i.e. distance of the shop."},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"The next line contains\u00a0N space separated integers denoting\u00a0Ri, i.e. rate of the color."},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"\nFor test case, output minimum cost to purchase\u00a01\u00a0unit of color.\n\n1\u2264T\u226410^5"},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"1\u2264N\u226410^5"},{"attributes":{"list":"bullet"},"insert":"\n"},{"attributes":{"bold":true},"insert":"Sum of\u00a0N\u00a0over all\u00a0T in a test file does not exceed\u00a010^6."},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"1\u2264Ri,K,Di\u226410^9"},{"attributes":{"list":"bullet"},"insert":"\n"},{"insert":"\n"}]}
I need basic explanations
Special Requirements
Upload files (if required)
Drop files here to upload
Add files...
Account info
Already have an account?
Create an account
Name
*
E-mail
*
Password
*
The password must be at least 6 characters.
I agree with
terms & conditions
Create account & Place an order
Please fix the following input errors:
dummy