|
|
вернуться в форумwhy there is a string in test#2 doesn't show up in the map ? I insert all string that show up in the map into index (std::map<string,int> index). And I use these code to debug: string s1,s2; cin >> s1 >> s2; if (index.find(s1) == index.end() || index.find(s2) == index.end()) while (true);//if the string doesn't show up in the map,I will get TLE. ... And I got TLE #2. Who can help me? Thanks. Sorry for my poor English. PS:It's guarantee that I won't insert wrong string into index. Edited by author 17.02.2011 14:50 Re: why there is a string in test#2 doesn't show up in the map ? Test for you: 1 Himmash Nizhne_Isetskaya Good luck! :) Re: why there is a string in test#2 doesn't show up in the map ? ありがど ございます。 thanks for your test,I found I forgot a comma in my code. But passed compile. - - AC now. |
|
|