WorldWarV's blog

By WorldWarV, history, 5 days ago, In English

There is no doubt that people are using AI to solve problems, but recently, I have started to hear more about people using AI to set problems as well. I wanted to share some of my thoughts on this, along with some things I have learned about problemsetting in general.

AI in problemsetting

1. Never generate problems purely with AI. Obviously.

2. AI reduces creativity in a very specific manner, even if you came up with the problem on your own

A lot of the time, especially with problems on the harder end, you might come up with some interesting setup for a problem, think about it for a bit, give up, and end up just chucking it into AI.

If AI tells you that your problem is NP-hard or requires some stupid implementation, that does not mean you should abandon the idea. I argue that a lot of the creativity in problemsetting comes from trying to solve your own problems. In doing so, you develop an understanding of the structure of the problem and how modifying certain properties affects it. Maybe introducing some restriction gives rise to an interesting invariant, or maybe some observation you make along the way can be used to set an entirely different problem. If you immediately resort to AI, you miss out on a lot of this.

3. If neither you nor someone you know can independently solve the problem you thought of, you probably should not be setting it

This relates to point 2. If you cannot really grasp the structure of your problem but accept whatever solution AI gives you, how are you supposed to judge the quality of the problem? You should probably keep in mind that AI telling you that your 3000 rated problem can be "efficiently done with [insert implementation slop advanced data structure]" is not a particularly good indicator of quality.

The only way to set problems really high above your rating is to take advantage of the one thing that you have over all competitors: time! Keep churning on the problem you made and try to progress as much as possible, or just have super strong friends who can insta solve your problem.

4. AI for problem preparation is fine

I do not see much of an issue with using AI to code solutions, generators, validators, etc. in Polygon. Just keep test generation in mind and understand what your generators are doing. Think about incorrect approaches that participants might come up with and whether there are certain structures or extreme cases that your generators are unlikely to produce.

Some good and bad methods of problemsetting

1. Setting problems on concepts you have very recently learned

Try not to do this. I vividly remember setting some extremely standard 2-SAT and XOR basis problems immediately after learning those concepts. The problems, in retrospect, make me laugh. I think it is difficult to distinguish whether you have found a genuinely interesting application of a concept or whether you just find the concept itself interesting because you recently learned it.

2. Combining multiple concepts

Combining 2+ concepts into one problem (e.g. combining MEX and subsets) has a chance of producing good problems, but often you just end up with standard subproblems. If you do this, try to make the operation or structure of the problem a little weird. Ideally, some interesting observation should arise specifically from the interaction between the two concepts.

3. Data structure problems

Problems that just require the usage of a data structure with no russianness are, in my opinion, bad problems for Codeforces. Of course, there are plenty of nice problems involving data structures. But I think figuring out what to maintain in a data structure is often a much more interesting problem than figuring out how to maintain it.

4. Reverse engineering

Working backwards from a solution can sometimes work, but it heavily depends on how obvious it is that the problem was reverse engineered. I would recommend reverse engineering from somewhere in the middle of the solution, rather than working backwards from the very end. For example, suppose you have some interesting problem on an array $$$A$$$. Maybe reverse engineer some array $$$B$$$ and a set of operations such that, under some nontrivial observation, the problem on $$$B$$$ reduces to the problem on $$$A$$$.

When I was setting Falling Concrete, I initially thought of elements losing 1 when moving left and gaining 1 when moving right, and came up with the invariant pretty quickly. I then kind of reverse engineered the array operation from there. I got somewhat lucky that asking for the maximum length of a flat segment was interesting but also not implementation slop.

5. Inspiration from the real world

I think this is pretty promising. When you sit down with the intention of setting a certain category of problems (e.g. only focusing on graphs, combo, etc.), you are probably going to think of a bunch of structures related to that respective category that you have already seen before.

6. Random thoughts (and dreams)

Some of the best problems I have come up with have come to me in dreams or just randomly throughout the day, with seemingly no prior thought process. I assume this is my subconscious combining a bunch of unrelated observations from problems I have solved before. This is probably also why solving a wide variety of problems helps with problemsetting.

Anyways, I just noticed that I have basically just listed a bunch of methods that either somewhat work or do not work at all. So I ask the more experienced authors reading this: how do you guys set so many creative problems?

Some things to keep in mind while problemsetting

1. Try not to force creativity

I feel like the productivity of a problemsetting session is somewhat of an increasing, then decreasing function. Your subconscious is constantly accumulating ideas. Dedicate some time to trying to put them together, but not too much. Eventually, you will find yourself making completely arbitrary modifications to the same problem for an hour and getting nowhere.

Also, keep track of unfinished problem ideas. You might randomly make an observation months later that turns the setup into a nice problem.

2. Self-difficulty deflation

I do not know if there is an actual term for this, but I think there is this phenomenon of "self-difficulty deflation" in problemsetting. The more and more you think about your problem, the easier and more approachable it starts to seem to you. Eventually, an observation that initially took you a while to make starts to seem pretty trivial. Keep in mind that you already know which direction to think in, and probably even introduced certain restrictions specifically because of the intended solution. A participant seeing the problem for the first time has none of this intuition.

This is why we have testers! Apart from getting difficulty estimates, I think trying to understand the thought process of the testers themselves is very very valuable.

3. A nice contest is usually better than a hard contest

Bonus points if it is both, but a lot of the time, I have noticed it is one or the other. I think authors (myself included) sometimes get too caught up in trying to increase the difficulty of a problem. If you already have a nice problem, there is not much of a reason to artificially increase its difficulty just to fill a harder slot in the contest.

