_Awaken_'s blog

By _Awaken_, history, 20 months ago, In English

Hey everyone, I recently solved 1748B - Разнообразные подстроки in which i tried to do substrings which are diverse and of length <=100 are stored in vector and then giving size of vector returning No. of diverse strings the code is giving me runtime error on test 2 . Can someone explain the error in code .

here is the submission 180703965

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By _Awaken_, history, 21 month(s) ago, In English

Hello,

I have a query which i faced in Round #829 div 2 question 1754B - Kevin and Permutation. When i took vector of required size it is giving me runtime error that is out of bound . but when i took vector of somewhat bigger size it got accepted.

runtime error submission 180120147

accepted submission 180108219

Why the vector of enough required size giving the error??

Full text and comments »

  • Vote: I like it
  • +2
  • Vote: I do not like it