Hello everyone! This is the first time I’m posting something on SPOJ discuss. I tried solving https://www.spoj.com/problems/BSEARCH1/ But unfortunately, the IDE gives a WA. Could someone please help?
Problem solved