TLE on GSS1

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 :wink:

It worked, thanks! :slight_smile:

1 Like