Problem solving general help

What could be the problem if for TC <= 3 I am getting AC, But for TC <= 100 I am getting WA. even though the limits are the same for a problem in number theory?