Wa in spoj program http://www.spoj.com/problems/BUGLIFE/

i have no clue why i am getting WA.

my solution : http://ideone.com/AZHX6R

this is ur AC soln…relationships are not unidirectional…:slight_smile: LINK

thanks a lot. :smiley:

1 Like

glad could help…:slight_smile:

//