Python based Traffic pattern ITS
$25-50 USD / hora
We can discuss the details with candidates that successfully demonstrate proficiency through completion of our basic pre requisite screening. for Python
Sample code is available for review upon request.
Details
Tom is a salesman. He has a goal of selling T total units over the span of next D days. Because of some restrictions from his supplier he can only sell at most d(i) items in a day. Fortunately for him, his supplier has provided him a list of the maximum number of items he can sell each day for the D days in advance. Can you help him to identify in how many different ways can he sell his product over the span of D days so that the sum of the total items over those days exactly end up to T. And remember, he has to sell at least 1 product each day to maintain the title of salesman.
----------
Input Format
The first line contains T, the total units you need to sell
The second line contains D, the number of days you have to meet your goal
The third line contains D numbers, each number d(i) represent the maximum number of units you can sell for the day.
---------------------
Constraints****
0 < T <= 1000
0<D <= 200
0<d(i) <= 1000
Output Format****
A single number representing the total number of ways you can achieve your goal.
Print the answer modulo : 10^9 + 7
-------------------------
Sample Inputs below
5
3
2 3 4
Sample Output 0
5
Explanation 0
To make the sum 5, and keeping the constraint of atleast 1 sale per day, below are the following 5 ways to sell goods
1 1 3
1 3 1
2 2 1
2 1 2
1 2 2
-----------------------------------------------
Sample Input 1
2
4
1 1 1 1
Sample Output 1
0
Explanation 1
There is no way to meet his goal of selling 2 items for the next 4 days because of one of the two reasons:
If he keeps the rule of selling one item per day then he will sell more than 2 items and exceed his goal.
If he sells only two item then he wont be able to keep his title of salesman because of the at least one item per day limit.
-------
You may attach a link or send your python file in response with the test cases.
Nº del proyecto: #19252070
Sobre el proyecto
20 freelancers están ofertando un promedio de $35 / hora por este trabajo
Dear Employer, Greetings From Team Augurs. Coming to your project scope you can hire our Python developer for developing Python based Traffic pattern ITS. we have gone through the details mentioned in project Más
Hi there, I have read your project description and i'm confident i can do this project for you perfectly.I still have a few questions. please leave a message on my chat so we can discuss the budget and deadline of the Más
Hello! As you can see my profile, I am a senior PYTHON developer. I read your project description and I am interested in your project. We can discuss more details on chat. Thank you.
Hi There, I can do it very quickly & effectively. I'm having more than 20 years of web development experience. Looking forward to work with you! Thanks!
Hi, I have been working in Artificial intelligence for more than 6 years. I have completed a number of projects in pattern recognition. I can solve your test task but there is no option to attach files. please ping me Más
Hello, I have gone through your job posting and become very much interested to work with you. I am an expert in this field. I have already completed several projects like this. For evidence you can see my profile. Más
Hi. I have 7 years of Python programming experience and have a lot of projects done here. Just look at my profile. And I can send you the solution to the problem that you described in a file if you want to.