2 data
,father
,son
:array [0..100] of longint;
3 flag
:array [0..100] of boolean;
6 procedure dfs(root
:longint);
14 if father
[i
]=root
then
33 fillchar(father
,sizeof(father
),0);
34 fillchar(flag
,sizeof(flag
),false);
39 if (father
[p
]=0) and (son
[p
]=0) then break
;