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

Автор this_ability, история, 8 месяцев назад, По-английски

Salary Queries — My solutionI am still stuck at Salary Queries. Although acc to me I have followed your approach to the answer only, but I am getting TLE on CSES with some test cases getting accepted. I have tried to debug my code but I still feel it should have a T.C. less than 1e8. Can anybody help? (I have used map as well but tle)

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

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by this_ability (previous revision, new revision, compare).

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

maybe the query should be

if (l <= tl && r >= tr) {
    return t[v];
}