Блог пользователя ved_vijay_d

Автор ved_vijay_d, 4 года назад, По-английски

I used a vector of strings to solve this problem — https://codeforces.com/problemset/problem/4/C

I got a TLE on this, afterwards I saw some other people used map instead of a vector. Could someone kindly inspect my code and explain where I went wrong and tell me why using map is better. My code — https://codeforces.com/contest/4/submission/85707717

Полный текст и комментарии »

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится