|
|
back to boardgot AC, STL :: map use printf and scanf instead of cin,cout; Re: got AC, STL :: map Thank you. Re: got AC, STL :: map Thank you! Re: got AC, STL :: map Thank you! Very useful hint with cin,cout my programm get TLE on test 21 Re: got AC, STL :: map Or use cin.sync_with_stdio(false); Re: got AC, STL :: map Posted by Nekto89 11 Jun 2014 12:23 sync doesn't help. scanf_s/printf got me through time limit. PS unordered_map gives little speed boost too. Edited by author 11.06.2014 12:31 Re: got AC, STL :: map Posted by ELDVN 30 Nov 2015 23:43 Re: got AC, STL :: map Posted by Haloom 27 Sep 2018 12:34 ios_base::sync_with_stdio(false); cin.tie(0); with map 0.249s.with unorderd_map 0.171s. |
|
|