I use both and my interactive works just fine. Make sure you flush your buffer 
(e.g. with endl) before each cin since cin.tie(nullptr) disables automatic 
flushing.

On Tuesday, April 16, 2019 at 10:21:41 AM UTC-5, Shubham Nagaria wrote:
> Golf Gophers was an interactive problem that was asked recently in CodeJam 
> Round A.
> 
> I used fast IO during the contest but I was getting TLE verdict because i was 
> using :
> 
> ios_base::sync_with_stdio(false);cin.tie(NULL);
> 
> After the contest, when I tried to run it without the above line of code it 
> passed. 
> 
> Now this line of code is being used by C++ programmers for ages for fast IO 
> but for some reason it didn't work during the contest.
> 
> Can we not use fast io in interactive problems or is this a bug in compiler?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/5ba4b2a3-0254-4139-9b88-59df94e21ad2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to