1999 LSU Computer Science High School Programming Contest
Novice and Veteran Problem 5
How much older than me are you?

Many people quite often want to know how much older (or younger) they are than their friends.

You will be given pairs of birthdates and you are to determine how many days older the oldest is than the youngest. All dates will be between January 1, 1910 and December 31, 1999. The format of the date will be month, followed by day, followed by year for the first date and then the same information for the second date. Each input item will be on a separate line. Terminate the program when the month of the first date is a -1.

Example Input:

8 
4 
58 
5 
21 
57
1 
15 
85  
6 
25 
96
12 
27 
78  
7 
11 
75
-1

In the first example above, the first date is 8/4/58 (August 4, 1958) and the second date is 5/21/57 (May 21, 1957).

Sample Output:

8/4/58 is 440 days after 5/21/57      
1/15/85 is 4179 days before 6/25/96    
12/27/78 is 1265 days after 7/11/75    

NOTE: The exact spacing above is not critical. Having date is # days before or after date is. Specifying date as day/month/year is imporant, but spacing is not critical.



Return to the Top of Page, First Page, Novice Problem Set, or Veteran Problem Set.


Clarifications:







Return to the Top of Page, First Page, Novice Problem Set, or Veteran Problem Set.





The statements and opinions included in these pages are those of the LSU High School Programming Contest Staff only. Any statements and opinions included in these pages are not those of Louisiana State University or the LSU Board of Supervisors.
© 1999 LSU High School Programming Contest

Return to the LSU High School Programming Contest Homepage