Page 1 of 1

10552 - Genealogical Research

Posted: Wed Oct 01, 2003 9:12 pm
by cauchy
Hi
What's the output for:

Code: Select all

BIRTH John Doe : January 7, 1599: Adam Doe : Jane Doe
BIRTH Casper Ghost : Jan 2, 1959 : Mary Worth : John Doe
ANCESTORS Casper Ghost
BIRTH Mary Worth : May 18, 1666:Jane Doe          : Adam Doe
DEATH Mary Worth : Jan 3, 1959
DESCENDANTS John Doe
QUIT
I can not solve this problem. What is the trick?

Posted: Wed Oct 01, 2003 9:51 pm
by Larry
There shouldn't be any trick. I solved this really brute force, and got nearly the slowest time on the ranklist, but it still only ran for 0.082 s.. so time is definitely not an issue..

I get:

Code: Select all

ANCESTORS of Casper Ghost
  John Doe January 7, 1599 -
    Adam Doe
    Jane Doe
  Mary Worth

DESCENDANTS of John Doe
  Casper Ghost Jan 2, 1959 -

Posted: Wed Oct 01, 2003 11:44 pm
by cauchy
thanks. i have already got Acc. It was confusing for me whether use information form all BIRTH and DEATH commands from input or take only those which are before the command.
Thanks, anyway

10552

Posted: Fri Feb 17, 2006 12:01 pm
by rampage
Can me anybody help?

Ihave 2 questions:

Can be more then one command "ANCESTORS" (or "DESCEDANTS") in serries of commands?

Print the information about A. or D. immediately after this command with known information or wait for other information and print it after end of input?

Please be lenient with my english...:)

Posted: Sun Feb 19, 2006 10:04 am
by rampage
I have alredy known my previous questions about problem 10552, but I have one more and important one:

Can the name consit of more then two names (more then first and last name)?
For example: "Anna Maria Worth"

Please, help me...