DWITE '11 R5 #1 - Age Gate

View as PDF

Submit solution

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

Problem type
Allowed languages
Ada, Assembly, Awk, Brain****, C, C#, C++, COBOL, CommonLisp, D, Dart, F#, Forth, Fortran, Go, Groovy, Haskell, Intercal, Java, JS, Kotlin, Lisp, Lua, Nim, ObjC, OCaml, Octave, Pascal, Perl, PHP, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Text, Turing, VB, Zig
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

Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) Problem Resource: DWITE


Comments