Python based Traffic pattern ITS

Cerrado Publicado hace 4 años Pagado a la entrega
Cerrado

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.

Machine Learning (ML) Matemáticas Python Arquitectura de software Estadísticas

Nº del proyecto: #19252070

Sobre el proyecto

20 propuestas Proyecto remoto Activo hace 4 años

20 freelancers están ofertando un promedio de $35 / hora por este trabajo

augurstech

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

$25 USD / hora
(95 comentarios)
8.2
liveexperts123

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

$45 USD / hora
(121 comentarios)
7.7
Vlzinch

Hi! I’m an experienced Python developer, with more than 7 years in freelance and hundreds of successfully completed projects. Data science is one of my main fields of knowledge, so I definitely can help with your pro Más

$45 USD / hora
(32 comentarios)
7.5
DevStar925

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.

$44 USD / hora
(68 comentarios)
7.3
ValueCoders

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!

$41 USD / hora
(84 comentarios)
6.7
matlabxperts

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

$35 USD / hora
(91 comentarios)
7.4
schoudhary1553

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

$25 USD / hora
(90 comentarios)
6.7
umg536

Hello there, This is a default bid made. we'll discuss the price later in the chat after reading your project i can do this for you perfectly.I still have a few questions. please leave a message on my chat so we can di Más

$45 USD / hora
(22 comentarios)
6.2
Fortut

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.

$35 USD / hora
(107 comentarios)
5.9
suju8811

My name is Pavel. A freelancer. I am a python developer. My main skill is web developing. My full stack course is django/react.js^angular/postgresql+external databases like firebase, aws dynamoDB. I am also good at me Más

$41 USD / hora
(23 comentarios)
6.0
itoasis1

Hi. I have review your project description. I have full experiences in Algorithm app Development. I can help you to make proper decision for each days selling over the span of D days!!!! I am very interested in your Más

$26 USD / hora
(20 comentarios)
4.8