creativegiant's blog

By creativegiant, history, 2 years ago, In English

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

Full text and comments »

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

By creativegiant, history, 2 years ago, In English

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)

Full text and comments »

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