Alice and bob problm

getting run error in one test case

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

https://hack.codingblocks.com/contests/c/512/1013

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

Constraints are not satisfied by the test cases. I increased 10^5 to 2*10^5 and it worked. Check this.