Doubt in SEASTR

Since the answer for the test case :
1
aaaaaa
a
1 1 100
is 5
But, some codes giving the answer as 2 also got AC. How is that possible???
Correct me if I am wrong.
Thanks in advance.

Can you give the link to that AC code