DWITE '11 R5 #1 - Age Gate

View as PDF

Submit solution

Points: 3
Time limit: 2.0s
Memory limit: 64M

Problem type
DWITE Online Computer Programming Contest, October 2010, Problem 1

DWITE has traditionally been a high school level contest, so to ensure that no middle schoolers try to sneak in and make older students feel uncomfortable, an age gate is being considered.

The input will contain 5 lines, each having 3 integers representing a person's birth date, in the form of DD MM YYYY (separated by spaces).

The output will contain 5 lines of output, decisions if the participant is at least 13 years old as of 27/10/2010 or not. Print old enough or too young depending on the age.

Sample Input

28 10 1997
27 10 1997
26 11 1997

Sample Output

too young
old enough
too young

Problem Resource: DWITE

Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported