|
|
вернуться в форумuse printf and scanf instead of cin,cout; Thank you! Very useful hint with cin,cout my programm get TLE on test 21 Or use cin.sync_with_stdio(false); 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 ios_base::sync_with_stdio(false); cin.tie(0); with map 0.249s.with unorderd_map 0.171s. |
|
|