PRTAGN - Getting WA after after giving many tries, Please help

https://www.codechef.com/viewsolution/25443586
Getting WA even though my approach is the same as the one mentioned in the editorial.

AC: https://www.codechef.com/viewsolution/25464877

Change this: “memset(myset,false,sizeof(myset[0])*100001);”

To this: “memset(myset,false,sizeof(myset));”

1 Like

thanks @hetp111 :sweat_smile: This was embarrassing.
Happy coding :+1:

1 Like