How much map STL in C++ leads to MLE?
Разница между en3 и en4, 22 символ(ов) изменены

Today I used two maps like that ↵

~~~~~↵
map<pair<char,int>,int>mp1;↵

map<pair<char,int>,int>mp2;↵
~~~~~↵






It leaded to MLE-Memory Limit exceeded.↵



I guess some solutions with like this below got accepted-↵


~~~~~↵
map<int,vector<int>>mp1↵

map<int,vector<int>>mp2;↵
~~~~~↵






Then a question comes to my mind is there some anticpated benchmarks for using maps.How less complex it should be to avoid MLE?Is there some suggestions?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский I_lOVE_ROMAN 2024-07-26 21:51:07 22
en3 Английский I_lOVE_ROMAN 2024-07-26 21:50:26 22
en2 Английский I_lOVE_ROMAN 2024-07-26 21:49:24 6
en1 Английский I_lOVE_ROMAN 2024-07-26 21:46:29 463 Initial revision (published)