DAY AFTER WEDDING <3

Each ICPC problem set has at least one easy question.
This is (probably) that problem... (if you know the required technique).

19 December 2009 is the wedding day of Steven and Grace.
It is a very special day for them.
Steven likes to count how many days have elapsed since his wedding day.
So, on 20 December 2009: 1 day has elapsed, on 19 December 2010: 365 days have elapsed, etc.
Steven can of course code this program himself, but he wants to know if you can code the solution too?

IN

18 12 2009

OUT

-1

IN

19 12 2020

OUT

4018

IN

23 5 2015

OUT

1981

IN

11 4 2015

OUT

1939

IN

19 12 2010

OUT

365

IN

20 12 2009

OUT

1

IN

19 12 2009

OUT

0


Leave a comment

Parsed as Markdown

Login to leave a comment