Always_WA14's blog

By Always_WA14, history, 5 days ago, In English

Hi codeforces community, I was solving 1820B - JoJo's Incredible Adventures and I got WA when I used s.length()*s.length(), but got AC when I used n*n (but n is the same as s.length()).

Is this supposed to happen?

299256114 is the AC code and 299255008 is the other one. Check the second "else if" statement at the end.

Full text and comments »

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

By Always_WA14, history, 9 days ago, In English

Hi, I came across many people talking about stress testing their code. What do they mean by that? Do they write a brute force and generate a large number of sample answers? or are there smarter ways to go about it?

Full text and comments »

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