# DCP 121 - My Girlfirend

Dev Skill archived problems can be discussed here.

### DCP 121 - My Girlfirend

Problem: http://devskill.com/CodingProblems/ViewProblem/121
I Can't Get The Test Cases...
For Test 1 what I Got:
N_D_M_L
2_2_5_3
.
2 Girlfriends Give Me Time as Days from
(0 - 3) and (5 - 8)
And I have to study as from days ( 0 - 1), ( 2 - 3), (4 - 5), (6 - 7), (8 - 9)
And as I have to go to date at every Dth day ( Starting from 0) I will go then at Day No: 1, 3, 5, 7, 9
And I will not have any available GF at day 9 ... So how the ans could be 4?? As I am not going to date at day 4
.
The second Test case feels the Same .

Posts: 4
Joined: Mon Oct 24, 2016 11:57 am
Location: Comilla University , Comilla

### Re: DCP 121 - My Girlfirend

Firstly, I can't understand where did you find the ranges ( 0 - 1), ( 2 - 3), (4 - 5), (6 - 7), (8 - 9) ?

As I am a student I study for D days and go on a date with my available girlfriend at every Dth day.

So I will search for a girlfriend on day 2, 4, 6, 8, 10, ............................
And my available ranges are [0, 3], [5,8]

1st time I won't have any girlfriend is on day 4.
If you still can't understand don't hesitate to send me a private message.

Posts: 33
Joined: Thu Jul 28, 2016 8:14 am
Location: Amar Ekushey Hall, University of Dhaka

### Re: DCP 121 - My Girlfirend

I got the following line in the Problem ....

I am passing my days from day 0.

Thats why I asked this Question . By the Way , I solved it already . Thanks for you clarification both in Facebook & Forum .

Posts: 4
Joined: Mon Oct 24, 2016 11:57 am
Location: Comilla University , Comilla

Who is online
Users browsing this forum: No registered users and 1 guest