It seems like FILE* (fopen) might be 50% faster in some cases, and you 
might get another 10% if you use ReadFile to do overlapped File IO.  (I'm 
assuming no SSD's here)

However, is 60% performance enough to meet your target?  If not, you might 
have to look for other types of performance improvements.  Personally, I 
haven't encountered a Code Jam problem yet where reading the input took 
enough resources to warrant any consideration of alternate tool-chains.  
(And I've been using C# mostly, which should be even slower...)

Which problem are you looking at again?

Good luck,
Bob

> On Friday, March 29, 2013 1:46:42 PM UTC-4, Adii wrote:
>
> > Yes,I am using c++ and compiler vc++ and i am not able to take input 
> > through command line. And fstream method would be very time consuming 
>
>

-- 
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 google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-code/-/Fx_TruTYmSkJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to