TLE on GSS1

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

It worked, thanks! :slight_smile:

1 Like