ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1450. Russian Pipelines

Processing input
Posted by mix (Voronezh State University) 6 Nov 2006 13:42
I've just noticed, that operators >> and << in C++ STL are
very expensive. For this problem operator>> can be called
about 124750*3 times. It tooks more than 80% of execution time.
I had been improving my solution as much as I can, but
always got TLE. With operator>> replaced by scanf it
took only 0.078 ms.