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 1048. Superlong Sums

Hint for C++
Posted by Valdemar 3 Dec 2011 22:49
If you use C++, use scanf and printf instead of cin and cout.
When my programm work with cin and cout 1.2s, when i replace them on scanf and printf programm work 0.6s!!!:)
Re: Hint for C++
Posted by Yerlan 29 Dec 2012 23:27
10x so much! )
Re: Hint for C++
Posted by tqti 13 Oct 2013 22:02
ios::sync_with_stdio(false);
make it faster;
Re: Hint for C++
Posted by asdvv 29 Jun 2014 10:50
but i use "cin" and "ios::sync_with_stdio(false);"
it also TLE
then replace with "scanf", it AC...
i can't find the reason...