You can use several words in query to find by all of them at the same time. In addition, if you are lucky search understands word forms and some synonyms. It supports search by title and author. Examples:

  • 305 — search for 305, most probably it will find blogs about the Round 305
  • andrew stankevich contests — search for words "andrew", "stankevich" and "contests" at the same time
  • user:mikemirzayanov title:testlib — search containing "testlib" in title by MikeMirzayanov
  • "vk cup" — use quotes to find phrase as is
  • title:educational — search in title

Results

1.

dumb

Last visit:  2 months ago
Registered:  12 years ago
2.
By YouKn0wWho, 5 years ago, In English
Codeforces Round #752 #### UPD: (28 April, 2022) <spoiler summary="Donated Finally"> Details: [here](https://codeforces.me/blog/entry/96333?#comment-907470) </spoiler> আবার চলে এসেছি! (That's Bengali for "I am back! (in Terminator mode)") I am super excited to invite you to participate in [contest:1603] and [contest:1604] which will be held on [contest_time:1604]. This round is rated for both divisions. You will be given $6$ problems in each division and $2$ hours to solve them. All the problems are authored and prepared by me. I would like to thank - - [user:antontrygubO_o,2021-10-26] for his breathtaking(<strike>literally</strike>) coordination of the round. <i style="color:White;"> no funny text this time</i> - [user:Alpha_Q,2021-10-26], [user:Anachor,2021-10-26] and [user:antontrygubO_o,2021-10-26] for putting up with my dumb ranting and helping with the problems. - [user:Um_nik,2021-10-26], [user:gamegame,2021-10-26], [user:kefaa2,2021-10-26], [user:dorijanlendvaj,2021-10-26], [u...
[user:antontrygubO_o,2021-10-26] for putting up with my dumb ranting and helping with the problems. - [user:Um_nik, ], [user:Anachor,2021-10-26] and [user:antontrygubO_o,2021-10-26] for putting up with mydumb ranting and

Full text and comments »

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

