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 1140. Swamp Incident

It just CAN't be made faster!!!
Posted by Tbilisi SU: Andrew Lutsenko 30 Aug 2006 19:10
I have only two coordinates on a plane, and just read input. Nothing more and my prog works 0,046 sec. But in statistics there are AC's in 0,001 sec.

I wonder how can it be???
Re: It just CAN't be made faster!!!
Posted by KAV 1 Sep 2006 11:42
Quicker reading.
For example, scanf is quicker than cin.
And gets + atoi is better than scanf("%d")

Edited by author 01.09.2006 11:42
Re: It just CAN't be made faster!!!
Posted by Anisimov Dmitry (Novosibirsk STU) 27 Jan 2009 14:09
Replacing scanf->gets,atoi seems not to be enough