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

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

Hey,

I was just up solving Codeforces Round #837 (Div. 2). And, despite optimizing the solution to problem C to the greatest extent possible in terms of time complexity, my java code still gives TLE on test case 3, whereas the same implementation with the same logic works perfectly in C++.

My solution: here C++ solution: here

Even Magenta Cobra is unable to solve the problem in java: his solution

The worst part is that these scenarios are not uncommon; in fact, I experience them on a regular basis. I would greatly appreciate it if you could advise me on a workaround for this.

Be epic, Ayush

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

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

Автор creativegiant, история, 2 года назад, По-английски

I'm not sure if this happens to everyone, but when I'm able to solve a problem in a contest (generally C in Div2) that was supposed to be a little challenging for coders rated like me in a very short time, I get a little too excited and lose focus, which causes me to repeatedly fail to solve Problem D's in Div2 Contest, despite the fact that I can solve them relatively very easily off-contest.

Is there a way to get past this, or I'll have to learn it with practice?

(road to expert)

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

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