Link to code : https://repl.it/@NikhilAgrawal/GSS1
Link to problem : http://www.spoj.com/problems/GSS1/
What optimization should be done in the code to get AC ?
Link to code : https://repl.it/@NikhilAgrawal/GSS1
Link to problem : http://www.spoj.com/problems/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!