|
|
back to boardHint for C++ 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... |
|
|