Link to code : GSS1 - Replit
Link to problem : SPOJ.com - Problem GSS1
What optimization should be done in the code to get AC ?
Link to code : GSS1 - Replit
Link to problem : SPOJ.com - Problem GSS1
What optimization should be done in the code to get AC ?
Just use scanf and printf instead of cin and cout and it works like a charm
It worked, thanks!