Best Date for Dating

Andrew calls a date romantic if the sum of the numbers assigned to the day and the month in the date equals to the number formed by last two digits of the year. For example, one such example is Valentines' Day 2016 (14/02/201614/02/2016) as 14+02=1614+02=16.

On Valentine's day, Andrew goes on a romantic date with his girlfriend and impresses her with many surprises. Andrew's girlfriend likes the Valentine's Day date a lot and demands Andrew that they have more dates on romantic dates.

How many romantic dates are still available in the year of 2016, on which it is possible for Andrew to go on a date?

Details And Assumptions:

  • Andrew and his girlfriend go on a date on a romantic date only.

  • No one denies his girlfriend's demands.

This problem is an entry to Valentine's Day Celebration Contest. If you found this submission great, upvote my comment there.

Problem Loading...

Note Loading...

Set Loading...