3.
By djm03178, history, 6 years ago, In English
Codeforces Round #688 (Div. 2) **오랜만이에요, 코드포스!** (Long time no see, Codeforces!) I'd like to welcome all of you to [contest:1453]! The contest will start at [contest_time:1453], and it is **rated** for all participants with ratings under 2100. **Note the semi-unusual start time**. You will be given **6 problems** and **2 hours and 15 minutes** to solve them. The score distribution will be announced soon. All problems are prepared by me, with a lot of help from the testers <s>making me realize that my solutions are dumb</s>. Thanks to [user:Green55,2020-11-30], [user:JooDdae,2020-11-30], [user:cs71107,2020-11-30], [user:CodePlatina,2020-11-30], [user:FlowerOfSorrow,2020-11-30], [user:jh05013,2020-11-30], [user:Anus1373,2020-11-30], [user:39dll,2020-11-30], [user:alswhp,2020-11-30], [user:Ku_Top,2020-11-30], [user:sonjaewon,2020-11-30], [user:slah007,2020-11-30], [user:jooncco,2020-11-30], and [user:__rkm__,2020-11-30] for testing the round, and especially [user:xiaowuc1,2020-11-30] for helping polish Engl...
solutions are dumb., dumb. Thanks to [user:Green55,2020-11-30], [user:JooDdae,2020-11-30], [user:cs71107,2020-11-30

Full text and comments »

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

4.
By errorgorn, 5 years ago, In English
Linear Basis (Xor Basis Extended) As part of the graduation requirements for my school, I have to complete a simple research project, so I decided to do something related to data structure and algorithms. I believe I have come out with a data structure that maintains the basis of vectors in $(\mathbb{Z}/m\mathbb{Z})^d$, where $m$ **may not be prime**. Since this was related to competitive programming, I think it is a good idea to share it here. Hopefully, this algorithm is actually novel :P I would like to thank: - [user:icypiggy,2021-12-26] for being my research mentor and tolerating my dumb questions - [user:rama_pang,2021-12-26] and [user:adamant,2021-12-28] for their helpful suggestions and comments Please comment under the blog or message me on codeforces if any parts are unclear or wrong. Also, I hope that some LGMs can help solve the open problems in this blog. # Introduction Maintaining the basis of vectors in $(\mathbb{Z}/2 \mathbb{Z})^d$, also known as the xor basis algorithm is a well-studie...
- [user:icypiggy,2021-12-26] for being my research mentor and tolerating my dumb questions, : - [user:icypiggy,2021-12-26] for being my research mentor and tolerating my dumb questions

Full text and comments »

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

5.
By errorgorn, 5 years ago, In English
On Div2ABs 2 years ago, [user:antontrygubO_o,2022-04-27] wrote [a blog](https://codeforces.me/blog/entry/75163) about div2ABs where he expressed his opinions that d2ABs should not be about "here is a statement, please implement what is written there". Thanks to him, the quality of d2ABs (and problem quality in general) have certainly improved. However, I still believe that there still quite large differences between how coordinators/problemsetters view d2ABs and how the intended participants view them. From the survey made by [user:kpw29,2022-04-27], we can see that most people agree that most people agree that we should **primarily** consider the target audience when proposing a task. I too think if a task is boring to div 1 contestants, we should not think of that as a reason to immediately disqualify a problem from being a d2A. ![ ](https://codeforces.me/predownloaded/70/b5/70b515da85a4dc3b362cf4eb0963dbd1fb642819.png) I think when people judge the interesting-ness of d2As, they try...
/unknown.png) This chart looks very dumb by all standards but hopefully we can see better trends after, This chart looks very dumb by all standards but hopefully we can see better trends after I get more

Full text and comments »

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

6.
By -Morass-, history, 9 years ago, In English
Problem Topics Good Day to you! I've been asked to make some topic-wise list of problems I've solved. Even though I couldn't involve all problems, I've tried to involve at least "few" problems at each topic I thought up (I'm sorry if I forgot about something "easy"). I've alredy made such list once anyway I've tried to include more problems now &mdash; so here it is: <spoiler summary="aho"> http://www.spoj.com/problems/ADAJOBS/ URI 2226 (5) //[NICE][NUMBERS][DP] http://www.spoj.com/problems/SUB_PROB/en/ http://codeforces.me/contest/696/problem/D 8 http://www.spoj.com/problems/AHOCUR/ 5 //Aho-Corassic + DP https://www.codechef.com/problems/LYRC (5) //Sample aho-brute-force http://codeforces.me/problemset/problem/346/B //Proposed by [user:bradyawn,2019-08-03] </spoiler> <spoiler summary="automat"> 6861 [LA] //CYK UVA 10679 //Suffix Automat http://www.spoj.com/problems/STRMATCH/ //Suffix Automat &mdash; trie might do too http://www.spoj.com/problems/NSUBST...
) //NICE (but dumb code limit) http://codeforces.me/contest/597/problem/A (1) //Simple if+2*Divide, http://www.spoj.com/problems/SQUAREV1/ (3) //NICE (but dumb code limit)

Full text and comments »

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

7.
By Monogon, history, 6 years ago, In English
Efficient 3D Convex Hull Tutorial _Warning: The following contains graphic depictions of geometry, precision errors, and degenerate cases. Viewer discretion is advised._ ### Prerequisites I assume the reader is familiar with: - 2D Convex Hulls - 3D Vector Operations (dot and cross products) ### Introduction Recall that in the 2D convex hull problem, you are given a set of 2D points, and you must compute the smallest convex polygon containing all the given points. By convex, we mean that for any two points $A$ and $B$ inside the polygon, the entire line segment $AB$ is also inside the polygon. The problem in 3D is completely analogous. You are given $n$ 3D points, and you must compute the smallest convex polyhedron containing all the given points. Similarly, a polyhedron is convex if for any two points $A$ and $B$ inside the polyhedron, the line segment $AB$ is also inside the polyhedron. In the 2D case, it is more obvious what the output is. We can simply output a circular list of vertices on the ...

Full text and comments »

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

8.
By adamant, history, 18 months ago, In English
Finding a billion factorials in 60 ms with SIMD Hi everyone! _This blog is not about asymptotic optimization. Refer to [this comment](https://codeforces.me/blog/entry/63491?#comment-474051) for those._ There is a problem on Library Checker that goes as follows: <hr> **[Many Factorials](https://judge.yosupo.jp/problem/many_factorials)**: You're given $n_1,\dots,n_t$, where $t \leq 10^5$. For each $i$, find $n_i! \bmod M$, where $M = 998\;244\;353$. <hr> In this blog, we will learn how to solve this task in 61 ms, without precalc and **without** FFT. That's right, we will take the dumbest solution we can imagine, and will improve its constant factor until its decent enough. How much decent? Well, let's use the following baseline: <spoiler summary="Naive solution"> ```cpp vector<int> facts(vector<int> args) { const int block = 1 << 16; vector<int> args_per_block[mod / block + 1]; vector<int> res(size(args)); for(auto [i, x]: args | views::enumerate) { args_per_block[x / block].push_b...

Full text and comments »

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

9.
By purplesyringa, history, 6 years ago, In English
crazySegmentTree: Segment Tree implementation with 5x faster queries than bottom-up tree Hello, Codeforces! A few days ago [user:MohammadParsaElahimanesh,2021-04-06] posted a blog titled [Can we find each Required node in segment tree in O(1)?](https://codeforces.me/blog/entry/89377) Apparently what they meant was to find each node in $\mathcal{O}(ans)$, according to [ecnerwala's explanation](https://codeforces.me/blog/entry/89377?#comment-777885). But I was too dumb to realize that and accidentally invented a parallel node resolution method instead, which speeds up segment tree a lot. A benchmark for you first, with 30 million RMQ on a 32-bit integer array of 17 million elements. It was run in custom test on Codeforces on Apr 6, 2021. - **Classic implementation from cp-algorithms:** 7.765 seconds, or 260 ns per query - **Optimized classic implementation:** (which I was taught) 4.452 seconds, or 150 ns per query (75% faster than classic) - **Bottom-up implementation:** 1.914 seconds, or 64 ns per query (133% faster than optimized) - **Novel parallel implement...
explanation](https://codeforces.me/blog/entry/89377?#comment-777885). But I was toodumb to realize, ://codeforces.com/blog/entry/89377?#comment-777885). But I was too dumb to realize that and accidentally

Full text and comments »

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

10.
By arvindf232, history, 2 years ago, In English
How might LGMs cheat using current AI. Or, are these not cheating? Disclaimer: My natural English ability is questionable. I have passed the blog through chatgpt to correct grammatical mistakes. I experimented with o1-mini and tried to understand its implications for competitive programming on Codeforces at level 2500 or higher. Obviously, the current AI cannot outright provide you with solutions; however, there are already ways it can help quite a lot. ### Brute Force Writing I believe most competitors regularly use brute-forces. They are kind of an admission of failure to find your mistakes on your own. Previously, brute-forces came with the cost of taking 5 minutes to write. I would not do it unless it is a very hard problem, or I have tried debugging by hand for 10 minutes and seen nothing. If AI usage is assumed, then these 5 minutes would be completely saved. Five minutes would correspond to approximately a 10 performance rating if on the final problem and increasingly more on earlier problems. ### Translations of Languages Thi...
> Note that, in particular, the AI didn't tell me I was dumb and could have used a linked list, but, Note that, in particular, the AI didn't tell me I was dumb and could have used a linked list, but

Full text and comments »

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

11.
By -is-this-fft-, history, 2 years ago, In English
Is it just me or has discussion on Codeforces become a lot less lively? A few months ago, I was pretty disheartened. I wrote a [blog](https://codeforces.me/blog/entry/128552) that I put thought and effort into, and it got only +163 votes and basically no discussion. Meanwhile, a [dumb parody](https://codeforces.me/blog/entry/128316) I had published just 5 days earlier got +959 votes. Ok, but let's say that this is a bad example, maybe my explanation was bad or uninteresting or people just don't care about residual graphs that much. That's fair. But I suspect this is a bigger trend. I don't know if my memory deceives me here, but I feel like some years ago there were more high-quality, educational blogs with active discussion. [user:WeakestTopology,2024-09-16] posted a math blog recently and there are no comments, the blog might just slide out of Recent Actions pretty soon. This seems to happen a lot with such blogs, especially on "advanced" topics. What I see a lot instead is poor quality content. Lots of blogs like "please debug my code" and "how...
. Meanwhile, a [dumb parody](https://codeforces.me/blog/entry/128316) I had published just 5 days

Full text and comments »

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

12.
By DrSwad, history, 7 years ago, In English
A Beautiful Technique for Some XOR Related Problems ## Inspiration I'm very excited about this blog, as it took me quite a lot of effort and scavenging through the internet to completely grasp the concept of this technique(That's probably because I have almost zero knowledge in Linear Algebra or I'm just plain dumb). So I feel like I genuinely conquered a challenge, and I really want to share it with someone. But there's no way my CP friends circle will believe it, they'll think I'm just trying to show off :P So here I am, sharing it on CF. I also created a [personal blog](https://drschwad.github.io/), so that if I ever feel like sharing something again(not only about CP), I can write a blog there. I also added this same post [there](https://drschwad.github.io/2019-08-06-z2-space-xor-trick/), you can read it there if you prefer dark theme. I'll be pleased to hear any thoughts on the blog or if I can improve it in some way ^\_^ ## Introduction Since it concerns Linear Algebra, there needs to be a lot of formal stuff going on ...
have almost zero knowledge in Linear Algebra or I'm just plain dumb). So I feel like I genuinely, knowledge in Linear Algebra or I'm just plain dumb). So I feel like I genuinely conquered a

Full text and comments »

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

13.
By balbit, history, 5 years ago, In English
Let's Solve Some More Hard Problems! Inspired by ivan100sic's [problem list blog](https://codeforces.me/blog/entry/98630), I'll pick 10 nontrivial-seeming recent POI (Polish Olympiad in Informatics) problems that I haven't solved and track my progress here. It seems to me that POI is better suited for this format as their editorials are quite difficult to find (if possible [at all](https://szkopul.edu.pl/problemset/problem/v2Y2_UW56ENMcbwP22tkTb7a/site/?key=statement)). While Ivan's original challenge was supposed to last an entire year, I'm not nearly as patient, so I won't look for editorials only until February 1st (in just over 2 weeks). Hopefully I'll have completed at least 80% by that time. Until then, GLHF!!! The List: 1. [Multidrink 2013](https://szkopul.edu.pl/problemset/problem/GyDCbdIgFY5FsMa9iIsBl3hf/site/?key=statement) [Solved Jan 15] <spoiler summary="Fun-ness:"> 5/10 <spoiler summary="Comments"> My thought process on this problem went like "ew this is disgusting implementation" => ...
// ll poo = dumb(var);, ]; ll dumb(vector var) { int i =0; for (pii p : var) { int x = p.f, y = p.s, ll dumb(vector var) { int i =0; for (pii p : var) { int x = p.f, y = p.s; x

Full text and comments »

Tags pow, odz, eni, abh, ai
  • Vote: I like it
  • +149
  • Vote: I do not like it

14.
By malfple, history, 7 years ago, In English
CP Series *This is my first blog post and it's not a tutorial. Pls don't hit me.* CP Series ================== One beautiful day, I decided to draw a comic series related to competitive programming for my friends on a whim. It is mainly about dumb stuff that I remember happened during my competitive programming journey in college. On another beautiful day, I acquired the idea of making this post. ![ ](/predownloaded/07/51/0751036bdbf86eda40ab9b22fb02c32fca924fbf.png) ### Motivation Here are some reasons for why I decided to draw this. *I absolutely have to write this for self-justification and so that when I lose motivation, I can read this and regain my motivation, producing a never-ending loop.* 1. I like drawing. Actually, it's a love-hate relationship. 2. Initially, this is intended to be a joke, but somehow some of my friends are genuinely looking forward to it. They told me it's funny *smh*. So, I'll at least continue it until I run out of ideas. 3. *I want to be able...
friends on a whim. It is mainly about dumb stuff that I remember happened during my competitive

Full text and comments »

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

15.
By DNR, 2 weeks ago, In English
Traversing complement graphs using DFS Trees Prerequisite: [DFS-Trees](https://codeforces.me/blog/entry/68138) Consider the following problem: > Given a graph $G(V, E)$ on $n$ nodes, find a simple path with at least $n/2$ nodes in either $G$ or its complement $G'$. Let's ask ourselves a dumb question: Given some simple path $P$ in $G$, can we find a simple path $P'$ in $G'$ that contains every node that's not in $P$? If this was possible for *any* path $P$, then at least one of $P$ or $P'$ would satisfy our requirements, as $\max(\vert P \vert, \vert P' \vert) = \max(\vert P \vert, n - \vert P \vert)\geq n/2$. There can of course be exponentially many paths $P$ in $G$, so we restrict our analysis to a convenient subset of paths. Let's construct some "DFS-Forest" $F$ of $G$ (a DFS-Tree for every connected component). In fact, let's simplify our analysis even further for the moment, and assume that $G$ is connected, so it yields just one DFS-Tree. Now, consider paths $P$ from the root $r$ to some node $l$. This ...
$G$ or its complement $G'$. Let's ask ourselves a dumb question: Given some simple path $P$ in, Let's ask ourselves a dumb question: Given some simple path $P$ in $G$, can we find a simple path

Full text and comments »

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

16.
By Arpa, history, 3 years ago, In English
Ten Years of Competitive Programming 4 Hey, Codeforces! I’m AmirReza PourAkhavan, the former Codeforces Contest Coordinator. I let the story become complete and I’m sharing it now. The story is about a 16-year competitive programmer, who left his family and migrated to another city alone to follow competitive programming. After seven years, he advanced to the International Collegiate Programming Contest World Finals, twice. Read the previous parts: [1](https://codeforces.me/blog/entry/107465), [2](https://codeforces.me/blog/entry/108838), [3](https://codeforces.me/blog/entry/114356). **Read the Persian version** [**here**](https://docs.google.com/document/d/e/2PACX-1vSUoFC9tLgDCji6rSCYy-RYoUG1_6uOQnHz_LlLKe6KksWBYWO4r6clDly5YxIgzu1g3Tj31weDxgWz/pub). What happened previously === I was a lone programmer, in a small city, trying to learn CP and prepare for the Iran National Olympiad. It was not as successful as I expected. I tried to change my school and I immigrated to Tehran, alone. I entered AE high s...
happy you didn't get accepted. [03.07.16 03:04] Of course, since you're dumb :joy:, I'll, > [03.07.16 03:04] Of course, since you're dumb :joy:, I'll clarify the sentence for you.

Full text and comments »

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

17.
By Geroin, history, 3 years ago, translation, In English
How to exit CP? How do I stop doing it? I know I can achieve something if I keep practicing, I have many possibilities. I got everything I have through CP, but what did it cost me? After every round on Codeforces (and I've written a really great deal of them), I feel like a lowly loser every time. Every time I finish another competition and cry because I hate myself. Every fucking time I make the stupidest marks and there's no cure. hasn't been a cure in 5 years. Every time there are situations along the lines of: I came up with a problem from reading, it's very simple. But while I'm writing it, I make a billion different and every time new mistakes. In every line. It's killing me. I come out of div2 realizing that I should have closed it, and ended up passing d with +4 and my performance is 2000, when I almost never have 2600+ level problems. If I blow it, I'll spend the rest of my life blaming myself for having so many such great opportunities, I had dreams, I was constantly going for some goa...
regret how dumb I was.

Full text and comments »

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

18.
By MofK, history, 3 years ago, In English
Codeforces Global Round 25 Editorial Hi, we hope you enjoyed our problems! For the playlist of songs used in the problem statements, click [this link](https://www.youtube.com/playlist?list=PLTVdHvnX6LZhAJre49E7M7tpGA30WlBM3). [problem:1951A] Author: [user:MofK,2024-04-06] <br> Prepared by [user:Kuroni,2024-04-06] <br> First solve: [user:xiachong,2024-04-06] at 00:01 <spoiler summary="Tutorial and Implementation"> [tutorial:1951A] [submission:255371605] </spoiler> <spoiler summary="Rate this problem"> Yay Meh Nay Banger song </spoiler> [problem:1951B] Author: [user:MofK,2024-04-06] <br> Prepared by [user:Kuroni,2024-04-06] <br> First solve: [user:pavement,2024-04-06] at 00:05 <spoiler summary="Hint 1"> What is the condition for your cow to win her first match? </spoiler> <spoiler summary="Hint 2"> If your cow is not already winning her first match, there are at most two candidate positions you can swap her to. </spoiler> <s...

Full text and comments »

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

19.
By Enchom, 12 years ago, In English
Some help in using Polygon So I recently decided to create some Gym contest (for my friends) using polygon. I have encountered a few problems and if someone could please help me out or link me to detailed polygon help, that would be fantastic. 1) Naming the actual problems. As stupid as it may sound I couldn't find how to name the problem. In the statement itself it appears with the name I've chosen, but when you open the contest, this is what you get: ![ ](http://s22.postimg.org/ox500mtbl/example231.png) 2) Sample input/output tests. In the statement section I found how to add Input/Output descriptions, Notes descriptions and general statement description, but not how to add sample tests in statement. **Solved thanks to [user:EROR,2014-11-30]** 3) Changing an already created problem. When I upload the problem to codeforces contest and afterwards change it in the polygon system, I couldn't find a way to update the actual problem in codeforces. It changes fine in polygon system but it keeps the ori...
main problem.** Sorry if these questions sound dumb, but I couldn't find a good way to solve them, Sorry if these questions sound dumb, but I couldn't find a good way to solve them.

Full text and comments »

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

20.
By Lyde, history, 7 years ago, In English
My ideas about Codeforces Hello Codeforces! I have been in Codeforces for about 7 weeks. And I love it. Exciting problems, understandable and interesting problems, comments, blogs, ..... Codeforces, in my opinion, is the perfect environment for attending contests and solving problems for people like me. And as I am using Codeforces, I got a bunch of dumb ideas that I think MikeMirzayanov shouldn't apply it into Codeforces, but if he **did**, it would be quite interesting. So today I would like to share them with you guys! (Please don't take this blog too seriously, this is just my ideas. And sorry for bad English, I guess) 1. Rating ================== I quite agree with this website's rating. But "the International Master"'s rating ranges make nonsense, I think. Because others need at least 200 ratings to reach new colors (or new rates), while this need 100 ratings to reach Grandmaster. Also, we need a 2100 rating to reach Master, which I think is a little bit too high. So, the rating sho...
am using Codeforces, I got a bunch of dumb ideas that I think MikeMirzayanov shouldn't apply it, And as I am using Codeforces, I got a bunch of dumb ideas that I think MikeMirzayanov shouldn't

Full text and comments »

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

21.
By Lyde, history, 5 years ago, In English
Your true self **TL;DR stop making new accounts just to post blogs and post it on your main.** Hello everyone! I know it has been a while since I ever post a blog. I'm lazy ok? Today I want to tell you what went pretty bad recently: The existence of **alts**. There are many type of alts which is being used for different stuffs, but let's put it in a side and talk about the most annoying type for me. Yeah, those unrated alts that appears everywhere, from recent blogs to comment sections. If I am not wrong then every 1-2 days there would be an alt like that appear and post something like: Asking to be better at topics, talking about CP in india, or other stuffs. But what occur the most? Those who "catch" cheaters. When **EVERY SINGLE CONTEST** that ends there would appear a blog that says "Cheater EXPOSED in Codeforces round #XYZ!" or "Google Kickstart round M code LEAKED!" from a random alt created shortly ago, drop a bunch of comments, and then some continue doing their "good" ...
looking at stupid cheaters you caught, but it sounds just dumb. Useless. For real, tryna make a, time looking at stupid cheaters you caught, but it sounds just dumb. Useless. For real, tryna make a

Full text and comments »

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

22.
By kiwii, 3 years ago, In English
Luvliest Lub Lub Dynamic Diameter and Euler Tour?? ωeecently, I've encountered this pωoblem in a local contest in my coωountωy and I find this pωobωem has a ωeeeaωy cuωul tωick, i aωso found out that this has a s-s-similar idea, and the pωoblem can be fuωuωutheω be ωeduced to &#10024; **Dynamic Diameter** &#10024; [https://oj.uz/problem/view/CEOI19_diameter](https://oj.uz/problem/view/CEOI19_diameter) ## Pωobωem S-S-Statement (,,> &#7447; <,,) Ur given a&#127795; with $N$ n-n-nodes and $N - 1$ e-edges connecting each of the nodes. Each edge is a tu&omega;u&omega;u&omega;uple $(u[i], v[i], c[i])$, connecting node $u[i]$ and $v[i]$ with weight $c[i]$ $(0 \leq i \leq n - 2)$. &#127968;&#127947;&#65039; You're given $Q$ quewees: - `1`, output the RAWWRGESTTT &#129409;&#129409;&#129409;&#129409; diameter of the t&omega;ee, fo&omega;o&omega;ed with T&omega;o&#9996;&#65039; nodes $x$ and $y$ de-de-denoting the endp&omega;oints of the diameterr. &#128726; - `2 x`, output the distance between $x$ and $y$, where $y$ is the node w...
another HLD to get $max(distance(X, pair[0]), distance(Y, pair[1]))$. But that's justdumb, we can just

Full text and comments »

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

23.
By estoy-re-sebado, history, 8 days ago, In English
random blog about coaching TL;DR Pls talk about problems you upsolve or struggle on with your ICPC teammates and do it somewhere your coach can see. If you have a gc without your coach, delete it. Also pls flood your coach with questions if you have any, no matter how dumb. ------------ As ICPC coach of various teams over time (and currently), I notice that different teams get different mileage out of their coach(es). I have seen teams get frustrated that their coach is not doing enough for them (when I was a contestant, this sometimes happened to me). As a coach, I often feel like I am not helping my teams. I have had teams where I have a pretty good idea of where each member, and the team as a whole stands. I've had teams where I have zero idea where anybody is at. And I've had teams where I have a crystal clear picture of just one or two of the members, but not of all of them. In all these instances I think there is a recurring pattern of basically no signal making it to the coach. Let me no...
questions if you have any, no matter how dumb.

Full text and comments »

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

24.
By nshkaruba, history, 4 years ago, translation, In English
How Sirius and nepotism ruined the biggest Russian olympiad Hello, Codeforces! Yesterday there was an important precedent for the competitive programming: the school stage of the Russian National Olympics in Informatics (I will call it ROI) has completely failed. The testing system could not select the language, it did not test or save submissions during the whole contest, and the organizers had to rewrite the rules right during the Olympiad... The reason for this is not new to our country &mdash; nepotism and incompetence. I was a volunteer at one of the schools where the stage was held, and I can tell you how it all happened. ### The problem with online judges Previously, the school stage was decentralized: each region came up with its own problems and **selected the testing system that was convenient for it**. Sometimes this caused "screw-ups", sometimes there were complaints about the unequal complexity of the problems, but in general the system worked. At some point, Moscow experts decided that this would not work, and last...
yourself! Write dumb solutions. Turn in all solutions. Test an effective solution with a blunt one, 4. Test the solutions yourself! Write dumb solutions. Turn in all solutions. Test an effective

Full text and comments »

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

25.
By s-sireneva, history, 2 years ago, In English
Bypassing Cloudflare's "bot fight mode", or how I wrote a working JS interpreter in a weekend... ...for fun and absolutely no profit. # Part 0. Introduction It so happened that I haven't written any Codeforces contest in a few months. When I was logging into my account to leave a comment under some post (I ended up not doing that), I noticed something weird:[cut]&#32; `Please wait. Your browser is being checked. It may take a few seconds...` After about half a second, this screen disappeared, and the normal login page showed up. But since I'm maintaining a CLI client for Codeforces, this immediately caught my attention with an intrusive question: did Mike break my client once again? After firing up a shell and trying to login, the answer was clear: yes, he did. # Part 1. "What the heck?" At the first glance, this screen looked suspiciously like the Cloudflare "Checking your browser" screen. This would have been a dead end, as even "professional" scrapers prefer using headless browsers and such instead of relying on "Cloudflare bypasses". The idea of the CLI tool ...
applied on numbers! Another dumb bug got fixed, and then I finally found the hex function in the trace, numbers! Another dumb bug got fixed, and then I finally found the hex function in the trace. After again

Full text and comments »

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

26.
By WeaponizedAutist, 3 years ago, In English
Alternate Solution for 1787-G (Colorful Tree Again) Hello codeforcers, today I'll try to explain an alternate solution for [this problem](https://codeforces.me/problemset/problem/1787/G), which is completely different from any of the solutions mentioned in the editorial. <spoiler summary="Why am I even writing this when the contest was 6 months ago?"> I have nothing better to do.</spoiler> The solution works in $O((n + q)\sqrt{q} + q\log{q})$ time, and [here](https://codeforces.me/contest/1787/submission/215412634) is my shitty implementation with some comments. Firstly, let us just find all the colors whose paths have the potential to be "good paths". Let's call these "potential paths". Clearly, each potential path will be a linear chain containing all the edges of its respective color. No two potential paths will share an edge (although they can share vertices). This can be easily done in $O(n)$ time. Now, let's visualise a bipartite graph, between two sets of nodes: one set corresponding to colors (paths) and one s...
corresponding nodes do not have any deleted edges. But this is obviously a dumb idea. What exactly is the, But this is obviously a dumb idea. What exactly is the problem here? The graph is too damn big

Full text and comments »

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

27.
By Pyqe, history, 6 years ago, In English
Invitation to TOKI Regular Open Contest #21 Dear Codeforces community, We are excited to invite you to **TOKI Regular Open Contest #21**! &#x1f44a;&#x1f60e; Key details: - Contest link: [TLX](https://tlx.toki.id/contests/troc-21) - Time: [14th April 2021, 13:05 UTC](https://www.timeanddate.com/worldclock/fixedtime.html?msg=TOKI+Regular+Open+Contest+%2321&iso=20210414T1305&ah=2) - Writer: [user:Pyqe,2021-04-08] - Duration: 2 hours - Problems: 7 Scoring distribution: **100 — 200 — 300 — 500 — 500 — 600 — 800** Many thanks to: - [user:prabowo,2021-04-08] for coordinating the contest. &#x1f602;&#x1f44c; - [user:hocky,2021-04-08] for helping with problem preparation. &#x1f4af; - [user:JulianFernando,2021-04-08] and [user:AMnu,2021-04-08] for testing the problems. - [user:fushar,2021-04-08] for the TLX platform. Please register and we hope you will enjoy the contest! &#x1f525;&#x1f525;&#x1f525;&#x1f525; **UPD**: Please note there is a change in the contest timing. **UPD2**: Contest is over! Congrat...
Dumb Ways to Die

Full text and comments »

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

28.
By kiwii, history, 3 years ago, In English
[Tuωutoωoial] Convex Polygon Counting Hi everyone, today I'm back with another blog that sadly, [user:nor,2023-10-19] won't have to spend 45 minutes GPT-ing my anime and kaomoji propaganda to read it. &#2798;&#8333; &#707; &#10521; &#706; &#8334;&#4304; &#x1f445; --- Not sure whether there is another blog explaining this technique in a "so many visualizations" manner. There are so many paper about these problems in particular. So please put your opinions and any other similar techniques you know in the comment section &#x1f4c3;&#x1f4c3;&#x1f4dc;. I think this is a "very known technique" for <span class="rated-user user-red">GM</span>s, so you guys might want to skip reading this blog. I also do expect this is a "very common geometry problem" in China or something but, here is my attempt on explaining it. Here is a cute quote by me oωo > When it comes to polygon problems, sometimes you have to see &#128038; &#127872; &#120008;&#119890;&#119892;&#120002;&#119890;&#120003;&#120009; &#127872; &#128038; in...
The dumb idea is we do sum kind of **subset sum**, we want to match the upper hull first. If we

Full text and comments »

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

29.
By DuyMinh3005, 7 weeks ago, In English
I apologize... ...for what I've done in the past few days. <spoiler summary="In case you are living under a rock:"> I and dinhhuubaonam123 are trying to make a div4. We finished the problemset, and now we want to propose it. We DMed vladosiya, and soullless, and unfortunately, they both can't coordinate (actually we have to message vladosiya via telegram which we don't have an account for). So our last option is cry. However, cry limited the minimum rating to be able to message him is 1900 (or 2100, idk). Being stupid, I decided to message every person I know who may have cry's contact (yes, nearly everyone). As a result, cry made a big change: you need to be at least CM or be an Expert who participated in at least 100 contests to propose a div3/4 (I don't know the exact number). Although it seems that this is a good change, since now there's a clear way to propose a div3/4, this stopped many users, who are Expert but didn't participate in enough contest, from authoring rounds. This blog is going...
of this dumb mistake., on making the contest. Yes, I'm dumb, sorry ;).

Full text and comments »

  • Vote: I like it
  • -37
  • Vote: I do not like it

30.
By Tabriz-Talayi, history, 9 days ago, In English
KS-SCC — My Own Algorithm To Find SCC's I was recently tasked with finding a way to calculate SCCs in a directed graph by a teacher expecting me to reach Tarjan's or Kosaraju's algorithm, but I reached a completely different and new solution (the novelty Im not fully sure). It's **arguably a bit worse in both simplicity and complexity**, but I decided to write a blog about it anyway since I think I used some cool ideas, and who knows, maybe somebody else can utilize this either to find a useful variant or in some completely unrelated problem. My teacher named it KS-SCC, hinting at the fact that it's dumb/useless (in Farsi), lmao. <br> I think it's funny, so I will stick with it. --- <spoiler summary="Prerequisites"> - [DSU](https://cp-algorithms.com/data_structures/disjoint_set_union.html): Simple understanding of keeping and merging components will suffice - [DFS](https://cp-algorithms.com/graph/depth-first-search.html): Needs more than a base-level understanding, needs full understanding of qualities and...
unrelated problem. My teacher named it KS-SCC, hinting at the fact that it's dumb/useless (in Farsi, My teacher named it KS-SCC, hinting at the fact that it's dumb/useless (in Farsi), lmao. I

Full text and comments »

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

31.
By phpduke, history, 14 months ago, In English
[Guide] Meta HackerCup AI Meta HackerCup is unique, as it is the only place as far as I know that allows anyone to compete their AI models against top human competitors live! Without a lot of introductory blogs on how to get started competing in AI track, it becomes daunting to start & hence this blog. Received a dozen messages asking how we built a winning solution to last year's Meta Hacker Cup, will write separate post on that maybe. A lot has changed from last year to this, thinking models are already very good at competitive programming model out of the box. This is good because it lowers bar of entry participation while pushing bar for creating a differentiated top solution. Goal of contest is to build an automated system that generates solution to competitive programming problems WITHOUT any human intervention. That is you cannot nudge/hint your AI system leveraging your human intuitions. Anatomy of a typical solution ============================= A lot of the solutions/ideas can be dissect...
"usually" odds of generating a dumb bruteforce solution correctly is a lot higher than generating the, exploits a very simple pattern that "usually" odds of generating a dumb bruteforce solution correctly

Full text and comments »

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

32.
By DuyMinh3005, 4 months ago, In English
Is this acceptable? No, clearly not. <i>TL,DR: We (me and my friends) found a cheater in CF after he flexed his performance at round 1113 in LQDOJ's chat (an Online Judge's chat). We found some evidence, and he admitted that he used AI during the contest. However, he didn't even sorry, he just started to normalzize cheating, saying that cheating is crucial for the future. In this blog, I won't go deep into the evidence, but his attitude toward cheating.</i> This all started when he posted this: ![ ](https://cdn.corenexis.com/f/FLEtZepW31o.png) <blockquote> Translation:<br> pvhung (him): maybe it's D <br> pvhung: C used DP so it's quite hard.<br> pvhung: *started to flex* </blockquote> At this point, we are quite sure that he cheated, because his performance has never been this good. So we asked for his account. He didn't reply. That's when my friend realized that, if you calculate the total points that he got, combining with the timing that he sent. The result is, this is his accou...
generated by ChatGPT, but the core idea is mine.. NVM, my ChatGPT is dumb (it couldn't, was generated by ChatGPT, but the core idea is mine.. NVM, my ChatGPT is dumb (it couldn't

Full text and comments »

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

33.
By askd, history, 3 years ago, In English
Competitive programming coaching edit: I have gotten too lazy recently and won't be having sessions with new people for the time being Hello! Sorry for the spam blog, but I don't know where else to advertise... I am offering competitive programming 1-on-1 coaching for $20/hr on weekends, with the first lesson being $5/hr, but probably only for 3-4 hours total over Saturday/Sunday. I'd be happy to help explain/discuss any problems/algorithms! (but not too advanced because I am skill issued :rofl:) **My qualifications** - Peaked International Master before losing all my braincells to my dumb office job - Get paid lots of money to work my dumb office job - ICPC world finalist - USACO plat - I have a girlfriend!!!! **Why receive competitive programming coaching** - Sometimes understanding editorials/concepts can be tedious, and it'd save time to have someone either explain it to you or be able to answer whatever questions you have - I can offer my perspective on what I find enjoyable about CP - Lea...
** - Peaked International Master before losing all my braincells to my dumb office job - Get paid, - Peaked International Master before losing all my braincells to my dumb office job - Get paid

Full text and comments »

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

34.
By iamdumdum, history, 4 years ago, In English
C++ programming tutorial for beginners - part 1 Hello guys, welcome to my blog. I am DumDum and today we are going to do our first beginner tutorial on C++. Today we will start with the most beginner stuff, printing a line in C++. I will just copy and paste my template, wait a second... ~~~~~ //This is a comment, in a comment you can write whatever shid you want to write, the compiler won't complain #include <bits/stdc++.h> #include <limits> using namespace std; typedef long long int lli; #define prnt(a) cout << a << "\n" #define prnt2(a, b) cout << a << " " << b << "\n"; #define forp1(a) for (lli i = 0; i < a; i++) #define forp2(a, b) for (lli i = a; i < b; i++) #define forf(a, b, c) for (lli i = a; i < b; i += c) int main() { ios_base::sync_with_stdio(false); cin.tie(0); //YOu see, commputers are dumb, they don't understand human language. So we can't print //letter directly. But don't lose hope, their is a trick to make computers write our language //Let's start by p...
, commputers are dumb, they don't understand human language. So we can't print //letter, //YOu see, commputers are dumb, they don't understand human language. So we can't print

Full text and comments »

  • Vote: I like it
  • -2
  • Vote: I do not like it

35.
By PaciukZvichainyi, 2 years ago, In English
Busy but Master #2 Alternative name: "Road to Master when you don't have time". Episode 1: [link](https://codeforces.me/blog/entry/133458) Episode 2: September 2024 > See you in a month when I'm purple. Just unlucky?:) Two months of grinding Codeforces and I'm still not purple. It might seem like a failure, but if I look closely, I can see significant improvement compared to my performance in August. ### Practice results I feel like in the second half of the month, I've lost my ability to think properly, feel so dumb. Maybe it's just an illusion because I’m solving 2200-2400 rated problems instead of 1800, but still, it feels strange. I motivate myself by reminding that this must be a transitional stage, after which I'll see a big boost. University has started, and while it hasn’t taken up much of my time yet, I already spend ~full,2024-10-04 saturday for it. Plus, I spend a few hours a week chilling on social media, so compared to August, I probably have only about 70% of that ti...
think properly, feel so dumb. Maybe it's just an illusion because I’m solving 2200-2400 rated problems, I feel like in the second half of the month, I've lost my ability to think properly, feel sodumb

Full text and comments »

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

36.
By The-Winner, history, 12 months ago, In English
[Tips; personal stuff] I got red rank. Here's some stuff I learned Hello everyone! This blog will be a collection of ideas, thoughts and personal experiences I gathered over the past ~7 years (darn, I am old). It might not contribute much to the world so feel free to skip it, but I do believe most people can get something interesting out of it. I waited on writing this until my opinion was actually worth something (still, take the following with a grain of salt or two). It is be a big wall of text (you have been warned). Sorry for taking a week to post this, University is crazy at times. [cut] Tips (and some personal experience) for problems solving (can probably extend to whatever else it is you want to do): - The most important thing: **Have fun**. If you don't have fun doing whatever it is you are doing, you are motivated by an external factor, that when removed from the equation will remove you from the action. Without a reason to come back, you will not, and the whole experience will slowly fade away (congrats, you wasted your time). ...
act smart, you'll look dumb. Be modest and humble and understand that there are aspects you can, don't need me to tell you that you are wasting your time. - Don't act smart, you'll lookdumb. Be

Full text and comments »

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

37.
By ko_osaga, 10 years ago, In English
FFT, big modulos, precision errors. Hello! Recently I learned about FFT algorithm, and I was confused because of it's precision errors. Suppose that I want to multiply two polynomials A(x) and B(x) modulo 10^9 + 7. (max degree <= 10^6) Then I have two options : * use NTT with modulo 119 * 2^23 + 1. With these I don't have to worry about precision errors, but I have to split the coefficients in something like (c0 + c1 * 32 + c2 * 32^2 + c3 * 32^3 .... c5 * 32^5). This is the best we can use, since if we use something over 32, (33-1) * (33-1) * 1000000 > modulo. So I have to split it into at least 6 pieces, which is horrible.. * use FFT with complex numbers : Well... we don't have modulos, so I have to guess here. I've experimented with 10^6-digit long integers with all digits in 9. (basically I calculated (10 ** 1000000 &mdash; 1) ** 2) In first try, I grouped two digits together (coeff < 100), and it worked fine. In second try, I grouped three digits together(coeff < 1000) , which had precision errors. So ...
is a demand for big modulos. However, grouping into something like 30 or 100 is not onlydumb, but, modulos. However, grouping into something like 30 or 100 is not only dumb, but very slow and

Full text and comments »

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

38.
By BuffBushCricket, history, 13 months ago, In English
303 day streak BROKE ----------------------------------------THE STREAK ------------------------------------- I don't know why I have an obsession with streaks I just ended my **303** streak yesterday. I kind of forced my streak especially after it got to 100 days. (my goal was **365** but I solved **380** problems so I guess it was a half success) ![ ](/predownloaded/b7/a8/b7a89d7ce1a21b2d8b6a32a40f3c8ed170aef081.png) Felt bad for a minute, but quickly realized that I just "freed" myself. During my **303** day streak I was probably solving easy problems **80%+** of the time (or perhaps ALL of the problems I solved are very easy for some people here) -------------------------- here are the gains/losses -------------------------------------------- to wrap it all up: I improved my _speed_ (reading problem statementsn & implementation) Basically EVERYTHING ELSE would have been bette...
: I'm a friggin*****(who wants to play wordle lol) ANYWAYS I hope that nobody would do thisdumb, ANYWAYS I hope that nobody would do this dumb thing like me and waste their time on a streak

Full text and comments »

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

39.
By Xephy, history, 11 years ago, In English
Fictional Countries > Actual Existing Countries? ### Hello, you're about to read a blog article which contains a lot of cringe-worthy jokes, so if you're not here for the dumb 15-year old humour please skip to the latest line of this blog entry. So I've been switching countries on Codeforces lately because I wanted to switch flags up a little bit, since there are a lot of countries with pretty neat flags. One of the countries whose flag I became really intrested in was the "Republic of the Marshall Islands". It even sounds amazing! So I go to settings to switch my country.    ![ ](https://upload.wikimedia.org/wikipedia/commons/f/f3/Straight_line.png) ![ ](http://i.imgur.com/4rNga2I.png) ![ ](http://i.imgur.com/Lou1ap8.png) Aah, the good Trinidad and Tobago country tag, I'll miss you!  What? "a new country"? Oh wait, choose the short name, oh silly me! ![ ](http://i.imgur.com/YPNsVMT.png)          ![ ](http://i.imgur.com/f0Eg0PN.png) Okay, should be much better now... Huh? Does nobody              Yeah figures. ...
you're not here for the dumb 15-year old humour please skip to the latest line of this blog entry

Full text and comments »

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

40.
By prabhav_, 4 years ago, In English
An absolute shit-show contest! This is mainly a ranting blog for the ongoing Credit Suisse Global Coding Contest 4.0, which is an <b>absolute shit show</b> right now, feel free to skip it. <h1>Background: </h1> So if you don't know there was a contest organized by Credit Suisse on 6th October 2022. The contest's problem set consisted of 9 copied problems. Many people were able to solve all the problems so they arranged the leaderboard on the basis of the execution time taken by the code. The contest ended on 23rd October 2022 (or did it?) So here comes the twist. <h1>Shit show an exaggeration? </h1> <b> Issues </b> <li> In a contest where you need to just make your code the fastest, the version of the compiler can make a significant difference. Guess what? There are no details mentioned of the compiler being used for any language:) </li> <li> There were dumb issues like trailing and ending spaces that caused WA for various people <b>for days if you are lucky</b> </li> <li> You can't see the...
compiler being used for any language:) * There were dumb issues like trailing and ending, > There were dumb issues like trailing and ending spaces that caused WA for various peoplefor days if

Full text and comments »

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

41.
By abacadaea, 14 years ago, In English
Math Problems on Codeforces #174 Hi Guys, Hope you enjoyed Round 174. :) I would like to add a few comments on some of the problems, beyond the [editorial.](http://codeforces.me/blog/entry/7036) **div 2 A** **** If you know some math, you can actually solve this problem in $O(\sqrt{p}).$ (!!!) You can show that the answer is $\phi (p - 1)$ where $\phi (n)$ is the number of positive integers $i$ less than to $n$ with $gcd(i,n) = 1.$ To prove this we first show that there is always at least one primitive root $\mod p$ for all primes $p$. (This is a fairly well known result so I won’t prove it here, but you can find many proofs online) So now assume $g$ is a primitive root $\mod p.$ Then, the set $\{ g, g^2, \dots g^{p - 1} \}$ is congruent to the set $\{ 1, 2, \dots , p - 1\}.$ Furthermore, its not hard to show that $g^i$ is a primitive root if and only if $gcd (i, p - 1) = 1,$ (try it!) hence our formula $\phi (p - 1).$ $\phi (n)$ can be computed by getting the prime factors of $n,$ since $\phi (n) = n * \P...
number of wins for each cow. If we do this the dumb way, this is O(MN^2), still way too slow. Sort, dumb way, this is O(MN^2), still way too slow.

Full text and comments »

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

42.
By gKseni, 10 years ago, translation, In English
Session with Bill Paucher on the Quora On the 26th of September there was the second [session with Bill Paucher on the Quora](https://www.quora.com/session/Bill-Poucher/2). There were less questions, but answers were not less interesting. For example, three of them: <br> <div style="background-color: #fafafa; padding: 1em;"> <b><a href="https://www.quora.com/What-are-the-pre-requisites-for-starting-competitive-programming-aimed-at-developing-strong-coding-skills/answer/Bill-Poucher" style="color:black;">What are the pre-requisites for starting competitive programming aimed at developing strong coding skills?</a></b> <br><br> I really don’t know. Look at the works of the younger generations of the ICPC extended family (pretty much everything out their on the Internet that relates to sports programming). But let me give it a try, assuming you don’t have resources. <br><br> <ul> <li>Start by building a small club.</li> <li>Start recruiting the best professor teaching data structures and algorithms. Don’t look at crede...

Full text and comments »

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

43.
By unlisted, 3 years ago, In English
Nim Game and Misere Nim Game If you don’t remember how a normal Nim game works, let's have a quick recap. Normal Nim Game: Basically, you have any number of piles with any number of stones. It's a two-player impartial game. In a player's move, they can choose any number of stones from a single pile and remove them. The game ends when there are no piles or stones left. The player who takes the last stone wins, or the player who cannot make a move (because there are no stones left) loses. Misere Nim Game: Now, the rules of Misere Nim game are the same as normal Nim game, with the only exception being that here, the player who takes the last stone loses, or the player who cannot make a move (because there are no stones left) wins. Solution of Normal Nim Game: In a normal Nim game, in any state, if the XOR of the number of stones in all piles is 0, then the player who is making the move is in a losing position, no matter what move they make. Obviously, if the other player is not as dumb as me and mov...
position, no matter what move they make. Obviously, if the other player is not asdumb as me and, the other player is not as dumb as me and moves optimally, initially, if the XOR sum of all piles is

Full text and comments »

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

44.
By Noobish_Monk, history, 15 months ago, In English
How not to believe in something that is wrong? Hello everyone! As a person who had two horrible contest, I found a common trend in both rounds. It was due to <s>lack of good samples</s> me believing something that felt obvious but in reality is just wrong. And I wonder, how can I avoid these mistakes in the future. Some obvious answer, that I usually try do to on the contest, if I struggle, is stress-testing. It's a really useful tool which can really help with either finding small wrong test cases or checking some assumptions about the problem. But sometimes you can't just stress test, because I am not able to bruteforce all matrices or some other object with just absurd number of combinations. So there aren't always dumb solutions which are easy to code and somewhat efficient. If so, then how often do you usually overcheck the assumptions that you do? I can't write down every step of my solution, as it takes too much time and after a while I'm just left confused on the mess that I've written (even though I use a tablet a...
aren't always dumb solutions which are easy to code and somewhat efficient., matrices or some other object with just absurd number of combinations. So there aren't alwaysdumb

Full text and comments »

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

45.
By Sazzon, history, 7 years ago, In English
My competition shirts are now gym wear Hi, it has been a long time since I've last posted anything here and, as usual, I'll talk more on the human level rather than just being a technical post. The fate of every competitive programmer is someday (hopefully far for now) you'll retire! The reasons behind it can be multiple. - You got a fulltime job - You graduated - You got kids or - You are just sick of getting hacked on 2 out of the mere 4 questions you passed on every god damn contest! The fact is: now you are getting rusty, slow and dumb. You may think that's not that bad. Your coworkers still didn't put as many struggling hours of problem-solving as you did in the past, you can still solve hard questions that everyone just gives up right away, you are really good in understanding the head of your partners in code and can fix their bugs by just clearing their heads and helping them out. But that's just you lowering the bar and getting used to the software development life unconsciously. If you think abo...
getting rusty, slow and dumb. You may think that's not that bad. Your coworkers still didn't put as many, The fact is: now you are getting rusty, slow and dumb. You may think that's not that bad. Your

Full text and comments »

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

46.
By tactical-teto, history, 2 years ago, In English
Differences between (a+=b)%p; and a =(a+b)%p; I recently came across this problem while solving [<b>E1</b> of Codeforces Round 967 (Div. 2)](https://codeforces.me/contest/2001/problem/E1) My original code used (a+=b)%p; and it worked perfectly with small test cases, but it gave WA when the test cases get larger. After i changed it to a =(a+b)%p; the code got accepted. I'm a bit frustrated because it took me until after the contest was finished that i found the dumb mistake that probably stopped me from getting the Candidate Master title, so I made this post to discuss the differences between those 2 syntax to help people avoid the same mistake as me (and mostly just for me to vent T^T ) Here's my original code (Please don't pay attention to the dumb variable names hehe) <spoiler summary="My Code"> ```c++ #include <bits/stdc++.h> using namespace std; //#define int long long //emergency debug typedef long long ll; typedef pair<int,int> ii; typedef pair<ii,int> iii; #define f first #define s second #defin...
was finished that i found the dumb mistake that probably stopped me from getting the Candidate Master, Here's my original code (Please don't pay attention to the dumb variable names hehe), I'm a bit frustrated because it took me until after the contest was finished that i found thedumb

Full text and comments »

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

47.
By nicksms, history, 4 years ago, In English
How to trick myself into wanting to do implementation problems? This is gonna sound like a really dumb question, but how should I go about trying to trick myself into wanting to do implementation problems? I've noticed that for pretty much everything else, how much I want to do something is directly tied to how much enjoyment I get from it after the fact -- solving problems in general, for instance, is something I look forward to since I feel good after doing it. And I do feel quite good after finishing implementation problems, but for some reason I cannot stop dreading them. One thing I've found (this could be a cause or a symptom) is that debugging implementation problems genuinely takes the soul out of my body, whereas if my math is incorrect and I have to go back and fix it I don't feel bad at all. Still I feel like I have the potential to enjoy them, as I feel more satisfied with getting them than with almost any other type of problem. Sometimes I even feel like I actually want to do them, but every time that happens I just think ba...
This is gonna sound like a really dumb question, but how should I go about trying to trick myself

Full text and comments »

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

48.
By Amao_Fox, history, 3 years ago, In English
You do know that your rating will make an influence when you vote for a post, right? Yes, as my classmate said. If this is fake please tell me. If there are any public posts about this, please tell me also. After all, I'm really not good at browsing historical materials. If this is true, I wonder what'll happen if a person with negative rating upvote one of my post. Would my contribution increase a tiny? Or it wouldn't make any effort? Or my contribution would decrease instead? Please tell me because I'm dumb.
Please tell me because I'm dumb.

Full text and comments »

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

49.
By SHAMPINION, history, 7 years ago, translation, In English
Weak tests for Hello 2020 D Tests for problem D are too ill-conceived: [user:kiimak,2020-01-04]'s told his submission fails on a simple case with n = 5 and here is my dumb solution. As it was mentioned, we need to check if there is a pair of indices $(i, j)$ such that $a_i$ and $a_j$ intersect but not $b_i$ and $b_j$(or vice versa). That is what we do to find those indices: Perform the following operation 5000 times. Take a randomly generated pivot index not chosen before. This index might be $i$ in our assumption. Then iterate through $[1\dots n]$ looking for $j$. If there is one suitable for us then the answer is NO, we can stop our algorithm. Else try taking another $i$. This runs in $\mathcal{O}(5000 \times n)$. Now I'm going to tell why it's a terrible solution and why it mustn't pass the tests(thanks to [user:lemelisk,2020-01-04], it's already hacked). Imagine a test where $n = 100000$ and there are only two segments intersecting in $a$ (let their indices be $i$ and $j$) and no segments intersect...
a simple case with n = 5 and here is my dumb solution.

Full text and comments »

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

50.
By clex, history, 18 months ago, In English
Specialist after 4 contest. Is he cheating? + prof ai cheater 23rd place and 5 more cheaters Yo So apparently I found out this [user:marshadow_ninja,2025-06-13] guy and he gain my suspicion through his code. Problem B: Instant change of coding style, using T instead of tt as his previous [problem A](https://codeforces.me/contest/2118/submission/324084308) submission, variable name starts to get longer. Also this style is very VERY similar to ChatGPT and also in competitive progamming who will like to use caps lock letters and variable i mean it take lot more time [Problem C](https://codeforces.me/contest/2118/submission/324094098) : "onesAbove" array, interesting name tbh. Also the logic and style is the similar to ChatGPT and same thing again can y'all tell me you will prefer writing o_a or oa as variable name if it is used 10+ time in code or you will prefer writing onesAbove as var name. intially_beauty bro i would have used ib as var name wtf use this much bigger names i suppose his hands had potion that make him immune to pain <spoiler summary="onesAbove vs oa...
that dumb. Plus in E, he's using: using pii = pair while he doesn't use and it's not even a, , nobodies that dumb. Plus in E, he's using: using pii = pair while he doesn't use and it's

Full text and comments »

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

51.
By yummy, history, 10 years ago, In English
Some Reflections [Cross-post from AoPS] Hey Codeforces, I made a [post](http://artofproblemsolving.com/community/c5h1266176_some_reflections) on AoPS that I thought you guys might find interesting. The original context was math contests in the US, but I think much of it applies to CS (and more generally) too. ----- Hey AoPS, it’s good to be back. I’m feeling a little sentimental right now, but I guess that’s alright—it’s been six years since I first found you, and it’s been a long journey since. I was a sixth grader then, just starting Mathcounts, unsure if I’d even make the school team. I fell in love with For The Win! (Alpha) and played it during lunch break, after school, even the morning before Mathcounts Nats. In ninth and tenth grade, I scoured the Olympiad fora, wondering if there existed some magic advice that could propel me all the way to MOP. I was chasing after the mathematical footsteps of my Exeter friends then, always feeling a few steps behind. And now I’ve graduated high school. Contests are over fo...
felt dumb, inadequate, a failure each time I couldn’t solve a problem. I learned facts about, struggled through practice tests and problem sets. I felt dumb, inadequate, a failure each time I

Full text and comments »

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

52.
By bfsof123, 21 month(s) ago, In English
Learning Notes on the Hopcroft-Tarjan planarity algorithm (With C++ Implementation) **Section 1. Introduction** I have been struggling for weeks to understand the first linear-time planarity algorithm, the [Hopcroft-Tarjan algorithm (HT)](https://www.cs.princeton.edu/courses/archive/fall05/cos528/handouts/Efficient%20Planarity.pdf). Fortunately, I successfully understood it and implemented it. In fact it is very hard to find a verified HT implementation online. Some code, e.g., [LEDA](https://en.wikipedia.org/wiki/Library_of_Efficient_Data_types_and_Algorithms) is not open source. Other open-source planarity tests, e.g., [networkx (LR planarity)](https://github.com/networkx/networkx/blob/main/networkx/algorithms/planarity.py), [boost (Boyer-Myrvold)](https://www.boost.org/doc/libs/1_53_0/libs/graph/doc/boyer_myrvold.html), [Pigale (LR planarity)](https://pigale.sourceforge.net/), use other algorithms. There is [an implementation by Shawn Anderson](https://github.com/shawnwanderson/Hopcroft-Tarjan-Planarity-Testing), however it is partial. I would like to open a blo...
/graph/bcc/). We assume readers are familar with Tarjan's BCC and SCC algorithms. Evendumb guys like, dumb guys like me know them well, I believe you can.

Full text and comments »

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

53.
By adamant, history, 8 years ago, In English
Counting sums of powers Hi there! Imagine you're participating in codechef long challenge and you see a problem from [user:chemthan,2018-07-21] asking you to calculate some sums of powers like $1^p+2^p+\dots+n^p$ for all $p$ from $0$ to $k$. You immediately understand what's going on here and take [Faulhaber's formula](https://en.wikipedia.org/wiki/Faulhaber%27s_formula) from your wide pants, do ya? Just take a look at it! $$\sum\limits_{k=1}^n k^p = \dfrac{1}{p+1} \sum\limits_{j=0}^p \dbinom{p+1}{j} B_j n^{p+1-j}$$ Beautiful, right? Wrong! This formula is dumb and it's hard to understand and remember! Why would you ever think about Bernoulli's number on any contest which lasts less than a week? And what the hell are those Bernoulli numbers?! Here is what you should do: Let $S_p = 1^p+\dots+n^p$. Consider its exponential generating function (EGF): $$S(x) = \sum\limits_{p=0}^\infty \dfrac{S_p}{p!}x^p=\sum\limits_{p=0}^\infty \sum\limits_{k=1}^n \dfrac{(kx)^p}{p!}=\sum\limits_{k=1}^n e^{kx} = \dfrac{e^x-...
}$$ Beautiful, right? Wrong! This formula is dumb and it's hard to understand and remember! Why would

Full text and comments »

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

54.
By vasugondaliya, history, 7 years ago, In English
Trailing Zeroes of a Factorial and Binary Search Hey there, To find the number of trailing zeroes in a factorial, we need to find the power of twos and fives in the prime factorization of the factorial. Like in 5!, expansion of it is, 5!=5 x 4 x 3 x 2 x 1 = 2^3 x 3^1 x 5^1, and by finding minimum number out of the number of 2s and the number of 5s, which will always be number 5s as we will always have the extra number of 2s, we can find out the number of trailing 0s in factorial. Now how to find the power of 5 or any prime number, we will follow the following procedure. Let's find the power of 5 in 200! 200! = 1x2x3x...x199x200 as we need to find the power of 5, we will neglect other terms and observe the numbers divisible by 5 200! = 5x10x15x...x195x200 x others taking out the powers of 5 from all the numbers, 200! = 5^(200/5) x (1x2x3x...x39x40) x others 200! = 5^(40) x (1x2x3x...x39x40) x others repeating the process in the inner bracket, 200! = 5^(40) x (5x10x15x...x35x40) x ot...
has the given number of zeroes 'm'. Easy and Dumb way to do this is by running a loop till we, Easy and Dumb way to do this is by running a loop till we find the solution and as the value of m

Full text and comments »

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

55.
By krishnansumh, history, 11 months ago, In English
The Worst Bugs Are Not Logical, they’re "LOGICAL". There’s a special kind of pain in coding that no tutorial prepares you for. It’s not the algorithm. It’s not the idea. It’s not even the syntax. It’s the **LOGICAL error**. Not “logic” in the textbook sense. I mean those stupid, microscopic mistakes that shouldn’t exist—but somehow always do. A return statement placed two lines too early. A bracket that never came back from war. Parameters passed in the wrong order, even though you know the function signature. Sometimes you forget one bracket. Sometimes both. Balanced parentheses? Never heard of her. And then there’s that one classic mistake:** "forgetting to end the line".** You write a return statement. You forget the semicolon or end-line, the program keeps printing. The answer is **wrong.** _Everything looks correct._ **You spend 20 minutes debugging.** Turns out… yeah. That. That one hurts differently. The worst part? These errors don’t feel avoidable. You’re not dumb. You’re not careless. Your brain just ...
worst part? These errors don’t feel avoidable. You’re not dumb. You’re not careless. Your brain just, The worst part? These errors don’t feel avoidable. You’re not dumb. You’re not careless. Your brain

Full text and comments »

  • Vote: I like it
  • -35
  • Vote: I do not like it

56.
By _Randooom_, 2 years ago, translation, In English
What’s wrong with this guys ??? Hello Codeforces community. ================== Today I wanted to talk about Negative Contributors ------------------ 1) First of all why would anyone compete to have the worst reputation 2) Of course some might say that they are free to do what ever they want. But they are harming the community by their actions. CF blog system was not created so a bunch of dudes would compete against each other to see who will say something dumber and get more downvotes. And I am not over reacting CF is now overflowing with meaningless and dumb blogs/comments of theirs. 3) They sometimes get over the boundaries of appropriate things and start joking harmfully just to farm some downvotes Here are some of them who are right now meaninglessly writing comments without second thoughts : [user:Attractors,2024-08-21], [user:StellarSpecter,2024-08-21]. I am pleading admins to ban them or to at least restrict them from writing blogs/comments, since their childish behavior and thrive to be ...
CF is now overflowing with meaningless and dumb blogs/comments of theirs. 3) They sometimes get, And I am not over reacting CF is now overflowing with meaningless and dumb blogs/comments of theirs.

Full text and comments »

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

57.
By DuyMinh3005, 6 weeks ago, In English
Rewriting blogs that aren't well written part 1: Inversion count using mergesort/fenwick tree <i>This blog's target audience is for newbies who don't know this (like me!). So, if you knew this before, it would be great if you read this blog and give me some valuable feedbacks. Thanks ^^!</i> Now for the intro: A while ago, I met a problem where it requires me to count the number of inversion of an array. Having 2 braincells, I knew nothing about this. So, I decided to ask my friends [user:ballss,2026-10-24] and [user:quanhoangbla,2026-10-24]. <strike>Of course, they are good friends so they taught me everything about that.</strike> NO. [user:ballss,2026-10-24] just called me dumb, so I decided to learn it myself. That's when I stumbled across [this](https://codeforces.me/blog/entry/86294) blog. This blog, in my opinion, is a great blog, but it was not really well written. As a result, it got heavily downvoted (I recommend you upvote that blog, although it's most likely that the author have stopped doing CP, since the last time he/she visited was 9 months ago). Although I...
everything about that. NO. [user:ballss,2026-10-24] just called me dumb, so I decided to learn, dumb, so I decided to learn it myself. That's when I stumbled across [this](https://codeforces.me/blog

Full text and comments »

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

58.
By iynaur87, history, 7 years ago, In English
I should always use const auto& inside for loops When solving AtCoder Grand Contest 044 Problem B, I wrote some O(n^3) code with n<=500 like: ~~~~~ typedef vector<int> vi; vector<vi> dirs({{0,1}, {0,-1}, {-1,0}, {1,0}}); ... for (auto dir : dirs){ // run O(n^3) times ... } ~~~~~ and get TLE. On my pc it runs within 4900ms. During the contest I have no idea why.(dumb me) After the contest I looked at other people's solution and finally get accepted solution, just add an '&' after 'auto': ~~~~~ for (auto& dir : dirs){ // run O(n^3) times ... } ~~~~~ 480 ms on my pc! 10 times faster! I did more tests: ~~~~~ for (int dd = 0; dd<4; ++dd){ // run O(n^3) times vi dir = dirs[dd]; ~~~~~ 4900 ms ~~~~~ for (int dd = 0; dd<4; ++dd){ // run O(n^3) times vi& dir = dirs[dd]; ~~~~~ 480 ms ~~~~~ vi dir; for (int dd = 0; dd<4; ++dd){ // run O(n^3) times dir = dirs[dd]; ~~~~~ 1800 ms Maybe vector is too big, I tried pair: ~~~~~ vector<pair<int, int>> dirs({{0...
. During the contest I have no idea why.(dumb me) After the contest I looked at other people's solution, and get TLE. On my pc it runs within 4900ms. During the contest I have no idea why.(dumb me

Full text and comments »

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

59.
By Farmer_Johns_Cow, 20 months ago, In English
Ban this guy! I know people are already tired of cheating blogs and so am I. But today, I came across this guy [user:chakrabortykushal55,2025-04-12] who somehow got rank 10 in AtCoder Beginner Contest 401, and it reminded me of a classic trick from high school. You know the one: if you're not usually a top student but magically ace an exam, you'd at least avoid getting a perfect score—just to keep things less suspicious for the teacher. <a href="https://ibb.co/Fk2mjfXK"><img src="https://i.ibb.co/CpgmTX6z/cheating.png" alt="cheating" border="0"></a> Also, isn't it kind of dumb to cheat on one platform and then link your profiles from other platforms right on your page? Like… seriously? <a href="https://ibb.co/391CXC88"><img src="https://i.ibb.co/Kp6rZrQQ/cheating.png" alt="cheating" border="0"></a><br /><a target='_blank' href='https://imgbb.com/'>russian image site</a><br /> My point is: if you're going to cheat (which you really shouldn't), at least don't make it this obvious. ...
/CpgmTX6z/cheating.png" alt="cheating" border="0"> Also, isn't it kind of dumb to cheat on one, Also, isn't it kind of dumb to cheat on one platform and then link your profiles from other

Full text and comments »

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

60.
By gammal-geniune, history, 10 years ago, In English
The famous egyptian underdog (A story of success.... A story of me) In the last few days , a lot of people were trying to impersonate me , AbdurRahman ElGammal. I think a lot of people in CF community asked themselves "Who is AbdurRahman ElGammal?" of course NO SURPRISE. Let me tell you about myself so you can know why all those people were impersonating me through these fake accounts. "They call me life coach or mentor, but I'm just a simple guy with some experience." As you can see , I am a coach. A really brilliant and amazing coach , the coach of most of Egyptian Legendary Grandmasters on CF like [user:bmerry,2016-06-10] , [user:Xellos,2016-06-10] , [user:Swistakk,2016-06-10] and [user:TsunamiNextYear,2016-06-10] , (and they're also red coders on TopCoder). Of course , My territory expands among a lot of countries (like Iraq , Yemen , Gabon and South Sudan). I think you're wondering why I am so humble and I am saying that I am just a simple guy !! I will tell you my story and you will judge. I was born in Silicon Valley in 1960. My house...
is that I got really bored of dumb people trying to become better at topcoder. To be honest I, ). But the thing is that I got really bored of dumb people trying to become better at topcoder. To be, Now don't get too hyped, 99.999% of you are too dumb to join this. I was going to say 100% but then

Full text and comments »

  • Vote: I like it
  • -17
  • Vote: I do not like it

61.
By worstesttest, history, 7 years ago, In English
masterpiece.txt Bee Movie Script According to all known laws of aviation, there is no way a bee should be able to fly. Its wings are too small to get its fat little body off the ground. The bee, of course, flies anyway because bees don't care what humans think is impossible. Yellow, black. Yellow, black. Yellow, black. Yellow, black. Ooh, black and yellow! Let's shake it up a little. Barry! Breakfast is ready! Ooming! Hang on a second. Hello? - Barry? - Adam? - Oan you believe this is happening? - I can't. I'll pick you up. Looking sharp. Use the stairs. Your father paid good money for those. Sorry. I'm excited. Here's the graduate. We're very proud of you, son. A perfect report card, all B's. Very proud. Ma! I got a thing going here. - You got lint on your fuzz. - Ow! That's me! - Wave to us! We'll be in row 118,000. - Bye! Ba...
Dumb bees!

Full text and comments »

  • Vote: I like it
  • -31
  • Vote: I do not like it

62.
By aakshu, history, 7 years ago, In English
Google Code Jam 1B - Blindfold Bullseye Help Problem Link: https://codingcompetitions.withgoogle.com/codejam/round/000000000019fef2/00000000002d5b63 Hey Guys, So I'm a total beginner and breaking my head trying to solve the interactive problem in the contest. Thus I apologise if the question is too dumb. Any help would really really really be appreciated! So I saw a youtube video on how to solve the problem(Link:https://www.youtube.com/watch?v=2VpNqhXFq2M) and tried to implement the same solution. Approach is the same as the analysis provided by code jam I guess. Find a single HIT, from there use 4 binary searches to get the 4 edge points of the dart board in the vertical and horizontal directions. then the mid points of the opposite x and y coordinates are the center. The submission gives me a TLE, which i can't figure out why. Here is the link to my solution: https://ideone.com/PUQHma I tried downloading the interactive_runner.py and testing_tool.py as mentioned in the problem, Running both the files along with...
problem in the contest. Thus I apologise if the question is too dumb. Any help would really really really, the contest. Thus I apologise if the question is too dumb. Any help would really really really be

Full text and comments »

  • Vote: I like it
  • -2
  • Vote: I do not like it

63.
By decoder123, history, 11 years ago, In English
Mo's Algorithm: left and right limit movement In the last Div-2 Contest [Div2E](http://codeforces.me/contest/617/problem/E) can be solved using MO's sqrt decomposition. I couldn't solve the problem that day. I read the editorial and understood it. The thing left to do is to implement it. While implementing I realized the most difficult part of the algorithm (or as it seems to me!). And it 2 things:- a) The intilization of Mo's left and Mo's right .(`ML` and `MR`) respectively. b) Movement of them. Now I couldn't get correct answer even for the given test cases in my computer. So I move to see the code.: There are 2 ways people solved the problem:- a) some of the coders initiliazed `ML=1,MR=0`. and then go on adding and removing as required. b) some initialized `ML=0,MR=0` but `cnt[0]=1`..(occurences of 0 is 1) and then solved it. Then I observed that no movement of pointers are different. End result: I am utterly confused. My question is 1. For query `[l,r]` we have to be sure that `pref[l-1]` to `...
..) Thanks. Note: Somebody please explain to me. No matter how dumb this question sounds to you., Note: Somebody please explain to me. No matter how dumb this question sounds to you.

Full text and comments »

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

64.
By pikamonstruosa, 3 years ago, In English
A faster way to clear your arrays, vectors and structures in general in C++! Hello guys, today I will do a tutorial on how to clean a vector, structure or something else in c++ really fast. Naive Approach ================== -A newbie may see this problem and try to solve it in linear time, for that we could just use the resources the C++ libraries offer us. In this particular case, the function `clear()` would do it. However, it is an $ O(length) $ function and considering N can be very big, until $ 10^9 $, for an example, it cannot solve every problem of this type. Smart Approach ============== -A more experienced coder, like [user:Errichto,2023-07-12], will see this problem and immediately think about the _**smart approach**_. This approch consists of doing the following: <spoiler summary="Code"> ~~~~~ vector<vector<int>> auxiliary; //vector full of empty vectors vector<int> v; //full of stuff (a lot) and we want to clear it fast auxiliary.push_back({}); swap(auxiliary.back(),v); ~~~~~ </spoiler> - **Boom!**, the complexity fell f...
from ~$O(N)$ to ~$O(1)$. On my machine clearing vector of size $10⁸$ with the dumb approach took, ⁸$ with the dumb approach took $0,789s$ and with the smart approach it took $0,438s$. Thus, in the

Full text and comments »

  • Vote: I like it
  • -25
  • Vote: I do not like it

65.
By Iwhansu, history, 2 years ago, In English
Cold TON Wallet for enthusiasts + Address Generator + Free TON Sorry for an off-top, I think there are some TON users on CF, who may find it interesting. At least, if right now you look at the upper part of your screen, you will see Codeforces logo, looking like this: ![Codeforces logo](/predownloaded/ba/27/ba27ca9e28ca6fd23979df0e62d3f9df1c7494b4.png) #### Wallet I made a cold TON wallet, which I use myself. The point is, your mnemonic phrase is created and used on a completely offline device, and you don't need to buy a hardware wallet. Read extensive description and comparison with other options on [github](https://github.com/ton-offline-storage) #### Address Generator Additional part of the project is the generator of personalized addresses to use, you can find it's [repo](https://github.com/ton-offline-storage/address-generator) under the same github organization. This is a real TON address I was able to obtain with it: `UQCODEForceSrB20zRxCynMFapvczWr4Z8YxsZ_9omI6jeEZ`, [explorer](https://tonscan.org/ru/address/UQCODEForceS...
mnemonic phrase and wallet-id: ~~~~~ rug lecture ethics genuine dumb raw ozone lake usage, пользоваться, я выкладываю здесь мнемоническую фразу и wallet-id: ~~~~~ rug lecture ethics genuinedumb, ~~~~~ rug lecture ethics genuine dumb raw ozone lake usage law fee fantasy suffer congress

Full text and comments »

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

66.
By Vinayak7989, history, 5 years ago, In English
DP Also in most the dp problems after reading the statement you're like how would I know what will be the best way so definitely we have to try everything but in a smarter way that's nothing by dp. and also low constraints is another big hint. so first step to see understand the question clearly and see how the process would look like means imagine any general scenario then let's assume we know the optimal way and see how any general ans would look like (means maybe we have to choose some indices or whatever) Then maybe analyzing the PROPERTIES of general ans would help (like you can make some easy observation that length can't be too large there can't be two even no. or any sort of observation) and then many time it turns out that the general structure of our ans is not too typical and we can maybe brute force or Binary search means the problems becomes approachable after that and we'll definitely get to the final solution after this. so the main part is to see the general an...
answer. But we're not dumb we will make one(the max one) state value of your dp. and after, (kept in state) and if it's possible consider that as an answer. But we're not dumb we will make

Full text and comments »

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

67.
By CODEFORCESHASROTTEN, history, 8 years ago, In English
Despacito lyrics translated from Spanish to English (translated using AI translation software) Somebody once told me the world is gonna roll me I ain't the sharpest tool in the shed She was looking kind of dumb with her finger and her thumb In the shape of an "L" on her forehead Well the years start coming and they don't stop coming Fed to the rules and I hit the ground running Didn't make sense not to live for fun Your brain gets smart but your head gets dumb So much to do, so much to see So what's wrong with taking the back streets? You'll never know if you don't go You'll never shine if you don't glow Hey now, you're an all-star, get your game on, go play Hey now, you're a rock star, get the show on, get paid And all that glitters is gold Only shooting stars break the mold It's a cool place and they say it gets colder You're bundled up now, wait till you get older But the meteor men beg to differ Judging by the hole in the satellite picture The ice we skate is getting pretty thin The water's getting wa...
was looking kind of dumb with her finger and her thumb In the shape of an "L" on her forehead, She was looking kind of dumb with her finger and her thumb, Your brain gets smart but your head gets dumb

Full text and comments »

68.
By XxFalconxx, history, 20 months ago, In English
CHEATER BRAGS ABOUT BECOMING SPECIALIST AND BLOKCS ME ON LINKEDIN Today, I was browsing LinkedIn when I found a post where the person showcased reaching Specialist in the last contest. https://www.linkedin.com/feed/update/urn:li:activity:7311813260473704450/ Amazed by his fast growth from pupil to specialist, i looked at his CF profile, only to find out that he had copied the submissions from somewhere else. https://codeforces.me/profile/dreamcatcher14 My reasons for thinking he cheated in Codeforces Round 1014 (Div.2) are -> Inconsistent coding style during contest, the header files keeps changing from every submission, the solve function name changes from sovle(), solve_case() , process_case(). The coding style in general varies a lot. -> Solved D problem , which the highest rated coder in my college ( 2300+ rated), couldnt solve. (Ok, maybe he had a genius idea during contest). -> 200+ problems solved of 800 rating , and only about 15-20 problems solved >=1200 rating. Although I was not completely sure, i decided to jus...
fairness during contests and all, this is just sad that someone can be so dumb to claim something that, dumb to claim something that they know they dont deserve. Idk, i just found this funny , hence

Full text and comments »

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

69.
By niveditavb05, history, 4 years ago, In English
Dragon Race Problem | Codehive Contest ### **Dragon Race Problem | Codehive Contest | 4th Problem** **PROBLEM LINK :** [CodeHive/Dragon Race](https://www.hackerrank.com/contests/codehive/challenges/dragon-race/problem) **Author & Tester :** [ Vedant Patil](https://www.linkedin.com/in/vedant-patil-047194224/) **Editorialist :** [Nivedita Birajdar](https://www.linkedin.com/in/nivedita-birajdar-2a29b4219/) #### **DIFFICULTY :** CAKEWALK... #### **PREREQUISITES:** Basic Arithmatics #### **PROBLEM :** Jake is a very competitive guy. The flying speed of Toruk i.e.Dragon of Jake is exactly 100 kmph i.e. kilometers per hour. Dragon Race is going in Pandora Village. You are given an array A[] of size N, where A[i] denotes the Flying speed of the iᵗʰ Dragon. Jake is going to compete with everyone. At the end of the competition, the final score of Jake will be evaluated **The evaluation Scheme is given as follows:** If the participant wins the race with his competitor he gets 5 points if he...
2 points. You have to find the final Score of Jake. As Jake is quite dumb in Maths help him to, In this example we have to calculate the **final score of Jake** who is quite dumb in Maths., You have to find the final Score of Jake. As Jake is quite dumb in Maths help him to find his final

Full text and comments »

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

70.
By limbo16, history, 3 years ago, translation, In English
The Curse of Segment Tree Hi guys! Today I had an exam on algorithms and data structures, where one of the tasks was to write down an algo for finding longest common increasing subsequence in $O(n^2)$ (yeah, using pen and paper...) For whatever reason, I came up with only $O(n^2logn)$ solution. However, this solution could be easily simplified to $O(n^2)$ and many students from my course wrote this algorithm. I guess it happened because when you don't know segtree it is much easier to avoid wrong paths and reach good solution. Then I caught myself on the thought that in many problems before I also implemented very dumb overkilled solutions with segment tree simply because I know this data structure (thank god I don't know treaps that well). Then I came up with the name of this phenomenon: "The Curse of Segment Tree". So I wonder have anybody also stumbled with this "curse"? (or I am the only orange guy who cannot come up with stupid dp on the uni exam TᴖT)
Then I caught myself on the thought that in many problems before I also implemented verydumb, dumb overkilled solutions with segment tree simply because I know this data structure (thank god I

Full text and comments »

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

71.
By Karan2116, history, 11 years ago, In English
Everything About Dynamic Programming **I decided to gather some good material on the web related to DP and found some good explanation by svg on topcoder forums..Hence wrote this blog.Will format it when i get time.** ![ ](http://codeforces.me/predownloaded/2c/af/2caf058ab9cf6db0f875c573fb0d6e73de572122.png) **Problem:** About 25% of all SRM problems have the "Dynamic Programming" category tag. The DP problems are popular among problemsetters because each DP problem is original in some sense and you have to think hard to invent the solution for it. Since dynamic programming is so popular, it is perhaps the most important method to master in algorithm competitions. The easiest way to learn the DP principle is by examples. The current recipe contains a few DP examples, but unexperienced reader is advised to refer to other DP tutorials to make the understanding easier. You can find a lot of DP examples and explanations in an excellent tutorial Dynamic Programming: From novice to advanced by Dumitru. The purpose ...
O(N*A^2) time. Though dumb analysis says it is O(N^2*A^2): {N vertices} x {SK<=N sons for each} x A, . For example, the code just above requires O(N*A^2) time. Though dumb analysis says it is O(N^2*A^2

Full text and comments »

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

72.
By f20202358, history, 4 years ago, In English
Wrong Answer on Pretest 2! Hello coders! I am sure all of you would have faced a "Wrong answer on pretest 2" at some point of time during your codeforces journey. It is a pretty frustrating feeling when you see your ranks (or ratings) dropping by a significant amount only due to some edge cases which you could not figure out during the contest time.. But the question that then comes to one's mind is : "Am I that dumb to not have figured it out then?.. and is there a way to make sure it doesn't happen a second time?" Well the answer is both a yes and no. So if you're someone struggling in the range between 1000-1400 (or even lower) then you might find this blog helpful! Actually, for the past few weeks this has been a major concern for me because either during contests or even while practicing I used to get a lot of "Wrong answer on test 2" and when I used to check for the case where I went wrong.. Most of the times it used to return something like "786th token doesn't match". Now how on Earth am I to figure...
out during the contest time.. But the question that then comes to one's mind is : "Am I thatdumb to

Full text and comments »

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

73.
By serialcomder, 22 months ago, In English
You can easily beat tourist! 1. Create an alt and register for the contest 2. Pray that you are in the same room as your alt 3. Send dumb solutions for problem A 4. Keep hacking 5. When bombarded by blogs which expose you just comment: ![ ](https://i.imgur.com/QQb5cvo.jpeg)
3. Send dumb solutions for problem A

Full text and comments »

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

74.
By lightweight_baby, 6 years ago, In English
The usual rant about cheating I know all of you are tired of reading these things again and again but still I cant stop myself being infuriated at these dumb halfwits in telegram cheating groups who can't even fucking tell which language they are cheating in and yet manage to solve 3 questions. There are two groups - 1. Coding Paradise 2. Codechef Codeforces Unofficial Please report them or whatever as they consist of a large number of people. There are many others of course but these two are very large. I really enjoy the problem solving part of CP but the competitive part is equally important to me and I mostly do it for the thrill. That's why these fucking stupid cheaters get on my nerves. All of the cheaters reading this, believe me my dumb as fuck friends as your rating keeps increasing your IQ will keep on decreasing and no employer is so dumb that they will give you a job seeing your rating , knowing cheating is so prevalent. I feel very sorry to see mostly these people are from India , but...
being infuriated at these dumb halfwits in telegram cheating groups who can't even fucking tell which, All of the cheaters reading this, believe me my dumb as fuck friends as your rating keeps

Full text and comments »

  • Vote: I like it
  • -22
  • Vote: I do not like it

75.
By valvee, history, 5 years ago, In English
I fail every time. It seems so often to me that I am going to try my best for a specific work yet after some days that motivation fades away. All my plans that were to be done with utmost discipline are just some notes in the paper which I don’t even look back at after writing. Judging by my daily activities and my own vision towards life, I have finally crowned myself as a loser. This is my way of living for the past few years. Maybe I am good in some field but when it comes to performing I always fail. I always have a self-doubt that I am going to make a mess of it and even if I make myself confident enough to do that work, the result is nothing different. The world is filled with super smart, happy, passionate, confident and positive thinkers and they somehow know what they must do and how to do. And here I am who has always failed in every field and situation. Honestly, I have never given much dedication to my work, but how could I be dedicated when I always fail in the very processes of that work! M...
teachers and parents, I would still be a dumb and playing around in Div3 contests., dumb and playing around in Div3 contests. This world is seriously too complex for me. I would

Full text and comments »

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

76.
By Negationist, history, 2 years ago, In English
I don't like most editorials Is it just me or do editorials kind of suck? Often, the methods they present are overly complicated and/or not made with idea of improving the reader's **intuition** in mind. It's gotten to the point that I only look for broad ideas and never look for specific implementation. And I always leave them kind of annoyed. Example Problem: https://codeforces.me/contest/2008/problem/G (sakurako's task) What I don't like: "Now, we can find where the mexk should be in linear time. Firstly, if it is before the first one, then the answer is k, otherwise, we can assign k=k−a1. Then let's look at the second element. If a1+k<a2, then answer should be a1+k and otherwise we can assign k=k−a2+a1−1. In other words, when we look if our k can be in range from ai to ai+1, we know that number of elements that were not in the array and less than ai equal to k+ai. Then, when we find such i, we can output the answer." This is dumb and overcomplicated. What they should have said was something like this....
the answer." This is dumb and overcomplicated. What they should have said was something like this, This is dumb and overcomplicated. What they should have said was something like this. "Assume the

Full text and comments »

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

77.
By simpleperson, history, 10 years ago, In English
ICPC Regional Considered Harmful I have participated 3 years in the South Central USA ICPC regional. But their problems always **SUCK**. For example, last regional they put a problem **which can't even be solved**; that is, I'm pretty sure there is no correct algorithm that would be correct and be efficient enough. So their official solution to that problem was an incorrect greedy heuristic that is really easy to come up with a test case that makes it give a wrong answer. I got really upset because I spent a lot of time in the contest trying to solve that problem, only to realize when the contest ended that I was supposed to submit a wrong solution in order to get Accepted like other teams did. **Is that type of problem even allowed by the ICPC?!?!** I leave the link to the problem: http://ld2016.scusa.lsu.edu/problems-regional/prb.php?prob=10 Oh, and sometimes they like to put trick / stupid problems like this one: (the problem statement tells you to given as input a position in the digits of pi, to find the ne...
problem only to realize it was a dumb trick question. And thus wasted a lot of contest time, was a dumb trick question. And thus wasted a lot of contest time):

Full text and comments »

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

78.
By ThreeKnives, history, 2 years ago, In English
Strange behaviour while comparing strings in c++ I was solving the problem[1800E2](https://codeforces.me/problemset/problem/1800/E2) I came across strange behaviour while comparing strings in c++. My first submission failed on testcase 2, I changed the code to compare string and instead of using "==" wrote my comparator myself and it passed. I fail to understand my mistake in the first implementation. submission 1: [Link](https://codeforces.me/contest/1800/submission/284398246) submission 2: [Link](https://codeforces.me/contest/1800/submission/284398393) Basically my code included ~~~~~ string ta = a.substr(i, min(k, n) - i); string tb = b.substr(i, min(k, n) - i); if(ta == tb) cout << "YES\n"; else cout << "NO\n"; ~~~~~ which failed the testcases then i changed this part of code to ~~~~~ for(int j = i; j < min(n, k); j++) { if(a[j] != b[j]) valid = 0; } ~~~~~ This passed the testcase. I dont understand what was the problem in the first implementation, can anyone point something out that I...
I am too dumb to understand. Sorry for my poor english, Thanks in advance. , anyone point something out that I am too dumb to understand.

Full text and comments »

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

79.
By dfsof, history, 3 years ago, In English
Hardstone and Erdos-Gallai Orz.[user:hardstone,2023-10-16] gives me four problems. However, I am so dumb that can only solve the easiest one: First, we define $A$ as a non-negative integer array $A:=\\{a_i\\}$. We call $A$ is valid if $A$ is a [degree sequence](https://en.wikipedia.org/wiki/Degree_(graph_theory)) of a simple undirected graph. P1: Give $A$, decide whether $A$ is valid. (Solved using [Erdos-Gallai](https://en.wikipedia.org/wiki/Erd%C5%91s%E2%80%93Gallai_theorem), $O(n)$); P2: Give $A$ and $q$ independent queries $(l, r)$, decide whether $A[l...r]$ is valid. P3: Give $A$, count how many continuous subarrays of $A$ are valid. P4: Solve $P2$ if modification on $A$ is allowed.
Orz.[user:hardstone,2023-10-16] gives me four problems. However, I am so dumb that can only solve

Full text and comments »

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

80.
By DakDak, 6 years ago, In English
Personal Goal Today, although it is something insignificant, I finally got back to pupil. It's been exactly a year now from the time that I was introduced to CP and it has definitely been a roller-coaster of emotions. I started CP on codeforces, quickly losing rating, falling down to the despised gray area on the bottom of the rating chart. I think that was one of the things that made me leave CP for a very long period of time. I remember being frustrated that I couldn't solve a D2A or a D3A even, looking at the editorials after the contest and thinking to myself that I was so dumb to not be able to solve a problem that trivial. But I came back to CP starting with USACO, and I think that really inspired me to start practicing more. I found more fun in CP as I got better and better and I recently started practicing more codeforces problems which probably attributed for my rise to Pupil. Although a small one, this jump has showed that I can do it with practice and the time I put in payed off. ...
or a D3A even, looking at the editorials after the contest and thinking to myself that I was sodumb, , looking at the editorials after the contest and thinking to myself that I was sodumb to not be able to

Full text and comments »

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

81.
By Lotte10, 7 years ago, In English
Does everyone write the contests well during the month of Ramadan or I am getting stupid ? Hi Codeforses, first of all Ramadan Mubarak. For those who do not know what Ramadan is, in short, this is a holy month for Muslims when they fast from dawn to sunset(eating, drinking and intimate activity are forbidden). So, I try to never miss contests, even during this month. The fact is that the start time of the regular contest will exactly coincide with the sunset time in my region, in other words with the time when I break my fast. In fact, I only have time to drink a glass of water before the contest starts. I noticed that with the beginning of the month of Ramadan, my usual results in contests (div. 2 A, B, C and sometimes D or E) worsened (I hardly solve A and B). After the contest I eat something and have a rest, then I solve remaining C, D more or less normally (sometimes with the help of editorial). Naturally, I could lose my shape and become dumb, but I wonder if this could happen because I fast and start contests with the feeling of starvation. And also am I only...
happened only to me, then probably I became dumb:(, with the help of editorial). Naturally, I could lose my shape and become dumb, but I wonder if this, ). Naturally, I could lose my shape and become dumb, but I wonder if this could happen because I

Full text and comments »

  • Vote: I like it
  • -30
  • Vote: I do not like it

82.
By JasonMendoza2008, 12 months ago, In English
Is the editorial for BAPC 2025 B: Boggle Sort broken/wrong/typo-ed? This problem: https://codeforces.me/gym/106160/problem/B has an editorial (it's a pdf attached) and they claim: ![ ](https://i.imgur.com/F1CVgYU.png) But to me the relationship should be: $f(i, x) = cost(i, x) + min_{y ≤ x} f(i-1, y)$ where $cost(i, x)$ is either 0, 1, or 2. Definitely have no idea where the max could come from. Would love to have someone double check if what I'm claiming is true or if I'm just dumb and misreading the editorial.
claiming is true or if I'm just dumb and misreading the editorial., Would love to have someone double check if what I'm claiming is true or if I'm justdumb and

Full text and comments »

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

83.
By beatoriche, 12 years ago, In English
Social Justice When I was young, I thought that all programmers have rational thinking. But I see that they are more like normal people. One of high ranked CFers spoke of similarity of interracial marriage and same-sex marriage, and got upvotes for that. Of course, the analogy exists only in "progressive" narrative (many of us are so americanized so even we speak from U.S. POV) -- interracial marriage ban purposefully discriminated people, whereas absence of same-sex marriage is status quo even for countries which have never had anti-sodomy laws to begin with. So what are the consequences of the former civil rights victory, lifting an interracial marriage ban? I in 2012, 72% of Black babies were born to unwed mothers (highest amongst all ethnic groups) http://www.cdc.gov/nchs/data/nvsr/nvsr62/nvsr62_09.pdf Why? The answer is very simple: black women are not sexually attractive for most men. http://qz.com/149342/the-uncomfortable-racial-preferences-revealed-by-online-dating/ They look too ...
attributes of people. People can male or female, tall or short, clever or dumb , dark-skinned or, many attributes of people. People can male or female, tall or short, clever or dumb, dark-skinned or, There are many attributes of people. People can male or female, tall or short, clever ordumb, dark

Full text and comments »

  • Vote: I like it
  • -24
  • Vote: I do not like it

84.
By njha1999, history, 7 years ago, In English
Loop runs for 10^18 and still executes : Strange Behaviour or am too dumb to understand this? Either this is something strangely deep or i have to revisit time complexity analysis for a piece of code !! ~~~~~ #include <iostream> int main() { long long int t=1e18,a=0; while(t--) a++; std::cout<<a; return 0; } ~~~~~ This code executes in **15 ms** codeforces / codechef ide! How is that even possible? May be this question is too dumb but any help is appreciated. Thanks!
Loop runs for 10^18 and still executes : Strange Behaviour or am too dumb to understand this?, ** codeforces / codechef ide! How is that even possible? May be this question is toodumb but any help is, May be this question is too dumb but any help is appreciated. Thanks!

Full text and comments »

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

85.
By ton, history, 15 months ago, In English
Minimum Length Subsequence with XOR = 0 Given an array of $n$ numbers $\{a_i\}$ with $a_i < 2^{23}$, find the smallest $k$ such that there exist indices $0 \leq i_1 < \dots < i_k \leq n - 1$ for which $a_{i_1} \oplus \dots \oplus a_{i_k} = 0$. I thought this was a well-known problem, but I couldn't find it. Maybe it can be solvable using Xor-Basis?(Or smth like meet-in-the-middle) My dumbest solution is: If $\binom{n}{4} > 2^{23}$, then it is clear that an answer exists and has length $\leq 8$. It can be found in some sense by taking the $l$-th power of the Xor-Convolution(with $l \leq 8$) Otherwise, $n < 120$, and we can write a solution in $O(n 2^m)$ using naive dp(Here $m = 23$) I think there is definitely a solution that is much simpler and better than this.

Full text and comments »

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

86.
By exposing_recursion, history, 20 months ago, In English
YET ANOTHER CHEATER FROM THE CP CLUB OF MY COLLEGE!!! Brief background &mdash; I come from one of the premier colleges in India which happens to be an Institute of National Importance. This post is going to be about a cheater from out college's official CP Club called recursion. It is supposed to promote CP Culture but it instead promotes cheating culture but "helping" the students by leaking OA solutions for on campus company OAs. They even sell the solutions at times. There have been many blogs abut its members in the past where one of their specialist members solved Div 2F. I had also commented about their cheaters in that blog and about how they cheat their way to ICPC each year by buying out the solutions. Guess what? They even did it this year and both the teams entering ICPC were from this club. Both came in top 100 during prelims. In the regionals they managed to improve their ranks to top 20 but from the bottom of the list (let's give them credits for it at least they got to top 20. Why care if its from the bottom of the list?) T...
club normalizes cheating and their batchmates and seniors might call them dumb for not doing so., might call them dumb for not doing so. Here is a list of all current recursion members you might

Full text and comments »

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

87.
By AdHocMan, 6 years ago, In English
Help needed in understanding the prefix function. Today I was trying to solve the problem [CF R1600 &mdash; Camp Schedule](https://codeforces.me/problemset/problem/1137/B). I realized that I will need the **longest prefix of a string which is also a suffix of that string**. I searched it on google and found that it is called **'Prefix Function'**. I tried to understand this concept from the [CP Algorithms article](https://cp-algorithms.com/string/prefix-function.html), but I am too dumb to understand it. Though I got the code from there what I needed, I can't understand how it works. Can anyone please help me to understand this concept? (with some examples?) <spoiler summary="Prefix Function Code"> ~~~~~ // everything 0-indexed // pi[i] = 0 -> empty string matched // pi[i] = j -> prefix s[0..(j)] matched int prefixFunction(const string& s){ int n = sz(s); vector<int> pi(n); for(int i = 1; i < n; i++){ int j = pi[i - 1]; while(j > 0 && s[j] != s[i]) j =...
/string/prefix-function.html), but I am too dumb to understand it.

Full text and comments »

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

88.
By dhanunjaygurram12340, history, 17 months ago, In English
HELP !!!!, I am scared of MOD This might super dumb to ask ,but I really need some clear cut answer to this nightmare of mine Due to this one operation I lost confidence even in questions that I am capable of solving and many Wrong Submissions during the contests where I am having trouble to use this mod (sounds stupid) Just a simple question.... ### WHEN & WHERE(i.e in which part of the code) DO I NEED TO USE (% MOD)? Are there any golden rules on where to use %mod Also what is the guarantee (or any proof kinda thing) that using %mod at a particular place do not change my final answer??
This might super dumb to ask ,but I really need some clear cut answer to this nightmare of mine

Full text and comments »

89.
By Amao_Foxy, history, 3 years ago, In English
I must be the dumbest person in Codefores I am trying to get "the dumbest person" award because I passed yesterday's G2 but not G1. I don't have time to submit it.

Full text and comments »

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

90.
By Sparky_Master_WCH1226, 4 years ago, In English
Codeforces Round #eight hundred and fifty Komments Hereinafter assume div 1 notation is used. Problem ?1: insignificant Problem ?2: nonsense Problem @: silly Problem A: trivial Problem B: dumb Problem C: uninteresting Problem D: stupid Problem E: toxic Problem F: not read also bump when release editorial ###六国破灭非兵不利战不善弊在赂秦赂秦而力亏破灭之道也或曰六国互丧率赂秦耶曰不赂者以赂者丧盖失强援不能独完故曰弊在赂秦也秦以攻取之外小则获邑大则得城较秦之所得与战胜而得者其实百倍诸侯之所亡与战败而亡者其实亦百倍则秦之所大欲诸侯之所大患固不在战矣思厥先祖父暴霜露斩荆棘以有尺寸之地子孙视之不甚惜举以予人如弃草芥今日割五城明日割十城然后得一夕安寝起视四境而秦兵又至矣然则诸侯之地有限暴秦之欲无厌奉之弥繁侵之愈急故不战而强弱胜负已判矣至于颠覆理固宜然古人云以地事秦犹抱薪救火薪不尽火不灭此言得之齐人未尝赂秦终继五国迁灭何哉与嬴而不助五国也五国既丧齐亦不免矣燕赵之君始有远略能守其土义不赂秦是故燕虽小国而后亡斯用兵之效也至丹以荆卿为计始速祸焉赵尝五战于秦二败而三胜后秦击赵者再李牧连却之洎牧以谗诛邯郸为郡惜其用武而不终也且燕赵处秦革灭殆尽之际可谓智力孤危战败而亡诚不得已向使三国各爱其地齐人勿附于秦刺客不行良将犹在则胜负之数存亡之理当与秦相较或未易量呜呼以赂秦之地封天下之谋臣以事秦之心礼天下之奇才并力西向则吾恐秦人食之不得下咽也悲夫有如此之势而为秦人积威之所劫日削月割以趋于亡为国者无使为积威之所劫哉夫六国与秦皆诸侯其势弱于秦而犹有可以不赂而胜之之势苟以天下之大下而从六国破亡之故事是又在六国下矣
Problem B: dumb

Full text and comments »

91.
By baobab, history, 8 years ago, In English
Super simple unintended solution for "Knapsack" (Div2E of contest 1132) [Link to problem statement](https://codeforces.me/contest/1132/problem/E) Let's first fill up the sack with as small items as possible, until we can't fill it anymore. The difference between current weight and max weight can be at most 8 (with the exception of trivial inputs) and there are only 8 distinctive items. So if we need to create a sequence of actions which takes us from the current weight to the optimal weight, we don't need many actions to do that. Now, here comes the funny part: **instead of constructing a short, smart sequence of actions, we can simply construct a long, dumb sequence of actions.** If we choose every action in a greedy, randomized way, we will probably visit the optimal weight at some point in the sequence. What do I mean by greedy? If we are under max weight, let's add a random item to the sack. If we are over max weight, let's remove a random item from the sack. That's it! There's still time to hack [my solution](https://codeforces.me/contest/113...
construct a long, dumb sequence of actions.** If we choose every action in a greedy, randomized way, : **instead of constructing a short, smart sequence of actions, we can simply construct a long,dumb

Full text and comments »

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

92.
By Igorjan94, history, 3 years ago, In English
[Yandex.Cup] My strangest participation ever This summer I decided to visit Kalinindrad from Saint-Petersburg on 4-6 November, bought fly tickets on 10:55AM-13:00PM and everything went well. But Yandex decided to set half-final exactly at 12:00AM on 4th November :( Fortunately I participate at backend track (I'm just magenta in algorithm and I believe at least yellow in backend) and contest lasts for 5 hours. I decided to take my laptop and take part from Kaliningrad When I came to home airport, I saw "delayed until 12:55". Badumtss! On one hand, it's better that I can read all problems before flight and solve them during flight. On the other hand, it's worse that I'd have less time after landing Anyway, 12:00, I opened contest, opened all problems, screenshoted them (to be sure that occasional reload won't kill problems) and saved all needed resourced locally I rushed solving B (yes, this contest has problems B-F and description/instructions in A) while sitting in airport next to gate. Unfortunately this problem needed ...
, One more 0. Ah, I'm dumb. I need to unwrap NULL. Let's google how to unwrap. It's really hard to

Full text and comments »

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

93.
By comingsoon.cpp, 16 months ago, In English
Explain to me like i'm five There are three expressions that as simple as they might seem, i do not truly understand how they work and how they are different from each other even when they seem to be basically the same thing. Let's say we have two numbers $a$ and $b$ that represents two points on the number line the three expressions are $\frac{b+a}{2}$ , $\frac{|b-a|}{2}$ and $\frac{|b-a+1|}{2}$ The first expression is used to find the midpoint of the line segment determined by $b$ and $a$ and also when doing binary search you can also use it and it works. In the second expression , $|b-a|$ is normally used to find the distance between two points $a$ and $b$ so when you divide that distance by 2, is it not naturally for that to also for that to also determine the midpoint? since you are just taking the distance and dividing by two? The third expression was me just adding 1 to the second expression, to account for the lost digit from doing $|b-a|$ but non of those work in a binary search algorithm and i w...
wonder why. I know I'm dumb and i apologize for that, but can someone please help me understand, I know I'm dumb and i apologize for that, but can someone please help me understand? And this is

Full text and comments »

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

94.
By loser_iitian, history, 5 years ago, In English
All Indian who are doing CP for JOBS/INTERNSHIP ** Hello Everyone from India ** I am from top ** iit **(but no body cares). - I have devoted my 2 years of undergraduate for cp - doing ok in it high expert and 5 * on chef - I kept wrong hopes as all indian keep - ** CP gives JOB ** - **[answer] NOOOOOOOOOOOOOOOO**** - just because I have no web dev knowledge makes me unfit for internships "wahho" - my dumb friends have got tones of internships and they have money to buy food without their parent money. And what I am doing "typing on keyboard day and night to get AC on problems" - Now a days I don't feel like doing cp as it has never given me something except frustration. - Now I have no time left to do web dev or any things. - I really don't blame to cp. It is a common myth in india. **Tip for junior ** - Never hope that cp will give you jobs "even in iit's - I paid 3 lakhs per year just to jump from Buildings - Now I look other spending their time chilling and what idiot I am - I have became ...
I have no web dev knowledge makes me unfit for internships "wahho" - my dumb friends have got, - my dumb friends have got tones of internships and they have money to buy food without their

Full text and comments »

  • Vote: I like it
  • -19
  • Vote: I do not like it

95.
By ashutosh2711, history, 2 months ago, In English
I’m Still Bad at CP, But Here Is What 30 Days of Failing Taught Me I’m not a candidate master, nor am I solving Div 2 D problems in 10 minutes. I’m still a beginner, still getting TLEs, and still struggling with basic logic. But instead of giving up, I tweaked my mindset recently, and it changed how I practice: **1. The 15-Minute Paper Rule** Earlier, I used to stare at an empty IDE for an hour feeling dumb. Now, if I can't figure out the logic on paper in 15 minutes for Problem A or B, I don't ego-grind. I look at a small hint or dry-run test cases manually. **2. Learning from Clean Code** After a contest, I open the shortest accepted submissions for Problem A/B. Seeing someone solve in 10 clean lines what took me 40 lines of messy nested loops is a huge eye-opener. **3. Rating Doesn't Matter (Yet)** Focusing on + delta or &mdash; delta was ruining my focus. Now I only track my up-solved problems. If you're also struggling at the bottom of Div 3/4, you're not alone. We're all learning. What’s one thing that helped you most when y...
used to stare at an empty IDE for an hour feeling dumb. Now, if I can't figure out the logic on paper, **1. The 15-Minute Paper Rule** Earlier, I used to stare at an empty IDE for an hour feelingdumb

Full text and comments »

  • Vote: I like it
  • -17
  • Vote: I do not like it

96.
By puma_usa, history, 23 months ago, translation, In English
The lesser of two evils I’ve set myself the goal of achieving 1900 over the year. One of the steps towards this goal is solving problems from the book "Selected Problems and Theorems of Elementary Mathematics". My plan is to solve the entire book over the year, doing 5 problems per day (consecutive ones, of course). The first couple of days went well, but as you know, olympiad math problems can really block you if you can't come up with a specific idea. Now I’m wondering, what would be the better approach: should I stick to this pace and, if I don’t manage to solve all 5 problems in a day, read the solutions to the unsolved ones and move on, or should I give myself a conditional 3-day limit per problem (and not solve others during that time), after which I can check the solution? In other words, which approach will lead to stronger progress? Will I make more progress by rushing through the whole book and solving about half of the problems myself, or will I benefit more if I get stuck in some areas, solving...
guarantees that I will solve everything, but at least coming up with a lot of new ideas, whetherdumb or, , but at least coming up with a lot of new ideas, whether dumb or smart)?

Full text and comments »

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

97.
By exposing_recursion, history, 2 years ago, In English
CELEBS WHO CHEAT EPISODE 1 - STRIVER Hello Guys! Welcome to the first episode of my blog series where I expose the best cheat.... I mean coders that are popular among us. I am planning to release further episodes in this series based on thorough research along with the evidences (If this blog isn't taken down unlike the ones that were initially written against big names like [user:Psychotic_D,2024-09-20]). In today's episode, our celebrity star is the most popular Indian DSA coach, [user:striver_79,2024-09-20] aka Raj Vikramaditya. If you are a coder from India, it is impossible that you don't know this guy. For those of you who aren't Indian, [THIS IS HIS YOUTUBE CHANNEL](https://www.youtube.com/@striver_79). Although a lot of the content on his channel is free, this guy has minted a lot of money from the people who are beginners in DSA or preparing for placements by selling his courses. I am not here to comment on his business strategies of first giving something for free and then selling his services like referrals ...
and I am quoting this number as of today) to be caught in 8 (he isn't dumb enough to not change the, worse than today and I am quoting this number as of today) to be caught in 8 (he isn'tdumb enough to

Full text and comments »

98.
By 21August, history, 6 years ago, In English
What's more important: algo's or problem solving skill? Hi everyone, i have a question that i hope it's not too dumb or obvious. What is more important for competitions in general: learning algorithms and how to apply that algorithm in solving problems or solving random problems that require more constructive oriented or ad-hoc / observation thinking ( I know there are different styles of competitions but let's say in general). Of course you won't be able to solve a problem if the solution is an alternation of an algorithm that you don't know, but what I noticed is that till a pretty high skill (grandmaster), it suffices to know the same things as a candidate master or master. This question may sound lazy but I am curious to see what people think. Thank you very much and have a nice weekend!
Hi everyone, i have a question that i hope it's not too dumb or obvious. What is more important for

Full text and comments »

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

99.
By bobbilyking, history, 7 years ago, In English
How to make this not MLE? Codeforces 641 Div2C I'm probably being extremely dumb right now, but for round 641, div2C, I literally had the right solution but I spend 1h30m trying to implement the last part (counting factors and then getting 2nd minimum one) but I couldn't do it w/o hashmaps or arraylists, which ofc MLE. Can anyone help me approach this last part (because the editorials used the first solution, but i used the second so i have nothing to go on) https://codeforces.me/contest/1350/submission/80029151
I'm probably being extremely dumb right now, but for round 641, div2C, I literally had the right

Full text and comments »

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

100.
By Prabhxs, history, 4 years ago, In English
No Growth — Any Suggestions/Advice I have been doing CP from past few months, and that too consistently(there is a break for 4-5 months in my rating graph, I was actively practicing during that phase, and wasn't giving contest, "because I lose my confidence"). But I haven;t seen much growth, I have seen people touching expert effortlessly with this much practise, "am I that dumb?". Any advice for me on how to practice or something else, because I really wanna know where I am going wrong. :( Any kind of help/advice/suggestion would be highly appreciated. Attaching my Atcoder Profile: [Prabhxs](https://atcoder.jp/users/prabhxs)
practise, "am I that dumb?".

Full text and comments »

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

101.
By ItIs2Good2BeTrue, history, 5 years ago, In English
The real problem nobody talks about As I'm sure you know, recently [user:sus,2021-09-08] managed to reach top contributors board. Some people may be excited &mdash; finally, a grey in top contributors. However, I think this is incredibly disappointing, since [user:sus,2021-09-08] has not actually contributed, at all, to the community. Let's take a look at his most recent blogs: September 7th, AFTERMATH --> This was completely upvote farming. He literally wrote a post congratulating himself on getting top contributor. At the end, he put some memes. If it's not clear, it's just a scheme to get more upvotes. September 6th, FINAL: TOP ANIME PROTAGONISTS OF CODEFORCES --> He basically just animed the profile photos of random highly rated programmers. He probably didn't do the anime himself and juts used some online anime converter. Not impressive, very lame. September 5th, HOW TO WRITE A GOOD BLOG --> Erm, also upvote farming on how to write a good blog. Useless, not even funny. September 2nd, WHERE ARE MY PANTS -...
attempt-at-funny blogs are dumb and clog up the sidebar. I'm tired of seeing random sus blogs on my, , but spammy attempt-at-funny blogs are dumb and clog up the sidebar. I'm tired of seeing random sus

Full text and comments »

  • Vote: I like it
  • -32
  • Vote: I do not like it

102.
By royappa, 12 years ago, In English
Hacking I've played in 3 contests now but am still not sure how to hack. First, I "lock" my solutions when they pass pretests. Then I look in the Standings area for other people with submissions that are in bold font. I doubleclick and/or control-click that cell. I get a popup, but for other people the only thing I ever see is a single line like "00:06:47 Pretests passed [pretests] → 8184534". Clicking the submission number there, which is a link, does nothing, it just goes to the standings page. If I do this on my OWN submissions, I see my source code in the popup. I know this is a dumb question because I see other people are successfully hacking. :-) But any help would be appreciated. I've tried in Chrome and IE11 browsers. Thanks!
I know this is a dumb question because I see other people are successfully hacking. :-) But any, dumb question because I see other people are successfully hacking. :-) But any help would be

Full text and comments »

  • Vote: I like it
  • -2
  • Vote: I do not like it

103.
By mask_of_madness, history, 6 years ago, In English
Trouble understanding Two Queens Problem solution Problem &mdash; Given an n × n chessboard, our problem is to count the number of ways we can place two queens on the board in such a way that they do not attack each other "To get a recursive solution, we may focus on the last row and last column of the n× n board (Fig. 3.4). First, if there are no queens on the last row or column, the number of combinations is simply q(n − 1). Then, there are 2n − 1 positions for a queen on the last row or column. It attacks 3(n − 1) squares, so there are n*n − 3(n − 1) − 1 positions for the other queen. Finally, there are (n − 1)(n − 2) combinations where both queens are on the last row or column. Since we counted those combinations twice, we have to remove this number from the result. By combining all this, we get a recursive formula ``q(n) = q(n − 1) + (2n − 1)(n*n − 3(n − 1) − 1) − (n − 1)(n − 2) = q(n − 1) + 2(n − 1)^2(n − 2)``, which provides an O(n) solution to the problem." Sorry if this is a dumb question. I am having trouble...
)``, which provides an O(n) solution to the problem." Sorry if this is a dumb question. I am having, Sorry if this is a dumb question. I am having trouble understanding the last bit which talks about

Full text and comments »

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

104.
By _Muhammad.Along_, history, 23 months ago, In English
Need help on 2022C These day im trying to improve my dp skills and then i faced this problem. I did come up with da solution and then... It bugged :( First thought occured in mah mind was that if i was miswrite at some line... But i havent spotted it until now :| Maybe i did not implement it in a correct algo? Or somehow mah eyes so dumb that i cant see the error... Thanks and appreciate all of your helps! Mah submission: https://codeforces.me/contest/2022/submission/297780647 Btw this is my drawing about mah algo: ![ ](/predownloaded/dd/1a/dd1a5a80b6b14672228d2f2fb84c108b2004e5ae.png)
? Or somehow mah eyes so dumb that i cant see the error... Thanks and appreciate all of your helps, Maybe i did not implement it in a correct algo? Or somehow mah eyes so dumb that i cant see the

Full text and comments »

Tags dp, 2022
  • Vote: I like it
  • 0
  • Vote: I do not like it

105.
By gm_monkey, history, 13 days ago, In English
Beginners, what’s the most annoying part of improving? Hi! I’m looking for some feedback from people earlier in their CP journey than me :) I’ve been doing CP for a few years, mostly olympiads and CF. When I got stuck, it was usually on dumb things, like debugging, giving up on an idea too early, or not knowing what to practice next. Nobody told me that was the problem, I just figured it out slowly. I’m curious what it is for you. What’s the thing slowing you down most right now? And if someone sat with you for an hour, what would you want them to do? Higher rated people, what do you wish you’d known earlier? Any answer helps, even one line. Thanks!
doing CP for a few years, mostly olympiads and CF. When I got stuck, it was usually ondumb things, dumb things, like debugging, giving up on an idea too early, or not knowing what to practice next

Full text and comments »

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

106.
By rudra101, history, 11 years ago, In English
Dumbest code ever I recently read [this Quora post](http://qr.ae/78xtgr) about [Bogosort](http://en.wikipedia.org/wiki/Bogosort) which _tries_ to sort a list using the following algorithm: 1. Put the elements of the list in a random order. 2. If the list is sorted, finish. Otherwise go to Step 1. It has an average running time equal to `O((n+1)!)`. And, it may run forever. Can someone share more algorithms which became famous due to their _dumbness_?

Full text and comments »

  • Vote: I like it
  • -29
  • Vote: I do not like it

107.
By ChaituBoi, 6 years ago, In English
CF round 672 Div 2 Rock and lever , some basic doubt about ranges Now what i did was similar to editorial. The problem isnt with the approach but with the fact that if use operation `ans+=(n*(n-1))/2` i get wrong answer due to integer overflow, now I AM using `long long` but still it gives -ve answer in 2nd test case which is ofcourse due to overflow. To solve this what i did was first divide n or (n-1) by 2 (depending upon parity) and then multiplying and got answer accepted. Can someone tell why this is happening?? I know i would probably be a very dumb mistake but plz dont judge harshly. :D MY CODE: `#include<bits/stdc++.h>` `using namespace std;` `//void swap(int &a,int &b){` `// int tmp=a;a=b;b=tmp;` `//}` `int size(long long a){` ` int n=0;` ` while(a!=0){` ` n++;` ` a/=2;` ` }` ` return n;` `}` `int main(){` ` ios_base::sync_with_stdio(false);` ` cin.tie(NULL);` ` int t,n;` ` cin>>t;` ` while(t--){` ` cin>>n;` ` long long A[n],ans=0;` ` for(int i=0;i<n;i++)cin>>A[i]...
answer accepted. Can someone tell why this is happening?? I know i would probably be a verydumb

Full text and comments »

  • Vote: I like it
  • -23
  • Vote: I do not like it

108.
By MetB, history, 7 years ago, In English
[SOLVED] Rating Inflation Problem Sorry, It's time for dumb questions again. From what I see the platform is having a problem of rating inflation. As i know, it's not getting from easy/hard contests, because every contest is a zero-sum game. But on the other hand, every new account contributes 1500 rating. Why don't we make the initial rating 0? For people who are already rated on Codeforces we can easily subtract 1500. Ranks will most probably change, but Codeforces system, I think, will easily adapt (since the rank is not big of a deal) and, what's more, problem authors will not be able to blame rating inflation for their problems being too hard (not that they do complain though). Why is this not a solution?
Sorry, It's time for dumb questions again. From what I see the platform is having a problem of

Full text and comments »

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

109.
By Mike_Mirzayanov_Is_Pussy, 7 years ago, In English
How to upload image on codeforces ? I am new to codeforces . I will be thankful if some one tells how to upload image on codeforces . When i click the image icon , it asks me for a link , but nothing appears when i enter the link and submit .following text automatically gets written ``` ![ ](https://imgur.com/2A2TrxE) ``` I went to [previous post](https://codeforces.me/blog/entry/55986) but i am too dumb to understand how to do . Please help .Thanks in advance. Edit : Please do not downvote.Because if some one will visit my profile it will look like i am bad guy and write bad stuffs . I don't think i am negatively contributing to the community .
went to [previous post](https://codeforces.me/blog/entry/55986) but i am too dumb to understand how to

Full text and comments »

110.
By eambutu, history, 10 years ago, In English
c++ scanf question I am new to C++ so sorry if this question is dumb. I am solving this problem: http://codeforces.me/contest/707/problem/A And couldn't understand why this solution failed: http://codeforces.me/contest/707/submission/20019326 According to http://www.cplusplus.com/reference/cstdio/scanf/ , the %s tag should only take one character at a time, right? So reading into a 1 element character array should be fine. Switching variable x to a 2 element character array makes this work for some reason. Also, the particular test case that fails works locally for me?
I am new to C++ so sorry if this question is dumb.

Full text and comments »

Tags c++, new
  • Vote: I like it
  • +3
  • Vote: I do not like it

111.
By Just_a_new_guy_on_cf, history, 5 years ago, In English
System Plagiarism Checker is dumb and CF doesn't Give a Damn about Low rank Participants !! Hello, I started doing cp last week and practiced every day and I know I can't do really good at the start but I have to keep learning So I am happy with my little progress like getting problem A done or Sometimes B, but 7 days ago, I gave the Codeforce Global Round 16 contest and in the contest, I solved A, B, C I am happy with that, after some time I got a notification from the cf system that my solution 1556C matched with some other guys, and now I have to prove that I didn't cheat that say I need to comment under that announcement post and I did but how can I prove that I didn't share or copied that problem is so easy that easily many people can have the same approach to it and then I waited for I though my ratings will be back. and they didn't and when I checked on other guys who also commented that they also got a notification about the 1556C problem and now I see their rating came back but mine didn't and also those are newbies like me or low rank. here I am giving t...
System Plagiarism Checker is dumb and CF doesn't Give a Damn about Low rank Participants !!

Full text and comments »

112.
By duddo, history, 4 years ago, In English
Please some tips Hi, I'm going into grade 11 this fall and I have started to find competitive programming interesting. I try to participate in contests but I can't even make it past the first question on codeforces. It makes me feel so dumb. I want to get good at this and I have been reading multiple articles on the internet (what prefix sum is, prime factors, sieve, binary search, etc) but whenever I go into these contests I stumble on all questions. Please give tips on how I can get better at comp prog. When I try to practice, either questions are too easy or too dumb. And I just don't know how I'll get better at this.
makes me feel so dumb., questions are too easy or too dumb. And I just don't know how I'll get better at this.

Full text and comments »

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

113.
By iamdumb, history, 11 years ago, In English
Correctness and Explaination of This DP solution Needed Hello guys,Few days ago [this question](https://www.codechef.com/problems/SUMPAIR) was asked in Codechef cookoff.I was able to understand greedy part of the editorial but could not convince myself with DP approach. Things I did not understand, In the picking of Pairs,where are we checking the conditions in which pair's difference is strictly less than D.I could not see it anywhere. So basically I want you to please explain it to me.The more detailed the more helpful(as I am dumb :P).Thank you have a nice day. [](https://discuss.codechef.com/questions/72500/sumpair-editorial)
basically I want you to please explain it to me.The more detailed the more helpful(as I amdumb :P, So basically I want you to please explain it to me.The more detailed the more helpful(as I amdumb

Full text and comments »

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

114.
By sauron271, 22 months ago, In English
Deepseek is dumb just like GPT. Just gave deepseek a 1800 rated question with tutorial explaination it still couldnt generate a correct solution. In my opinion LLMs as of now are just good at solving pretty standard questions anything adhoc/constructive above 1500 with multiple edge cases it starts acting like a retard.
Deepseek is dumb just like GPT.

Full text and comments »

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

115.
By elakstein, history, 6 years ago, In English
Can you Explain the statement Problem Statement:- You are given a string S with length N that contains only the 26 lowercase English letters. You are also given a sequence W1,W2,…,W26 of weights corresponding to these letters in the order from 'a' to 'z', i.e. W1 is the weight of 'a', W2 is the weight of 'b' and so on. We define the weight of a string as the sum of weights of all characters present in it. If a character occurs multiple times in this string, its weight is also counted multiple times. Next, we define the power of a string s as the sum of weights of all strings r such that s can be represented as r+r+…+r+p, where + denotes string concatenation and p is a prefix of r (possibly empty). Can anyone explain what does the author mean here by power of the string. Even after reading it 100 times I can't understand the statement. I would also like to know that am I just too dumb to understand it or you also think the problem statement is shit . Link to problem [statement](https://www.codechef.com/...
can't understand the statement. I would also like to know that am I just too dumb to understand it or, times I can't understand the statement. I would also like to know that am I just toodumb to

Full text and comments »

  • Vote: I like it
  • -18
  • Vote: I do not like it

116.
By shadowalkergg, 10 months ago, In English
Does anyone feel that the levels of problems have increased significantly? I have been trying to get better at codeforces for quite sometime at this point, but I seem to get stopped by some external factors- such as exams and health concerns, but this blog is not about my struggle and problems. I feel like the A problems for Div2 and Div3 are getting harder. I could never solve the B in a contest, so I don't know about it, but I feel like A problems are getting harder with each contest, but the number of submissions during a live contest are increasing RAPIDLY, when I joined codeforces 9 months ago, there used to be less people submitting during the live contests- is it due to people exploiting AI during contests? Or am I genuinely getting dumber each day?

Full text and comments »

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

117.
By Zhang_Xina04, history, 10 months ago, In English
How to maintain motivation while doing CP? I'm finding it very hard to practice CP. I can't up-solve myself! I am stuck with solving only 2 questions per contest or sometimes none. And even if I do solve any question, it takes me ages to figure logic. I enjoyed CP but my growth seems stagnant. I tried solving questions of same difficulty levels. But after seeing others solve same question in 1 minute while it took me 15 minutes, I feel like I'm dumb. Same for AtCoders. I'm somewhat okayish in CodeChef but nothing spectacular. I'm loosing my motivation for CP. I just wanna improve. I want to develop that instinct where you realise in a sec what the question is about. I don't know if anyone will comment on this because it's my first blog hehe, but thank you if you do. I would be grateful for you.
I'm dumb. Same for AtCoders. I'm somewhat okayish in CodeChef but nothing spectacular. I'm loosing my, feel like I'm dumb. Same for AtCoders. I'm somewhat okayish in CodeChef but nothing spectacular

Full text and comments »

  • Vote: I like it
  • -16
  • Vote: I do not like it

118.
By Algomancer29, history, 14 months ago, In English
Recent rating rollbacks Hi, I am unable to understand what happened with the recent rating rollbacks. Everyone I know had their ratings reduced. This might be a dumb question but please explain me if you know the reason.
their ratings reduced. This might be a dumb question but please explain me if you know the reason.

Full text and comments »

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

119.
By doctor_sherlock, history, 7 years ago, In English
Offer from Google still worried Hi, community I got an offer from Google for the SWE L3 role. I am a new grad who is from a non-CS background and am about to graduate. I worked hard on my DS and Algorithm skills to get that offer and I am extremely happy and thankful to codeforces for helping me. Now the reason for my worry is that I do not know anything other than DS and Algo and in college, I mostly focused on competitive programming. I still have about 2 months before I join Google. What should I do in this available time so that I do not look like a complete dumb in front of other googlers? Should I learn some web development, machine learning, or what...I need guidance please help me.
not look like a complete dumb in front of other googlers?

Full text and comments »

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

120.
By electro177, history, 5 years ago, In English
How to Become Smart In General I feel like an idiot and actually i am.Please give the idea how to become smart like u guys, i have many friends who does everything properly while i am not able to and in general decision making as well.please tell what have you done when you were in similar situation but came out smarter :) *smarter in the sense-iq,problem solving ,being away from distractions, decision making....... I know it feels like a really dumb question but please give 10 min of your life to help out a fool like me.
it feels like a really dumb question but please give 10 min of your life to help out a fool like me.

Full text and comments »

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

121.
By notsoawesome, history, 7 years ago, In English
Issues with codeforces compiler... Hello everyone, I am quite new to code-forces and I noted that there are some issues with the code-forces compiler but it turned out to be my mistake, but here in this particular question I cannot find any mistake. Question Link: Here--->http://codeforces.me/problemset/problem/393/B And my solution(ya, don't judge why am I solving such dumb questions...) My Solution: Here--->http://codeforces.me/contest/393/submission/56501161 ->I also tried taking input as double but still, it gave output as all zeros( it's rather unnecessary as it's mentioned that all inputs are integers) ->It works perfectly fine in online gdb ... etc. ->Please look up to it, as something like this also happened to me during contests too.
solution(ya, don't judge why am I solving such dumb questions...) My Solution: Here--->http

Full text and comments »

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

122.
By VeryGoodVeryGood, history, 6 years ago, In English
Problem understanding 359C Solution Hi CodeForces, I've been trying to solve this problem for a long time now but really don't get anything about it. I have read the editorial but I can't seem to understand what author means by saying cnt is multiple of x. How does that help solving the problem, could somebody provide an example of how it works or a better explanation. Thanks and sorry if this question is a bit dumb. EDIT: I am very sorry for posting duplicate question (I have found a comment already discussing this problem) and not specifying the details. Will search next time.
how it works or a better explanation. Thanks and sorry if this question is a bitdumb.

Full text and comments »

  • Vote: I like it
  • -2
  • Vote: I do not like it

123.
By int_tempp, history, 4 years ago, In English
A question about choosing problems to practice. Hello everyone. How did you become good at competitive programming? I know it would be answered as practice. But how should I practice? How am I supposed to choose problems to practice? like how did you use to practice when you were like 1600-1700 (In actuality)? If you don't mind listing down how you used to practice and learn around, what kind of problems and how you used to choose, on rating-basis or contest basis? Like sometimes I'm able to do 2100's and other times I don't feel any way. What should I do? How should I keep going? Please be easy while replying. I don't intend to annoy you. I feel like a dumb.
intend to annoy you. I feel like a dumb. , Please be easy while replying. I don't intend to annoy you. I feel like a dumb.

Full text and comments »

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

124.
By TrendBattles, 2 years ago, In English
How to improve greedy Ok, I know it's a dumb question as I'm a high-rated expert now, but I have encountered lots of times when I was stuck in greedy problems. Even if the pattern is quite "easy" to see for most people, I could literally spend an entire hour just to recognize it. Now I wonder if I can seek advice from you guys resolve this issue as it affects me a lot on classic problems. Thank you.
Ok, I know it's a dumb question as I'm a high-rated expert now, but I have encountered lots of

Full text and comments »

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

125.
By MuhammadAl-Halaby, history, 6 years ago, In English
Teams Qualified for Africa and Arab Collegiate Programming Championship — ACPC 2020 Hello everyone! Congratulations to all of the qualified teams for ACPC 2020. Since the championship is finally closing up, it's exciting to take a look and know who your competitors are, and that's why I made a list of the competing teams with the help of many participating contestants. Teams are sorted by rating calculated by [this formula](https://codeforces.me/blog/entry/16986). If you qualified to ACPC 2020 and your team is not on the list, please write your team info in the comments section and I'll keep the list updated. Don't forget to follow this format: <spoiler summary="Team info format"> Country University Team Name Coach Name Handle1 Handle2 Handle3 (separated by spaces) </spoiler> I hope you can all make it to Luxor this year! See you there and good luck! <table><tr><th bgcolor="#d3d3d3">#</td><th bgcolor="#d3d3d3">Country</td><th bgcolor="#d3d3d3">University</td><th bgcolor="#d3d3d3">Team Name</td><th bgcolor="#d3d3d3">Team Members</td><th...
>50EgyptHelwan UniversityDumb

Full text and comments »

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

126.
By Burstshot, 12 years ago, In English
Codeforces is a Dream I Have :) Today is first time I see it, there are algorithm on the Codeforces...but I do not know where I can learn it, the algorithms. Therefore, I ask your help, where I can obtain new knowledge with the algorithm? I know this may be question in repeat, but I am new and cannot search it. I feel quite dumb right now, I cannot solve many of the B problem...they need the many of the algorithms. But I still am incapable of learn those algorithms :(. It's a very sad story~~ Best regards, Burstshot
algorithm? I know this may be question in repeat, but I am new and cannot search it. I feel quitedumb

Full text and comments »

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

127.
By desperateboy12344, history, 2 years ago, In English
I need help with problem D in the recent Deltix Round As my title stated, I really need help with understanding D (https://codeforces.me/contest/2002). (Sorry, I'm really dumb :<<<). So the statement is like this (D1): Given a permutation with some persistent swap queries and a dfs algorithm, check if the permutation after each swap can form a dfs order of some perfect binary tree. I really think that as long as the permutation starts with 1, we can always recreate a perfect binary tree from the permutation. Because like if we assign a pointer p = 0, when we traverse on a binary tree, when we enter a node u, we can just assign p = p + 1, and then assign a[u] = P[p] (P is the original permutation), hence it always exists (Did I misread the statement??). Help me guys I'm really dumb :<<<
). (Sorry, I'm really dumb :<<<). So the statement is like this (D1): Given a permutation with some

Full text and comments »

128.
By dsu_, history, 4 years ago, In English
How's that even possible ?????????? [https://codeforces.me/contest/1822/submission/203302471](https://codeforces.me/contest/1822/submission/203302471) Look at the guy and his submissions He even solved 800+ problems in < 2 months. He is such a dumb, he does'nt know that making 100 submissions a day isn't going to hide his contest submissions. He is able to solve 2 problems per minute, just look at his submissions.
months. He is such a dumb, he does'nt know that making 100 submissions a day isn't going to hide, He is such a dumb, he does'nt know that making 100 submissions a day isn't going to hide his

Full text and comments »

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

129.
By NAH_ID_WIN, history, 3 years ago, In Russian
How to become the most downvoted user in codeforces? You can see a lot of downvoted users in codeforces and sometimes I wonder how did they deserve that?But in case you are going to do it in purpose, then what strategy would be best? 1-st. method that comes tom my mind is spamming and making stupid blogs, but that would harm other users and I think you can get even banned so thats definitely not we want. 2-nd. may be ask other users to downvote you? But as I have seen its not really that effective. 3-rd. may be you just need to be Gray?Graytism is a popular thing in codeforces.The higher rating you got the more likes you get. I've also wondered as the years passes what would be the highest rating, the most upvoted and downvoted user and how much upvotes/downvotes would they have?If you have any thoughts please leave a comment and yes downvote this blog may be making this kind of dumb blogs is the best strategy.( Sorry for my mistakes and poor choice of words, english is not my first or even second language )
comment and yes downvote this blog may be making this kind of dumb blogs is the best strategy

Full text and comments »

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

130.
By arius1408, history, 5 years ago, In English
Need help to understand XOR operations Hi codeforces, recently I have came across an interesting problem : [https://codeforces.me/problemset/problem/617/E](617E). I had a rough time trying to understand the solution of this problem even after i read the tutorial. Basically I can't see why the add() and del() function work because of my lack of knowledges about the XOR operation. Now after a few hours of thinking, I have officially surrendered ... That's why I'm here, asking for an explanation. P/S : I'm just dumb, especially when it come to math and other similar stuff. Pls don't be to harsh on me ... And just in case, I'm talking about the add() and del() function in the solution. You will find it in the editorial (of course) Edit : Just in case, I can't seem to understand why adding cnt[favourite ^ v] help me count the number of pair i, j that satisfies l ≤ i ≤ j ≤ r and the xor of the numbers ai, ai + 1, ..., aj is equal to k (favourite).
surrendered ... That's why I'm here, asking for an explanation. P/S : I'm just dumb, especially, P/S : I'm just dumb, especially when it come to math and other similar stuff. Pls don't be to harsh

Full text and comments »

  • Vote: I like it
  • -5
  • Vote: I do not like it

131.
By not_OMR125, history, 21 month(s) ago, In English
How to create a problem that i don't have a main solution for on polygon I know this might sound dumb, but I am trying to create an easy and hard version of a problem; however, I don't know how to implement the hard version because it is too complex for me, but I know it is possible. So is there a way that I can just put test cases with predetermined output from the easy version since I don't have any main solution as the easy version will just TLE when I put it on polygon?
I know this might sound dumb, but I am trying to create an easy and hard version of a problem

Full text and comments »

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

132.
By Dumbledore, history, 11 years ago, In English
Dumb question on time complexity ~~~~~ for (int i = 1; i <= MAXN; i++) for (int j = i; j <= MAXN; j += i); ~~~~~ <br> Can anybody explain to me why the time complexity for this code is <i>O(N log N)</i>?
Dumb question on time complexity

Full text and comments »

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

133.
By bhikkhu, 12 years ago, In English
solving problems I thought for many days about how do i solve this problem: http://codeforces.me/contest/475/problem/D But it seems to me that I cannot get any better than O(N^2). I think there is a knowledge gap(mathematics). I looked through the editorial too. But I cannot understand. I want to understand the solution. I even looked many of the submissions(using sparse tables, segment trees...). But staring the code doesn't seem to be beneficial(or may be I am too dumb for the problem). So, please help me solve this problem. I just want the idea. Thank you coders!
the code doesn't seem to be beneficial(or may be I am too dumb for the problem). So, please help me

Full text and comments »

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

134.
By minato11, history, 11 months ago, In English
Still stuck at 1100s even after 40+ contests Hii everyone, I have been giving codeforces contests lately and even after giving 40+ contests i am still stuck at 1100s levels. I just wanna know that is it okk or am i just too dumb for CP. I have seen some accounts where they became master or specialist in just 45 contests (Although they are all alleged cheaters). I don't wanna cheat because it will only do harm in long run and i won't develop problem solving skills. So anybody reading this, give me some pearls of wisdom.
still stuck at 1100s levels. I just wanna know that is it okk or am i just too dumb for CP. I have

Full text and comments »

  • Vote: I like it
  • -21
  • Vote: I do not like it

135.
By adamantium, 9 years ago, In English
How to solve UVA- 12116 — The Dumb Grocer Recently I tried to solve this problem. But couldn't figure out any solution. It will be help if anyone explain the solution of this problem. The problem Link is [Here](https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3268)
How to solve UVA- 12116 — The Dumb Grocer

Full text and comments »

Tags uva, dp
  • Vote: I like it
  • -9
  • Vote: I do not like it

136.
By HOMIARA_RUBY, history, 9 years ago, In English
About Java that I want to know I'm learning OOP using Java. So you may find my question 'like dumb'. I have followed Java coders code like [this](https://ideone.com/Ejwqu5) not [this](https://ideone.com/eWnQtU). why? I thought Java has garbage collection system(not like destructor in C++) which is called randomly(As far I know). So creating lot of objects will result MLE(if no garbage collection is called during execution time and if an object take N space and we create M objects then it should take N*M space which may result MLE). So in Codeforces 'custom invocation' I tried to do experiment and see what happens. I did the same experiment in 'Ideone'. I found almost no difference (i thought M times larger for M objects) in terms of memory. Why? I have asked the question here because Codeforces community is more responsive.
I'm learning OOP using Java. So you may find my question 'like dumb'. I have followed Java coders

Full text and comments »

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

137.
By iamdumb, history, 11 years ago, In English
Am I so Dumb to solve this ? Hello guys,I tried this question([Big Mod](https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=310)) but what keeps me irritating is that I think it is efficient way to do.But still it keeps on giving me WA.I request you to please have a look at this [submission](http://ideone.com/hBCi2o)
Am I so Dumb to solve this ?

Full text and comments »

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

138.
By Kenb, history, 7 years ago, In English
PUPILS ARE STUPID Like how can someone with a brain be this dumb. If you can breathe you should be able to know how to print "K+(1<<17)"
Like how can someone with a brain be this dumb. If you can breathe you should be able to know how

Full text and comments »

  • Vote: I like it
  • -48
  • Vote: I do not like it

139.
By DorelBarbu, history, 10 years ago, In English
Why using long long fails, but using double gets AC? (when we don't deal with floating point numbers) Hello, everybody! I was solving http://codeforces.me/contest/319/problem/C which uses the "Convex Hull Trick". After many failed attempts I peeked at the AC solutions.I found a very interesting thing.[ This](http://codeforces.me/contest/319/submission/20785092) gets AC. However, if I replace the explicit conversion to double, with an explicit conversion to long long (which seems more suitable in this case, since we're not dealing with floating point numbers) I get WA, like [this](http://codeforces.me/contest/319/submission/20785181). Now, forgive me if it is a dumb question but I really didn't come across something like this before. Can someody help me figure it out? Thank you!
://codeforces.com/contest/319/submission/20785181). Now, forgive me if it is a dumb question but I really

Full text and comments »

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

140.
By Alex12GOAT, history, 19 months ago, In English
How to reach Pupil Hello, since I am dumb and stupid can I have any suggestions on how to reach pupil or at least 1000+rating
Hello, since I am dumb and stupid can I have any suggestions on how to reach pupil or at least 1000

Full text and comments »

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

141.
By ImKira_, history, 21 month(s) ago, In English
[NOT IMPORTANT] Is USACO guide good to reach grandmaster level? or is there any other alternative? or am I just too dumb :(, I really liked CSES sheet and trying to find something similar that would teach me a lot more new things. Any help would be appreciated ;-;
or is there any other alternative? or am I just too dumb :(, I really liked CSES sheet and trying

Full text and comments »

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

142.
By St3phenVH, history, 5 years ago, In English
Somebody please explain me why my answer is wrong in problem 1547C C. Pair Programming Hi guys! I'm a newbie in CP looking for some help. I'm confused about problem [C. Pair Programming](https://codeforces.me/problemset/problem/1547/C). [here](https://codeforces.me/contest/1547/submission/126729112) is my submission there was a case include test case 5 5 3 0 0 1 3 0 1 0 0 my answer of this case : "0 0 1 1 0 0 3 0". correct answer: "0 0 1 3 0 1 0 0" with Checker Log: wrong answer Cannot merge "a" and "b" to get given output (test case 19) I think my answer is valid too :( Could somebody spare a moment explain me "why".I would very appreciate. Sorry if my dumb question bother you. Thanks for reading!
too :( Could somebody spare a moment explain me "why".I would very appreciate. Sorry if mydumb

Full text and comments »

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

143.
By keystrokes, history, 11 years ago, In English
Too Dumb for Programming? Ok, so I've been trying competitive programming for about 6 months now. I can still never solve DIV 2A Problems on Codeforces and Calkwalk Problems on Codechef. I am not dumb by means of IQ or anything like that, but I don't know why I suck so much. Is there anything that I can do to improve. I know the key is to solve lots of problems, but I can't even solve few problems.
Too Dumb for Programming?, 2A Problems on Codeforces and Calkwalk Problems on Codechef. I am not dumb by means of IQ or

Full text and comments »

  • Vote: I like it
  • -18
  • Vote: I do not like it

144.
By mac_n_cheese_pog, history, 5 years ago, In English
why is dp so strange dp problems r combinatorics.i dont know why people dont use some kind of permutation and combination formula.idk how adding some random states like dp[i]=dp[i-1] bla bla bla works.pretty dumb concept if u ask me.
combination formula.idk how adding some random states like dp[i]=dp[i-1] bla bla bla works.prettydumb concept

Full text and comments »

  • Vote: I like it
  • -36
  • Vote: I do not like it

145.
By bully....maguire, history, 6 years ago, In English
How to quote someone while writing comment or blog It might be very dumb doubt , could someone help in how to quote someone while writing comment or blog ? For example first line of this [comment](https://codeforces.me/blog/entry/83267?#comment-705777) .
It might be very dumb doubt , could someone help in how to quote someone while writing comment or

Full text and comments »

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

146.
By Boring_Day, history, 4 years ago, In English
Why girls are getting more jobs then boys? [Serious Issue] I have seen many of my smart friends not getting a job where many dumb girls are getting it easily. What's the matter. Can someone explain?
I have seen many of my smart friends not getting a job where many dumb girls are getting it easily

Full text and comments »

  • Vote: I like it
  • -64
  • Vote: I do not like it

147.
By Tashwin, history, 5 years ago, In English
programming is dumb for all those who chose cs , just because its trendy . go kill yourself . Cold world out there kids, grab your coats.
programming is dumb

Full text and comments »

  • Vote: I like it
  • -28
  • Vote: I do not like it

148.
By born.kira, history, 10 years ago, In English
Display Picture Hello everyone! Today i was solving some 3-d DP problems, suddenly a thought came into my dumb brain, is my profile picture good? I hope all the female on CF community will comment ;) PS: I love codeforces, and i am heartily thankful to [user:MikeMirzayanov,2016-09-01] for making such a great coding platform! HAPPY CODING :)
Hello everyone! Today i was solving some 3-d DP problems, suddenly a thought came into mydumb

Full text and comments »

  • Vote: I like it
  • -23
  • Vote: I do not like it

149.
By tripti_t, history, 8 months ago, In English
Div 2 , Problem B , CF Round 1093 Guys my dumb brain couldn't understand this problem ,,can u help?
Guys my dumb brain couldn't understand this problem ,,can u help?

Full text and comments »

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

150.
By CODEFORCESHASROTTEN, history, 8 years ago, In English
To the 8 people who are my friends... Who are you guys lmao. This is a dumb shitposting account and I really hope y'all don't unintentionally lose contrib by adding me on your friends list. p.s. Please downvote this post if you haven't kissed a girl in the past week. No, your female relatives do not count.
Who are you guys lmao. This is a dumb shitposting account and I really hope y'all don't

Full text and comments »

151.
By mac_n_cheese_pog, history, 5 years ago, In English
how to do lastest div3 problem c in 734 c i tried to implement my ideas into code but failed because c++ is too dumb and giving me numbers like nhentai code.idk whats wrong with c++ so i decided to rage and submit my complaint to c++.idk why c++ wont obey me whenever i think of a solution i mean if u dont want to obey me then do it urself c++
in 734 c i tried to implement my ideas into code but failed because c++ is too dumb and giving me

Full text and comments »

  • Vote: I like it
  • -31
  • Vote: I do not like it

152.
By comingsoon.cpp, history, 2 years ago, In English
Yaaay, C++.. I solved my first Div2 B... So I managed to upsolve problem B from the last D2 round. I could have done it one try but I did not look at the constraints on n so I gave one TLE'ed solution before the AC'ed one, so dumb. I'm gonna sleep so well tonight :) It's already midnight here so I think i'll be off to bed now, guys rate my solution [submission:266115349]..
not look at the constraints on n so I gave one TLE'ed solution before the AC'ed one, sodumb. I'm

Full text and comments »

  • Vote: I like it
  • -17
  • Vote: I do not like it