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

Common Board

Problem with new C compiler
Posted by tiancaihb 7 Aug 2010 13:07
As they changed the compiler, I tried to re-submit some of my solutions, (in order to get a higher rank in the Rating page :)  )
In that problem 1100, there's lots of I/O staff, so I wrote a brief function to accelerate. Generally, it tried to in/output numbers by characters, using getchar() and putchar(). It did work.
However, I find the result now very disappointing. Previously 0.046s, but now 0.291s. Even slower than to use scanf() and printf() !!
I don't know why this happens, but I hope there's some way to improve...
Re: Problem with new C compiler
Posted by tiancaihb 7 Aug 2010 13:19
I don't really like this VC compiler thing... I think the old Intel one is much better.
Yep. You are true.
Posted by MaNUTD 7 Aug 2010 13:45
Don't use cin && cout.
Use scanf and printf

Edited by author 07.08.2010 13:47
Re: Yep. You are true.
Posted by tiancaihb 7 Aug 2010 14:11
Yeah I use C not C++. On most occasions it doesn't really matter 0.1s or 0.5s but sometimes I just wanna be a little quicker :)