|
|
вернуться в форумgot 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 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 Послано ELDVN 30 ноя 2015 23:43 Re: got AC, STL :: map Послано Haloom 27 сен 2018 12:34 ios_base::sync_with_stdio(false); cin.tie(0); with map 0.249s.with unorderd_map 0.171s. |
|
|