ahmadexe's blog

By ahmadexe, history, 23 hours ago, In English

Hi everyone, I started CP about 2 years ago, and while I enjoy CP, I just can't get the results. During summer 2025, I started grinding from 1200's to 1300 and then 1400s. I used TLE's CP31 sheet, did the typical cses problems and did a lot of the the recent problems. After that, I started grinding all recent Div 2. from A to C. However, during this phase, I could not take many contests because I had a job during that time.

Then life got pretty busy and while I tried, there were phases where I would have a whole week without practicing. Now I left that job so I could take more contests. Since the last 2 months, I was suggested to start solving in the 1600 rating (as they told me I had enough problems solved in 1200-1400 range). I have tried to take every contest in the past 2 months and every time I get poor results. I would skip over words, sometimes won't even get simple observations right, it's these stupid mistakes every single time.

I am starting to question my cognitive ability and maybe competitive programming is too far fetched for me. If you guys could go through my profile and figure out where do I fall short, that would be great? :)

Full text and comments »

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

By ahmadexe, history, 6 weeks ago, In English

Please tell me what's going on here imma lose my stuff https://mirror.codeforces.com/contest/2192/submission/366483077

I'm handling the first case where the sum of the array perfectly divides the health. (h % sum == 0) Here the output is n * (h/sum) + k * (h/sum — 1). Since no need to reload once you've gone through the array For the second case, I'm maintaining a minimum value and checking if I replace that value with max from the suffix.

Full text and comments »

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

By ahmadexe, history, 22 months ago, In English

So I am a newbie in DFS and BFS, and was solving this problem. Surprisingly, giving TLE in 3rd testcase. I can't seem to understand where code is inefficient since time complexity is looking fine to me.

I have added some comments, which don't use the ideal terminologies but would hopefully convey what I'm trying to do

https://mirror.codeforces.com/contest/1948/submission/267884593

Full text and comments »

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

By ahmadexe, history, 22 months ago, In English

Sublime randomly stops indenting on new line and cursor starts pointing onto first character of the line instead of continuing indent. Since I am using a snippet, when I press tab to reintroduce the indentation, the tab actually moves my cursor to the end. (see video) https://www.youtube.com/watch?v=2jljt4HbwGc (issue on 29 sec) Happens on line 14

This behavior happens randomly. Also with simple declarations and even calling out functions. No idea why it happens. I don’t have much idea with indentation settings, please let me know which configuration is right one for C++ competitive programming

Here is my sublime preferences file

Full text and comments »

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

By ahmadexe, history, 2 years ago, In English

Hi all! My school is starting a CP Club but unfortunately we have no mentor right now. I understand that all the guidance is available on the internet, but our school wants us to host a live session with someone in order to increase engagement. So we need someone to give an introductory session of 20-30 minutes about basic fundamentals of competitive programming, what the journey is like, motivation, maybe share your journey. We can coordinate and host the session, and I can prepare the slides etc... If anyone is willing to be a mentor do DM me or comment below.

Full text and comments »

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