Obedient string @wrong ans

https://ide.codingblocks.com/s/51642
https://hack.codingblocks.com/contests/c/512/348

showing wrong ans in one of the test cases. plz tell me my mistake.

Hi Ayush, your code prints true when I enter any single character whereas the question states that the first character should only be ‘a’.

1 Like

https://ide.codingblocks.com/s/51653

it is still showing wrong ans in 1 test case

Consider the following case, abbac
This gives true whereas the question states that each ‘a’ should be followed by nothing or ‘a’.

1 Like

i dont know what else to add , i thought i have taken care of that in the first ‘‘if’’ loop.plzz tell me what else to add