10552 - Genealogical Research

All about problems in Volume 105. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
cauchy
New poster
Posts: 9
Joined: Thu May 29, 2003 11:37 pm
Location: Poznan

10552 - Genealogical Research

Post 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?
Larry
Guru
Posts: 647
Joined: Wed Jun 26, 2002 10:12 pm
Location: Hong Kong and New York City
Contact:

Post 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 -
cauchy
New poster
Posts: 9
Joined: Thu May 29, 2003 11:37 pm
Location: Poznan

Post 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
rampage
New poster
Posts: 3
Joined: Thu Feb 16, 2006 5:53 pm
Contact:

10552

Post 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...:)
rampage
New poster
Posts: 3
Joined: Thu Feb 16, 2006 5:53 pm
Contact:

Post 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...
Post Reply

Return to “Volume 105 (10500-10599)”