4. Do not toss out a problem because it is GPT-able

I have seen some authors take otherwise nice problems out of their proposed round because AI was able to solve them very quickly, which I find a little weird. A lot of the things that make a problem difficult for AI are not necessarily things that make it interesting for a human to solve. We are setting problems for people to enjoy, not trying to marginally decrease the probability of someone AKing in 10 minutes with AI.

Anyways, lmk what you think!

Full text and comments »

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

By WorldWarV, history, 2 months ago, In English

Thanks for participating in Codeforces Round 1122 (Div. 3)!

Rate the contest!

2266A - Good Contest

Hint
Solution
Code (C++)
Rate the problem!

2266B - Three Piles

Hint 1
Hint 2
Solution
Code (C++)
Rate the problem!

2266C - AND, OR, Sort!

Hint 1
Hint 2
Solution
Code (C++)
Rate the problem!

2266D - Falling Concrete

Hint 1
Hint 2
Solution
Code (C++)
Rate the problem!

2266E - Prime Destruction

Hint
Solution
Bonus
Code (C++)
Rate the problem!

2266F - MEX Replacement

Hint 1
Hint 2
Hint 3
Solution
Bonus
Bonus Answer
Code (C++)
Rate the problem!

2266G - Modular Tree

Hint 1
Hint 2
Hint 3
Solution
Code (C++)
Rate the problem!

2266H - Deque Malfunction

Hint 1
Hint 2
Hint 3
Hint 4
Solution
Implementation 1: Lazy Segment Tree
Code (Lazy Segment Tree)
Implementation 2: Amortized Set Deletion
Code (Amortized Set Deletion)
Rate the problem!

Full text and comments »

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

By WorldWarV, history, 2 months ago, In English

Hello, Codeforces!

I am very excited to invite you to participate in Codeforces Round 1122 (Div. 3), which will take place on 21.09.2026 17:35 (Московское время). You will be given $$$2$$$ hours and $$$30$$$ minutes to solve $$$7$$$ or $$$8$$$ problems. All problems were authored and prepared by me, WorldWarV.

The round will be hosted by rules of educational rounds (extended ICPC). Thus, all solutions will be judged on preliminary tests during the round, and after the round, there will be a 12-hour phase of open hacks. After the open hack phase, all accepted solutions will be rejudged on successful hacks. Also, note that there is no score distribution but the usual penalty of $$$10$$$ minutes for each wrong submission, following the rules of educational rounds.

You should remember that only the trusted participants of the third division will be included in the official standings table. As it is written by link, this is a compulsory measure for combating unsporting behavior. To qualify as a trusted participant of the third division, you must:

  • take part in at least five rated rounds (and solve at least one problem in each of them)
  • do not have a rating of $$$1900$$$ or higher at any moment in time.

Regardless of whether you are a trusted participant of the third division or not, if your rating is less than $$$1600$$$, then the round will be rated for you (unless you register unrated).

Also, note the rule restricting the use of AI. If you are caught breaking this rule, you will be dropped into cry's basement, which happens to be a permanently active volcano.

I would like to thank the following people for making this round possible:

GLHF!

Update: Editorial!

Full text and comments »

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

By WorldWarV, history, 13 months ago, In English

Ever felt like Codeforces tags are too limited? Lynkforces (pronounced link-forces) lets you fly around a 3D map of problems and discover clusters by reasoning and technique. Click points to fly to problems, see related ones, adjust rating, and enter your handle to see solves!

Full link: lynkforces.vercel.app

What it is

  • Two maps:
  • Reasoning — clusters by similarity of how you think about the solution.
  • Tags — clusters by techniques/data structures (segment tree, DSU, XOR basis, etc.).
  • Color key: white = unsolved & not relevant (default), green = solved, purple = relevant (darker = more relevant), blue = solved + relevant (darker = more relevant).
  • Dataset note: coverage isn’t comprehensive; latest I saw while testing was about a year back (Round ~995-ish). 3D clustering isn’t perfect since high-dimensional vectors were compressed to 3D, so some related points may still be far apart.

Main map (Reasoning):

Main map (Reasoning)

Help / Controls:

Tags / Techniques map:

Techniques map

How to use it

  • Open lynkforces.vercel.app.
  • Pick Reasoning or Tags (top-left).
  • Use the search bar for ideas.
  • Slide the rating filter to your range.
  • Enter your CF handle to paint solves.
  • Click points to jump around and explore neighbors. Help lives in the bottom-left; 3D controls in the top-left.

Quick summary of how I built it

Tags are useful but broad, as two “graph” problems can demand very different thinking. I summarized editorials into skill vectors, core tasks, pure reasoning, and other fields (with llama because it’s good at taking pieces from the editorial, understanding it, and turning it into matchable text). Then I turned those into embeddings, normalized them, and projected to 3D with UMAP. Semantic search uses the same space, so queries light up neighborhoods that “think” alike.

Tips

  • Make queries descriptive. Instead of “lazy segment tree” (which can light up lots of generic segtree points), try “range add range max,” “range sum with updates,” or “range assign with queries.” Be smart with it!
  • You can paste a problem short ID or a problem link to jump directly.
  • Some problems are pretty clamped, so if you want to be more space-y, try 16–17× scaling.

Try it: Lynkforces. If something stalls or feels off, please let me know — this is my first deploy, and feedback helps a ton!

Also this totally wasn’t inspired by a way cooler project

Happy practicing!

Full text and comments »

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