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

Автор rangerscowboys, история, 7 недель назад, По-английски

Hello Codeforces!

I love Codeforces contests, and I think everyone else does as well. There are a few things about Codeforces contests that I would like to discuss with the Codeforces community.

Start Time of Contest

I understand Codeforces has people from around the world. That means that the standard time won't work well for everyone. Even though the start time works for me, I appreciate Codeforces giving other people the chance for doing contests.

Date of Contest

This is the main thing I would like to discuss about. It seems like more and more Codeforces contests are occurring on the weekdays (Monday through Friday) and not on the weekends. With people here on Codeforces either having school or work, weekends are usually freer for the general population. I would suggest having more contests on the weekends. I have no control, but I would like to know what you think.

Thank you Codeforces!

UPD: Even though you may disagree, please just answer your opinion. Thank you again :)

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

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

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

My Youtube channel has many types of videos including post-contest solutions for Codeforces rounds! There are many other things as well. My videos include an explanation of my code, as well as a link to my code. I also have posted the solutions of the 8 problems in today's contest. I hope you learn a lot from my Youtube channel, and I welcome questions and suggestions.

My Youtube Channel: Mr. Coder

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

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

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

Hello Codeforces!

On today's contest, Codeforces Global Round 26, I lost a ton of rating because of many Wrong Answers and I was very slow today. Does anyone have any tips for avoiding wrong answers? Does anyone have any tips for getting faster at solving the easier problems?

Also, for today's C1, it took me forever to come up with the idea for how to solve it. When I solved it, I was so frustrated because of how simple it was. Do any of you have a way of looking at problems that helps you solve it? I've noticed that easier problems tend to have a greedy/brute force solution to it. Do you notice any tendencies of greedy methods?

Thanks!

UPD: Even if you think that I am stupid and downvote, please answer my questions to the best of your ability. Thanks again!

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

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

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

Howdy Codeforces!

Recently, while solving previous Codefoces problems, I have seen many query problems. What I mean by query problems are: you are given q queries, like updating and printing something.

This is what I have gathered from query problems: - Arrays can be used for simple query problems. - Prefix sums can sometimes be used for query problems (No Updates Ranged Query) - Sets/Multisets are often used for query problems that need O(logn) operations. - Ordered set is used for some query problems (Point Update Range Query) - Segment tree (with lazy propagation on ranged updates) can be used often for Point Update Range Query, Range Update Point Query, Range Update Range Query.

Of course, although segment tree is a solution for many query problems, it isn't easy to code, especially for specialists like me.

Me personally, I have started to direct myself to thinking set/multiset first, because it seems to often work.

Did I miss any ways to solve query problems? Does anyone have a segment tree template that I can use (with lazy propagation)? Do you all have a different approach to query problems than what I do? What do you all see most often as the solution to query problems?

Thanks!

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

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

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

I was working on today's contest, Codeforces Round 933 (Div. 3). On problem F, I had gotten a Runtime Error. I spent over an hour debugging it, and finally did, but wasted a lot of time. It turned out my issue was having an empty set and doing operations on it. skul

Is there any way to quickly find where is your Runtime Error in your code? I have gotten Runtime Error multiple times, and debugging is always the most annoying part. skul

Thanks!

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

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