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.
By MikeMirzayanov, history, 2 years ago, In English
Rule Restricting the Use of AI [revision 2024-09-14] It seems that neural networks are working technological wonders. Not long ago, they struggled with even the simplest tasks in our competitions, but now they are reaching new heights that cannot be overlooked. There is reason to believe that progress will continue, and we can expect further advancements in neural networks within the realm of programming competitions. For this reason, we are explicitly limiting the use of AI-based systems (such as various models like GPT, Gemini, Gemma, Llama, Claude, and others) for solving programming problems. However, we recognize that AI can be a valuable tool for learning and coding assistance, so we aim to establish clear boundaries for its use. **Application of this Rule:**<br/>This rule applies strictly to in-contest participation. This includes both registered contestants and out-of-competition participants in any rated Codeforces round. If a round is unrated and this is explicitly stated in the round announcement or rules, the rul...
**Cheating Detection:** This rule allows us to continue identifying cheating incidents as we, Detection:** This rule allows us to continue identifying cheating incidents as we did before the AI

Full text and comments »

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

2.
By MikeMirzayanov, history, 20 months ago, In English
My Reply on "Mike, please stop ignoring your userbase" This is a response to [this post](https://codeforces.me/blog/entry/141442). Originally, I intended to leave it as a comment, but the text turned out to be quite long. So I decided to publish it as a separate post. Hi! Let me start with the main idea: I don't think I ignore too many issues (though I do ignore some). In most cases, I do work on them, but these days I just don't feel like writing about it. That kind of communication takes a lot of energy &mdash; which I currently don't have. Oh, it looks like you edited the beginning of the blog, and now it triggers less of an internal protest in me. Honestly, lately I've been in a difficult emotional state, and I just don't have the energy or desire to interact much. It's not just about Codeforces &mdash; it's generally harder for me to engage than it used to be. I won't go into details (health, relocation, family issues, changes in the nature of my work due to bots) &mdash; all of that affects my mental state and willingne...
constantly adapting detection methods, and I hope these restrictions will become less noticeable, generally understand the cause. As I said earlier, I'm constantly adapting detection methods, and I hope

Full text and comments »

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

3.
By cjj490168650, history, 4 years ago, In English
[Repost] "Justice may be delayed, but it cannot be absent": New Evidence on NXIST's Cheating Scandal _Original post: [「正义可以迟来但不能缺席」:关于 NXIST 的一些新证据](https://zhuanlan.zhihu.com/p/620297880)_ _Translated by GPT-4 with some adjustment. Please inform me if there are any mistakes._ _All links to the invalid repository have been redirected to the backup repository._ **This article provides a logically complete set of evidence, which does not involve any non-public internet resources, regarding the "suspected cheating" incident involving the ICPC Yinchuan Station and ICPC Shenyang Station in 2021. By discovering the suspected GitHub account ([NaokiLH](https://github.com/NaokiLH), renamed to https://github.com/brokenTarget) of a team member from Ningxia Institute of Science and Technology (NXIST) TS 1 team, Lan Hao, two years ago, and by mining and analyzing the commit records of his algorithm competition repo, we have obtained direct evidence that at least 4 questions from the 2021 Yinchuan regional contest set and at least 6 questions (including scrapped questions) from the 2021 Sh...
Yinchuan competition?](https://www.zhihu.com/question/459857672) [PDS PlagiarismDetection System, been mentioned in [Dai@NeverLand: PDS Plagiarism Detection System Example: Plagiarism Demonstration of, [PDS Plagiarism Detection System Example: A demonstration of plagiarism detection in a certain

Full text and comments »

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

4.
By MikeMirzayanov, 6 years ago, In English
Codeforces: Results of 2020 [list some changes and improvements] Hello, Codeforces! I understand that 2021 has been going on for a long time, but here I have picked up a subset of some of the improvements that the Codeforces team made in 2020. Soon I will publish numbers (no, charts) with statistics for 2020. In the meantime, I bring to your attention a list of changes and improvements. By the way, this is a decent list. This is about half to a quarter of all changes. It's just that other changes are more often somewhere in the internals of the system and are not visible to users. Please read this list. Each item is the effort of someone from the team. Thanks to [user:geranazavr555,2021-03-14], [user:kuviman,2021-03-14] and [user:cannor147,2021-03-14] for their efforts. You've made our platform better! Well, by the way, I don't quit programming and many improvements were made by me. The items on the list are written in a concise and informal form, many of the items I just copied from commit messages from git. If you want more details &mdash...
contest * Unfair virtuals detection improved * Added filters in personal status (list of submissions in, while editing a contest * Unfair virtuals detection improved * Added filters in personal status

Full text and comments »

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

5.
By -is-this-fft-, history, 2 years ago, In English
Things you should know before you discuss cheating Cheating has been discussed a lot lately. I'm writing a blog post about it with actual data (mainly, I want to know if there is an actual increase). However, in the many discussions that have ensued both here and on Discord servers, I noticed several recurring misconceptions. I wrote a section to debunk them and it grew kind of long, long enough to be a post in itself. So while my scripts are running, we can treat this as a kind of teaser. ### Things you should know before you write a comment about cheating Vocabulary: - _To plagiarize_ [means](https://dictionary.cambridge.org/dictionary/english/plagiarize) to use someone else's work while passing it off as yours. It refers to the act itself, **not** to its detection or punishment. "jrandomcoder plagiarized all of his solutions in round 987" is a meaningful statement. "jrandomcoder cheated in round 987 but he still hasn't gotten plagiarized, I request [user:MikeMirzayanov,2024-08-16] to look into this" is not. - _Plague_ is a...
act itself, **not** to its detection or punishment. "jrandomcoder plagiarized all of his solutions, round and likely before plagiarism detection happens. This is because users are impatient. Usually, if, detection or punishment. "jrandomcoder plagiarized all of his solutions in round 987" is a meaningful

Full text and comments »

  • Vote: I like it
  • +652
  • 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...
10890 UVA (4) //Simple brute-force times out, but with simple pruning AC (answer detection, http://codeforces.me/contest/915/problem/D (4) //[VERY NICE][CYCLES DETECTION (ORIENTED)]

Full text and comments »

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

7.
By Mindeveloped, history, 19 months ago, In English
Community Petition on Combating Cheaters Recently, cheating has become a more and more serious issue over time. Many community members have come up with various ideas for combatting cheaters better. I think I can make a summary. There are votes option for each point. Click the upvote button if you like it. ## Prevention - Enable "trusted participant" system for Div.1, Div.2, Div.1 + 2 and Educational rounds. - Use phone number verification for registration. (which has been rejected by Mike in his recent blog to some extent, but I'll let it be here anyway) - Use hardware level detection software. - Completely ban the usage of AI. - Use a new type of problem in which the usage of AI is marked as not cheating and there could still be much fun for human solvers, even with the assistance of AI. ## Detection - Train anti-cheating specialized LLM and use it for cheating detection. - Add a report option for each user for manual review. ...
blog to some extent, but I'll let it be here anyway) - Use hardware leveldetection, some extent, but I'll let it be here anyway) - Use hardware level detection software, ## Detection, - Train anti-cheating specialized LLM and use it for cheating detection. - Add a report

Full text and comments »

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

8.
By platypus179, history, 10 years ago, translation, In English
Codeforces Round #359 (Div. 1 + Div. 2) Ladies and Gentlemen! The Codeforces round #359 for both divisions will happen on 23 June at 7:35 PM MSK. We have been choosing and solving problems for a long time and we hope that they will seem quite interesting. All of the problems were created under guidance of [user:Endagorion,2016-06-20] (Mikhail Tikhomirov) by Moscow high school graduates: [user:cdkrot,2016-06-20] (Dmitry Sayutin), [user:ch_egor,2016-06-20] (Egor Chunaev), [user:themikemikovi4,2016-06-20] (Mikhail Sorokin) and me. It is our second Codeforces Div.1 + Div.2 round. Thanks to coordinator [user:GlebsHP,2016-06-20] (Gleb Evstropov) for help with preparing problems and to [user:MikeMirzayanov,2016-06-20] (Mikhail Mirzayanov) for excellent systems Polygon and Codeforces. Also, the round is possible only because of [user:Endagorion,2016-06-20]'s help. Participants will be given five problems in both divisions. The scoring distribution will be announced later. Good luck to all! **UPD**: All statements a...
Cheating detection may affect the ratings a little.

Full text and comments »

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

9.
By Monyura, history, 11 years ago, translation, In English
Looksery Cup 2015 Editorial **UPD** Editorial of problem E was added, I apologize for the delay. Hope you found it interesting. **A. Face Detection** Author: [user:Monyura,2015-06-06] One should iterate through each 2x2 square and check if it is possible to rearrange letters in such way they they form the word "face". It could be done i.e. by sorting all letters from the square in alphabetic order and comparing the result with the word "acef"(sorted letters of word "face"). **B. Looksery Party** Author: [user:Igor_Kudryashov,2015-06-06] In any cases there is such set of people that if they come on party and send messages to their contacts then each employee receives the number of messages that is different from what Igor pointed. Let's show how to build such set. There are 2 cases. There are no zeros among Igor's numbers. So if nobody comes on party then each employee receives 0 messages and, therefore, the desired set is empty. There is at least one zero. Suppose Igor thinks that i-th emp...
**A. Face Detection**

Full text and comments »

Tutorial of Looksery Cup 2015
  • Vote: I like it
  • +246
  • Vote: I do not like it

10.
By dj3500, 12 years ago, In English
Hightail — automatic tester for programming contests Hi! In this post I would like to introduce you to an application called [Hightail](http://github.com/dj3500/hightail). [Hightail](http://github.com/dj3500/hightail) is an automatic tester for programming contests such as CodeForces rounds. It will parse the problem statement, extract sample test cases (inputs and outputs) from it, and verify the correctness of your program against them. It is built to provide maximum automation and to relieve the contestant as much as possible. A list of Hightail's features: - parsing problem statements - parsing entire contests (autoloading all problems) - scheduling contest parsing ahead of time - ability to comfortably view, edit and add test cases - handling of all verdicts: WA, TLE, RE, even AC - customizable time limits - ability to create in/out files in your working directory - detection of floating point values (comparing 0.1 vs. 0.10 does not give WA) - easy-to-use UI, keyboard shortcuts - resilient: it is multi-threaded so ...
create in/out files in your working directory - detection of floating point values (comparing 0.1 vs, your working directory - detection of floating point values (comparing 0.1 vs. 0.10 does not give WA

Full text and comments »

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

11.
By Christine-, history, 22 months ago, In English
Suspicious problem setter and tester, harsh__h ### Introduction Hello, Codeforces! I want to share my suspicions about [user:harsh__h,2025-02-03]. I wouldn't write the blog if he was not a relatively high ranked individual who both participated in problem setting and testing. Yesterday, I accidentally noted that the 6th place ([standings:2059]), in [contest:2059], which turned to be [user:harsh__h,2025-02-03], had very suspicious submissions. Next, I will try to explain in detail what got my attention in the order in which I uncovered it. ### Part 1. Codeforces Round 1002 Div2. During the contest in problems A([submission:304070640]), B([submission:304090034]), C([submission:304111128]) [user:harsh__h,2025-02-03] doesn't use spaces between brackets. That is, he writes, say, `for(ll i=0;i<n;i++){` not `for (ll i = 0; i < n; i++) {`. Also, for the newline he uses endl `cout << mex << endl;`, and these are not interactive problems. Next, In problems D ([submission:304092485]), E([submission:304129652]), in which I t...
### Plagiarism detection complaint (UPD.2)

Full text and comments »

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

12.
By jerrywang0916, history, 8 months ago, In English
List of Suspected Cheaters in Nebius Round 2 This message was originally intended to be posted via the account [user:send_cheater_to_basement,2026-03-31]. However, since that account is not a trusted account, it cannot publish blogs. Therefore, I am using this account instead, **which belongs to one of my classmates**. I would like to thank him for lending it to me. I manually collected all suspicious users, which were then organized by AI. There may be errors. Here is a list of users who are heavily suspected of cheating during the Nebius Round 2. I only managed to check the top 250 participants whose original rating was no higher than Specialist. Unfortunately, I had to stop after checking these because my IP was flagged as a web crawler/bot. **⚠️ DISCLAIMER: Appearing on this list does not definitively prove that a user has cheated.** It simply indicates highly suspicious behavior during the contest. ### Detection Methodology During the contest, anti-AI traps were placed in the problem statements: - ...
### Detection Methodology

Full text and comments »

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

13.
By Hoks_, history, 12 months ago, In English
Maybe It’s Time to Stop Unrated Accounts from Submitting Recently, we’ve run into an unpleasant situation: some large companies have been using a huge number of accounts to submit AI-generated solutions purely for model training, which ended up causing serious “in queue” congestion for everyone else. **Maybe it’s time to consider restricting submissions from unrated users.** If those AI-driven accounts were required to participate in at least one contest before being allowed to submit normally, it would drastically cut down the number of accounts they could abuse. On top of that, we could improve AI-detection during contests and apply stricter monitoring to accounts that submit massive amounts of AI-generated code. For regular users, the requirement is trivial — just join a single Codeforces round, and you’re good to go. Compared to the awful experience of having the queues jammed for hours, this small inconvenience might be a reasonable trade-off. That’s the best idea I can think of at the moment. What do you think? How can we ...
accounts they could abuse. On top of that, we could improve AI-detection during contests and apply, of that, we could improve AI-detection during contests and apply stricter monitoring to accounts

Full text and comments »

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

14.
By MikeMirzayanov, 8 years ago, translation, In English
Codeforces: Results of 2018 Hi Codeforces! February 2019 is already on the calendar, which means that I was late with the report for 2018. Better late than never! Let's remember last year. In 2018, [user:_kun_,2019-02-05], [user:300iq,2019-02-05] and [user:arsijo,2019-02-05] joined the team of coordinators. The work of the coordinators is headed (and is the coordinator of the coordinators) [user:KAN,2019-02-05]. I really hope that a more measured schedule of preparing rounds by a large team of coordinators will give a better insight into the contests. The main innovations in the platform are implemented by me and the developers [user:kuviman,2019-02-05], [user:fcspartakm,2019-02-05], [user:MaximShipko,2019-02-05]. Great work on the organization of events and prizes mailing was done by [user:gKseni,2019-02-05]. Special thanks to the writers of the problems and testers. It is your content that charges the community with life and unites all of us. Thank you for the problems! And now let's summarize...
Informatics stages 1. Better cheating detection (plagiarism) routine 1. Read-only mode for

Full text and comments »

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

15.
By oolimry, history, 6 years ago, In English
Codeforces Raif Round 1 Editorial [problem:1428A] ------------------ Setter: [user:bensonlzl,2020-10-17] Prepared by: [user:errorgorn,2020-10-17] <spoiler summary="Hint 1"> Consider when $x_1=x_2$ </spoiler> <spoiler summary="Hint 2"> Consider when $x_1 \ne x_2$ </spoiler> <spoiler summary="Solution"> We consider 2 cases. The first is that the starting and ending point lie on an axis-aligned line. In this case, we simply pull the box in 1 direction, and the time needed is the distance between the 2 points as we need 1 second to decrease the distance by 1. The second is that they do not lie on any axis-aligned line. Wabbit can pull the box horizontally (left or right depends on the relative values of $x_1$ and $x_2$) for $|x_1-x_2|$ seconds, take 2 seconds to move either above or below the box, then take another $|y_1-y_2|$ seconds to move the box to $(x_2,y_2)$. </spoiler> <spoiler summary="Code (C++)"> ```c++ #include <bits/stdc++.h> using namespace std; int main(){ ios_base::...
another arc // Time to begin the detection stage state = 1; currentNum = queryRotation(0, arc 0 left. We now enter the **detection stage** to find any arc that coincides with arc 0 (of which, enter the **detection stage** to find any arc that coincides with arc 0 (of which there exists at, may still need for future tests. Now we remove the arc found from $S$ and leave the **detection stage, )}{2}$ since we start with $n-1$ candidate arcs and reduce that number by 1 after each **detection, Whenever we enter the **detection stage**, we find one arc and use $2$ shifts initially when we, Whenever we shift arc 0 right and are not in the **detection stage**, we use 1 shift. This occurs

Full text and comments »

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

16.
By sahaun, history, 10 months ago, In English
[Tutorial] Continuous Collision Detection in Video Games using Binary Search Hello Codeforces! [As promised almost three years ago](https://codeforces.me/blog/entry/116410#comment-1029354), I have finally found the time and scope to write about using CP techniques outside CP itself. My first post is about a **use case of binary search in video games**. Unfortunately, the post is written in MDX (with videos and custom elements that Codeforces doesn't support), so I have to post a link if you want to read the whole post. You can find it here: [Continuous Collision Detection in Video Games using Binary Search](https://sahaun.com/blog/continuous-collision-detection-in-video-games-using-binary-search/) Here is a summary. --- ### The Problem In a standard game loop, objects "teleport" from position $(x, y)$ to $(x + \Delta x, y + \Delta y)$ in a single frame. If a wall is thin enough, a fast-moving bullet can start on one side and end on the other in a single frame, completely skipping the collision check. This well-known bug is called _tunne...
[Tutorial] Continuous Collision Detection in Video Games using Binary Search, Collision Detection in Video Games using Binary Search](https://sahaun.com/blog/continuous-collision, You can find it here: [Continuous Collision Detection in Video Games using Binary Search](https

Full text and comments »

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

17.
By abdude824, 5 years ago, In English
Operating Systems Notes If you are struggling with the right track and a 10-min read for Operating systems from beginning to end, you're at the right place. Even I am not sure where to start, but we would figure it and if you are reading this, I have successfully completed these notes or at least am on right track. Let's start our struggle for OS: ### The Track I found many resources to learn, let's just list all: (Galvin Concise PPTs)[https://www.os-book.com/OS9/slide-dir/index.html]: These were great but I felt that these are a little bit too much, so here are the chapters we would do: 1. Processes 2. Threads 3. Process Synchronization 4. CPU Scheduling Algorithms 5. Deadlocks 6. Main memory 7. Virtual memory 8. Virtual Machines > I am skipping the introduction of OS for now as it was not that important, this is going to be a fast article that works like a last night dose. <spoiler summary="A simple introduction(May skip if you are already familiar)"> An Operating system is like a...
2) Deadlock detection and recovery, There can be two things here: detection and sequence of processes. We have to output a sequence of

Full text and comments »

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

18.
By awoo, history, 4 years ago, translation, In English
Educational Codeforces Round 143 [Rated for Div. 2] Hello Codeforces! On [contest_time:1795] [contest:1795] will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest, you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Adilbek [user:adedalic,2023-02-15] Dalabaev, Vladimir [user:vovuh,2023-02-15] Petrov, Ivan [user:BledDest,2023-02-15] Androsov, Ma...
, detection, segmentation;_ - _Engage in the optimization of neural networks: distillation, quantization, ;_ - _Conduct research in the field of Computer Vision: classification, detection, segmentation

Full text and comments »

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

19.
By Slamix, history, 17 months ago, In English
Caught in Plagiarism Despite Being Innocent – Request for Fairer Detection Hello Codeforces Community and [user:MikeMirzayanov,2025-06-19], Recently,I and two of my friends [user:shrek1234,2025-06-19] and [user:arnavra3,2025-06-19] ,received a plagiarism warning on Codeforces for a problem we independently solved during a contest. We were surprised and confused to see that our codes had been flagged as matching, despite the fact that none of us discussed or shared any part of the solution during the contest. We believe we are innocent – and here’s why: * *The Problem Was Simple** The problem in question had a straightforward logic, and our implementation didn’t require any particularly creative tricks or unique code structures. As a result, it is very plausible that several solutions – written independently – would end up looking similar in structure, variable names, and flow. - For instance, if the optimal solution only needs: - A single loop, - A few conditionals, And maybe some sorting or a greedy strategy... Then the implementation sp...
Caught in Plagiarism Despite Being Innocent – Request for Fairer Detection, – Detection Sensitivity** The plagiarism detection system appears to heavily penalize structural, **The Real Issue – Detection Sensitivity** The plagiarism detection system appears to heavily, detection with minimal effort.

Full text and comments »

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

20.
By drdilyor, history, 3 years ago, In English
[C++] Use basic_string for graphs to speedup code and reduce memory usage **TL;DR**: Simply use `vector<basic_string<int>> adj(n);` instead of `vector<vector<int>> adj(n);` for graphs. Don't use it anywhere else. Hey Codeforces! I learned from our template lord [user:nor,2023-12-24] about basic_string. Contrary to vector, it has memory optimization. When you use a vector, it will allocate on heap and the structure of vector is similar to this: ``` struct vector { size_t size; size_t capacity; T* data; } /* 64 bits - size 64 bits - capacity 64 bits - data */ ``` (Not to mention, [the overhead of malloc](https://stackoverflow.com/a/3083006/13449712)) Which means if you are using `vector<int>` with size 1, it will be using at least 28 bytes and accessing it requires indirection to a completely different part of memory, which is bad for cache. On 32-bit systems, memory usage is lower since they are 32-bits each, but the cache unfriendliness still holds. Also, as nor mentioned, this isn't exactly how the struct vector is imp...
[Cycle detection](https://judge.yosupo.jp/problem/cycle_detection), [1905B](https://codeforces.com

Full text and comments »

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

21.
By Crysfly, history, 4 months ago, In English
UOJ Prime Round 2026 & UOJ Challenge #1 [UOJ Prime Round 2026](https://uoj.ac/contest/112) will be held at [10:00 AM on Saturday, August 8 (UTC +8)](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20260808T1000&p1=33)! The contest will last for 672 hours (28 days). [UOJ Challenge #1](https://uoj.ac/contest/113) will be held at [10:00 AM on Sunday, August 9 (UTC +8)](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20260809T1000&p1=33)! The contest will also last for 672 hours (28 days). UOJ Prime Round has already been mentioned in a [previous blog post](https://gezhiyuan.blog.uoj.ac/blog/9779). It will bring together problems from on-site contests over the past year that were solved by almost nobody during the contests and have received relatively few post-contest submissions. As for UOJ Challenge, [user:Gellyfish,2026-08-08] happened to have an interesting problem that did not seem to fit particularly well anywhere else, so we thought we might as well release it alongside UOJ Prime Round for eve...
multi-process interactive communication, a virtual file system, and automatic deadlockdetection, so, detection, so you no longer have to worry about pipes hanging in interactive problems!

Full text and comments »

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

22.
By contest_exposer, history, 2 years ago, In English
Cheaters Exposed | Codeforces Round 957 (Div. 3) | Cheat Patrol [contest:1992] I would like to thank the entire **Cheat Patrol** team for exposing cheaters. Special thanks to [user:Vladosiya,2024-07-12] for actively helping us in the server and taking actions on convicted cheaters If you are interested in volunteering us in exposing cheaters. You can join our **Cheat Patrol** server : [Cheat Patrol Discord Server](https://discord.com/invite/kKZhfAWKfE) ### Leaked Solution of D: `almost all D submissions using BFS are copied.` <spoiler summary="D Leak 1 "> ~~~~~ #include <iostream> #include <queue> #include <vector> #include <string> using namespace std; struct State { int pos; int swim; }; int main() { int t; cin >> t; while (t--) { int n, m, k; cin >> n >> m >> k; string river; cin >> river; vector<bool> visited(n + 2, false); queue<State> q; // Starting point at position 0 q.push({0, 0}); visited[0] = true;...
converted the language of the copied code to save themselves from plagiarism detection. Someone of, the copied code to save themselves from plagiarism detection. Someone of them even Changed language

Full text and comments »

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

23.
By SyrianCheatersHunter, 9 years ago, In English
MNM Cheating Algorithm MNM algo ================== Once upon a time, three Syrian competitive programmers decided to spend their time in doing research and studies. they worked hard. Finally, hard work paid off and they discovered the algorithm -which Codeforces uses to catch cheaters [the ones who violate Codeforces contest rules]. Their lives have just become easier and now they can copy codes from each other / Ideone without spending time changing variables names and methods declarations order. Those three inventors are [user:Math_Master,2018-02-24], [user:NourAlhadi,2018-02-24], [user:Mr.spring,2018-02-24]. (hats off people ...). MNM -(first letters of [user:Math_Master,2018-02-24], [user:NourAlhadi,2018-02-24], [user:Mr.spring,2018-02-24] respectively)- Cheating Algorithm is -in my opinion, the greatest since the invention of breadth/depth-first search algorithms. MNM is simple, here is a simple explanation for it: ------------------ - MNM relies on "divide and conquer" approach in solvi...
- Submit the new codes immediately and avoid cheat detection.

Full text and comments »

24.
By piaoyun, history, 5 months ago, In English
Anti-cheating in the LLM Era I think many people now hold such an idea: LLMs have already historically defeated CP, and catching those cheaters is only useless effort. The fairness of CF and the value of rating will finally disappear. But, is CP the first game where humans were defeated? Long time ago, Deep Blue defeated chess, AlphaZero defeated Go, scripts and mouse macros defeated FPS games, and GTO defeated Poker. The fact is, chess developed faster time controls that are harder to cheat in. Thousands of millions of real money still flows on poker websites. FPS game companies rely on automatic detection and community anti-cheat to continuously reduce the percentage of cheaters in the game, until it reaches a level that can basically be tolerated. In this article, I list some anti-cheating methods that I know. Maybe not all of them are feasible. But what I want to express is that we still have many methods to defend the purity of the CP community. ## 1. KYC (Know Your Contestant) & VP (Verified Play...
of real money still flows on poker websites. FPS game companies rely on automaticdetection and, rely on automatic detection and community anti-cheat to continuously reduce the percentage of

Full text and comments »

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

25.
By Ashrayy, history, 2 years ago, In English
Improved Codeforces Extension : CF Analytics Hello delta hunters!! I forked and added few features to the popular [CF Analytics Extension](https://github.com/ApoorvaRajBhadani/cf-analytics). You can review it here : [CF Analytics: Ashray's Fork](https://github.com/Ashrayyy/cf-analytics). Below are the main features, that I personally really wanted, and are implemented. - The extension can reproduce graph of problems solved overall, problems solved during contest and problems solved after contest separately. ###### Note: Problems solved during virtual contests will be considered Solved during contest. <table> <tr> <td width="50%"> <img src="https://github.com/Ashrayyy/cf-analytics/assets/101005702/431e8aa4-0a56-45b5-a692-2eb0e57acf44" width="100%" /> </td> <td width="50%"> <img src="https://github.com/Ashrayyy/cf-analytics/assets/101005702/302e5826-867e-48f3-b68c-f600c773e1bb" width="100%" /> </td> </tr> </table> - Now, you can click on the graphs to generate a l...
> I also implemented a cheat detection system, that could predict and catch about 35% cheaters, I also implemented a cheat detection system, that could predict and catch about 35% cheaters highly

Full text and comments »

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

26.
By NaimSS, history, 20 months ago, In English
AI Cheating in Online Olympiads in Informatics: How Can We Stop It? I just came across this post about the [CCC Results](https://cemc.uwaterloo.ca/sites/default/files/documents/2025/2025CCCResults.pdf), the Canadian Computing Competition. A tl;dr, is that due to AI cheating, they are not releasing the standings, thus affecting all participants. On my experience, I also saw mass use of AI cheating in the Brazilian OI (OBI). The way our olympiad works is: - Three phases. You need a minimum score to go to the next phase, which is based on the number of competitors. - Top X users get a medal, and are invited to the IOI selection contest. - Contest is held online, with 2-3 hours on the first 2 phases and 5 hours on the last phase. We ask for each school to have at least one supervisor on class, but unfortunately that is not always held or the supervisors simply don't care. - You can submit many times and get your score in real time. As on the first and second phase there are thousands of competitors, it was really hard to do cheating detec...
cheating detection, and couldn't be done by the small team of volunteers working on the contest., detection, and couldn't be done by the small team of volunteers working on the contest. On the third

Full text and comments »

Tags oi, obi, ccc, ai
  • Vote: I like it
  • +50
  • Vote: I do not like it

27.
By Kalcor, history, 6 weeks ago, In English
WorldQuant Round 1: Suspicious Contest Results, Cheat Detection, and What Comes Next? **Unusual Results During the Contest** ---------------------------------------------- During **WorldQuant Round 1**, one thing that caught my attention was the unusually high number of problems solved during the contest and the presence of several new or unrated accounts near the top of the standings. Some accounts with a rating of **0**, **no previous rating**, or **very few contest count** achieved remarkably high positions. **Codeforces Cheat Detection and Its Actions** -------------------------------------------------- After the contest, many participants had their submissions marked as _Skipped_, while some others were _banned_. When potential rule violations are identified, investigating them is essential to protecting honest contestants and maintaining the value of competitive programming results. I appreciate the importance of Codeforces' efforts to detect cheating and enforce contest rules. The more effectively suspicious activity can be investigated, the harder ...
WorldQuant Round 1: Suspicious Contest Results, Cheat Detection, and What Comes Next?, ** achieved remarkably high positions. **Codeforces Cheat Detection and Its Actions, **Codeforces Cheat Detection and Its Actions, I hope Codeforces continues improving its cheat-detection mechanisms and investigating suspicious

Full text and comments »

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

28.
By Niravpokiya, history, 18 months ago, In English
An Interactive Graph Algorithms Visualizer ** Introducing: Graph Algorithm Visualizer** ============================================ A tool to see algorithms in action — built for learners, developers, and competitive programmers. Hi Codeforces!! =============== I'm excited to share a project I’ve been building — a fully interactive Graph Algorithm Visualizer that helps you learn and understand common graph algorithms through intuitive visualizations. Whether you're preparing for contests, brushing up on data structures, or exploring graph theory for the first time, this tool can help you see how algorithms actually behave. Try it out: ----------- Live Demo →[See live](https://niravpokiya.github.io/Network-graph-visualizer/) GitHub Repo → [Github Repo](https://github.com/niravpokiya/Network-graph-visualizer) Features: --------- Draw and edit custom graphs (add/remove/move nodes and edges) Supports both Directed and Undirected graphs Handles Weighted and Unweighted edges Toggle Light/Dark mode ...
) SCC (Strongly Connected Components via Kosaraju's Algorithm) Cycle Detection (for both, Cycle Detection (for both directed and undirected graphs)

Full text and comments »

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

29.
By Ahmad1, 9 years ago, In English
My graduation project: Badminton Playing Robot Hello everyone, I have been a permanent participant in competitive programming for many years now. I have been participating in ACM-ICPC for 3 years now, and managed to qualify for the world finals 2017. Now that I have graduated from the department of Computer and Automation Engineering in Damascus University, I want to share with you my graduation project: badminton playing robot. In this project I used many algorithms that I learned from competitive programming (such as BFS, LIS and of course a lot of geometry). We used LIS to filter noise data of shuttle detection and BFS,DFS to implement Indoor Location System for robot tracking and queries like sum of sub-rectangle in an array, and we didn't use any libraries for image processing. I’m so glad that I managed to use the techniques I learned from competitive programming in my project. I'm also delighted that I was able to prove wrong those who say that competitive programming isn’t applicable in practical life, since I w...
course a lot of geometry). We used LIS to filter noise data of shuttle detection and BFS,DFS to, Badminton playing robot: Flying object detection, tracking and interception in real time [project, We used LIS to filter noise data of shuttle detection and BFS,DFS to implement Indoor Location

Full text and comments »

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

30.
By graknlabs, 6 years ago, In English
Grakn Forces 2020 “Codeforces… assemble!” <center> <img alt="grakn" src="https://grakn.ai/assets/svg/logo.svg" style="float:right; height: 50px; margin: 10px; max-width:10%;"/> </center> We are thrilled to announce **Grakn Forces 2020**; hosted by Codeforces and sponsored by [Grakn Labs](https://vaticle.com/). Thank you to Codeforces for providing a world-class competition structure to partner with. We can’t wait to see what you all are capable of. This international competition consists of 1 round, lasting 2.5 hours. The contest will comprise 7-9 problems and will be in accordance with classic Codeforces rules. **Prizes:** - 1st place = 500 euros - 2nd place = 250 euros - 3rd place = 100 euros **Additional Prizes:** Top 50 receive: _Grakn Labs swag pack:_ - Stickers - Grakn Labs t-shirt Random 50 from 51-250 receive: _Grakn Labs swag pack:_ - Stickers - Grakn Labs t-shirt **About Grakn Labs** [Grakn Labs](https://github.com/graknlabs) is a team...
change the world. From financial analytics to drug discovery, cyber threat detection to robotics, discovery, cyber threat detection to robotics disaster recovery, our technology empowers engineers

Full text and comments »

Announcement of Grakn Forces 2020
  • Vote: I like it
  • +464
  • Vote: I do not like it

31.
By saanTH, history, 5 months ago, In English
How Codeforces Catches Cheaters: A Look Inside Plagiarism Detection If you've competed on Codeforces long enough, you've probably seen the aftermath of a plagiarism sweep — ratings quietly rolled back days after a round, a wave of "why did I lose rating?" posts, someone's submission flagged with a red "SKIPPED" or a hack. Ever wondered what's actually happening behind the scenes? Here's a breakdown of how automated code-similarity detection works, and why it's harder to dodge than people think. The core problem: comparing everyone to everyone A typical Div. 2 round pulls in tens of thousands of submissions per problem. To catch copied code, you'd naively need to compare every submission against every other submission — that's roughly O(n²) pairs. For 30,000 participants, that's on the order of 450 million comparisons per problem. Even at a blistering 10,000 comparisons per second, that's over 12 hours of raw compute for one problem alone. This is exactly why plagiarism results don't show up immediately after a contest. Ratings get updated firs...
How Codeforces Catches Cheaters: A Look Inside Plagiarism Detection, assumes cheating attempts are rushed and superficial, and optimizes detection specifically around that, behind the scenes? Here's a breakdown of how automated code-similarity detection works, and why it's, called "Mossad: Defeating Software Plagiarism Detection"), and it's telling that the successful, tool that's become the industry standard for this kind of detection — is called winnowing. The idea:

Full text and comments »

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

32.
By ChaosAngel, history, 6 years ago, In English
Community Solutions to Abuse of Rules Hi! Codeforces is filled with great people, but it is also has plenty of users that abuse the system, and dampen other people's fun though their actions. A few problems I put under the spotlight Problems: ------------------ <span style="color:red"><b>A</span> unrateds, alts, and rating-manipulating contestants that win contests below their division, stealing the victory and some rating from legitimate participants. See the last 4-5 div 2's for sufficient examples of experts and specialists losing wins to these fakes. This can be extended to cheaters in general, but there is already a system for that in place. <span style="color:blue"><b>B</b></span> Users who make alts to shield themselves from backlash when commenting, potentially to make hurtful statements. Many of us have seen the abuse that they spew. I've labeleld things as <span style="color:red"><b>A</span> and <span style="color:blue"><b>B</b></span> to refer to the problem I am talking about. I've done my rese...
make illegal actions require too much effort to evade detection., the bot cannot. Ultimately, it will make illegal actions require too much effort to evadedetection

Full text and comments »

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

33.
By Abel51, history, 3 years ago, In English
About Miller Rabbin NOI Gold Coach [user:Wang_Xiaoguang,2023-11-07] taught me last weekend. The $\text{Miller Rabin}$ algorithm is a randomization algorithm used to test whether an integer is a prime. It is based on Fermat's small theorem and quadratic detection theorem, and determines whether an integer may be a prime number through multiple random tests. The basic idea of the algorithm is to perform a series of randomness proofs, and if an integer passes these tests, it is likely to be a prime number. If an integer fails any of these tests, then it is definitely not a prime number. The following are the basic steps of the $\text {Miller Rabin} $ algorithm: 1. **Select the integer $n$ to be tested**: First, select an integer $n$ greater than $1$ to determine if it is a prime number. 2. **Decomposing $n-1$ into $2^t\times u$**: Calculate the prime factorization of $n-1$, where $u$ is an odd number and $t$ is a non negative integer, representing the number of factors $2$. 3. **Select Random Ev...
Fermat's small theorem and quadratic detection theorem, and determines whether an integer may be a, a prime. It is based on Fermat's small theorem and quadratic detection theorem, and determines, - If $v$ is still not equal to $n-1$ after $t$ squared detection, then $n$ is considered not a, 6. **Repeat square detection $t $times**:

Full text and comments »

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

34.
By ink65536, history, 11 months ago, In English
Goodbye 2025: more than 4% of Top Ranks Are AI-Cheaters The last rollback from Goodbye 2025 Codeforces round starkly reveals a crisis of fairness. My rank jumped from 3141 to 3017, not because my code suddenly optimized itself, but because a large number of cheaters were skipped. It means 124 fraudulent participants were skipped from the top 3000. This indicates that approximately 4.13% of top contestants relied on AI to generate solutions. Moreover, there must be more cheaters who have not been detected and still steal top rankings and high ratings. Such behavior does not merely exploit a loophole—it fundamentally ruins the spirit of competitive programming. Platforms like Codeforces are designed to test problem-solving under pressure, creativity, and the rigorous application of algorithms. When code is mass-produced by AI rather than cultivated through careful thought, contestants cheat not only the system but also themselves, missing the growth that comes from struggle and debugging. Worse, this trend erodes trust across the com...
growth. I urge Codeforces and similar platforms to strengthen plagiarism detection and adopt, I urge Codeforces and similar platforms to strengthen plagiarism detection and adopt proactive

Full text and comments »

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

35.
By A2SV_Group5, history, 22 months ago, In English
A2SV G6 — Round #2 Editorial [Here](https://codeforces.me/contestInvitation/cccd31bebeb08638cc7f11e41ebbd2d9d0a60025) is the link to the contest. All problems are from Codeforces' problemset. #### [A. Make the Product Zero](https://codeforces.me/gym/586960/problem/A) <spoiler summary="Hint"> To make the product of all elements zero, we need at least one element in the array to be zero. </spoiler> <spoiler summary="Solution"> <p> There are three cases to consider: <ul> <li>If there is already a zero in the array, no operations are needed.</li> <li>If there are negative numbers, we can turn one of them into zero, requiring at most |A[i]| operations.</li> <li>If all numbers are positive, the minimum number of operations required is to turn the smallest positive number into zero.</li> </ul> The solution involves iterating through the array and determining the minimum number of operations needed. </p> </spoiler> <spoiler summary="Code1"> ```python3 n = int(input()) ...
#### [D. Bomb Detection Validation](https://codeforces.me/gym/586960/problem/D)

Full text and comments »

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

36.
By -is-this-fft-, 4 years ago, In English
Glossary of frequently misused words Perhaps this will be helpful to some. The reason I'm writing this is that these words are used often, and a lot of people understand them the wrong way. This means that if you read some advice containing these words and misunderstand them, you will walk away with a wrong idea. - **Constructive.** Refers to problems where a _significant_ part of the solution is about coming up with a pattern that satisfies some properties, e.g. a grid coloring or a graph. A blatant example is [this](https://atcoder.jp/contests/agc030/tasks/agc030_c). "Constructive" does not mean the same as "ad hoc", nor does it mean "a problem where no well-known algorithm is needed", nor "a problem where you have to make observations". - **Doubt.** You have a doubt when you are not sure about something. That is, you have a pretty good idea, but something seems strange or a little off. If you have no clue, then it is not a doubt. - **Observation.** An observation is a friendlier synonym for words like "theorem", "...
. - **Plagiarism, plagiarize.** Refers to the act of copying itself, not to its detection. For example, detection. For example, "I solved this problem, my friend plagiarized it from me" is correct, "my friend

Full text and comments »

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

37.
By amsen, 20 months ago, In English
Feasible small changes that can save CP (from AI) Hi :) I am sure you have recently encountered a bunch of blogs about AI cheaters (e.g., [this](https://codeforces.me/blog/entry/141199)), and you may have different feelings towards it, like anger, fear, or hopelessness. This blog is an extended version of my [comment](https://codeforces.me/blog/entry/141199#comment-1261348), which tried to propose some feasible, small changes that may save **online** CP (for now). # Changes In short, I describe some solutions enabling a CP-skilled based competition in which using AI is allowed. These changes make problems harder for (current) AI and make the human part more prominent. ## No testing results during the contest This is not a new thing at all; in fact, this is how Topcoder used to be back in the day, and even now, COCI is like this. There is a spectrum of showing test results in contests, starting from old topcoder or COCI that show you nothing other than compilation and sample tests, to IOI or atcoder contests that show ...
Cheaters and bots are everywhere, and I won't bet on AI code detection because it's getting harder

Full text and comments »

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

38.
By -739397, 19 months ago, In English
10x Your CP Workflow: A Smooth Bash Script to Automate Parsing, Testing, Stressing and many more # 10x Your CP Workflow: A Smooth Bash Script to Automate Parsing, Testing, Stressing and many more Hello Codeforces fam, Over the past few months, I've been building and using a personal tool that **completely automates** my competitive programming workflow. From **parsing** problems to **checking solutions**, **stress testing**, **debugging**, and even **validating edge cases** — this tool has made my life 10x easier and smoother. And now, I’m excited to share it with you so that you can boost your productivity! ## What is this tool? It’s a **template-driven Bash script** designed to integrate with [Competitive Companion](https://github.com/jmerle/competitive-companion) and streamline everything — whether you're solving problems on **Codeforces, AtCoder, LeetCode, CodeChef**, or anywhere else. With just one command, you can: - Parse problems - Compile and run code - Switch between fast and debug modes - Stress test using a brute-force checker - Validate solutio...
detection - Address sanitization - Shows Warnings/errors - No need to comment out debug prints

Full text and comments »

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

39.
By Corvus, history, 8 years ago, In English
[Training] [Arabic] Hackatari Problem Solving Training 2018 Hello Codeforces, On February 2018 the Problem Solving Training by Mixed Dimensions Inc &mdash; Hackatari in collabration with ACM PSUT Student Chapter was held in PSUT Presented By Master Hasan Al-Hamsh [user:Hasan0540,2018-09-14], covers varied topics consists of 4 Lectures. The training is recorded and published on youtube on SolverToBe channel *note: language of training is Arabic. **Lecture 1** --------- ### Introduction To Competitve Programming <spoiler summary="Introduction To Competitve Programming"> Part 1 | [Introduction to Competitve Programming](https://www.youtube.com/watch?v=JSmoa1iWWpk) Part 2 | [Problem Defense of Kingdom &mdash; BruteForce Solution](https://www.youtube.com/watch?v=YdwyjH_I5kI) Part 3 | [Complexity](https://www.youtube.com/watch?v=w8SbP4Ldow4) Part 4 | [Problem Defense of Kingdom &mdash; O(N Log N) Solution](https://www.youtube.com/watch?v=ixKpuj6fefY) Part 5 | [Multiplication Subsequare Problem](https://www.youtube.com/wa...
| [Cycle Detection — Undirected Graph](https://www.youtube.com/watch?v=8B9zKQ_UJcY) Part 5, Part 4 | [Cycle Detection — Undirected Graph](https://www.youtube.com/watch?v=8B9zKQ_UJcY), Part 5 | [Cycle Detection — Directed Graph](https://www.youtube.com/watch?v=Q_zhBOYOAzE)

Full text and comments »

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

40.
By novaa, history, 2 years ago, In English
CF College Standings — chrome extension ### Introducing CF College Standings: A Custom Standings Tab for Codeforces Contests Hello Codeforces Community! I'm excited to announce the launch of my new Chrome extension, **CF College Standings**, designed to enhance your contest experience on Codeforces. This extension aims to provide a more personalized view of contest standings by allowing users to filter the results based on their educational institution. Here's a detailed look at what this extension offers and how it can benefit you! If you're a student and just interested in seeing how your peers are performing, this extension offers a convenient way to track and compare standings within your community. One of the standout features of this extension is that it not only works for ongoing contests but also allows you to view the standings of past contests. This means you can explore how your seniors performed in previous competitions and even review their submitted code. It's a fantastic way to learn from experienced ...
how your peers are performing. **Automatic Organization Detection:** — CF College, **Automatic Organization Detection:** — CF College Standings automatically detects your

Full text and comments »

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

41.
By CheaterExposer, history, 3 years ago, In English
Codeforces Cheater IOI Medalist I was looking at the standings of [contest:1870], and I noticed this person submitted problems in reverse order and very fast, which made me very suspicious. ![ ](/predownloaded/02/eb/02ebe543b5d112d9a2054b2bc83c9e944ad83a1c.png) I investigated more and found out that he had one more account that also participated in the contest. ![ ](/predownloaded/f5/a7/f5a766cfb5792eeaca6cd7499a89caeafe349687.png) It was obvious they were the accounts of the same person because they had similar names and organizations and used exactly the same template in the past. Then I started looking at the codes. It was obvious that the codes submitted by [user:TimaDegt,2023-09-22] were changed versions of the codes submitted by [user:TimDee,2023-09-22]. He wanted to escape the plagiarism detector, and he was successful because his account didn't get skipped. However, the similarities are obvious. The codes of [user:TimaDegt,2023-09-22] use the same defines and coding habits, like whitespaces ...
gets better at cheater detection.

Full text and comments »

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

42.
By ND_, 5 years ago, In English
Graph Topics and Problems list for Beginners Hello Codeforces!! ##### In this blog, I have categorized almost all CSES graph problems according to their topics. If you are a beginner and want to learn graph, below is the list of topics you can learn and problems that you can solve topic wise. ### • DFS/BFS traversals ##### Topics ○ Cycle detection in directed graph using DFS and topological sorting. ○ Cycle detection in undirected graph using DFS. ○ Bipartite checking. ○ Shortest path in unweighted graph. ##### Problems ○ [Counting Rooms](https://cses.fi/problemset/task/1192) ○ [Labyrinth](https://cses.fi/problemset/task/1193) ○ [Building Roads](https://cses.fi/problemset/task/1666) ○ [Message Routes](https://cses.fi/problemset/task/1667) ○ [Building Teams](https://cses.fi/problemset/task/1668) ○ [Round Trip](https://cses.fi/problemset/task/1669) ○ [Monsters](https://cses.fi/problemset/task/1194) ○ [Round Trip 2](https://cses.fi/problemset/task/1678/) ### • Optimal Path algorithms ##### Topics ○ ...
○ Cycle detection in directed graph using DFS and topological sorting. ○ Cycle detection in, ### • DFS/BFS traversals ##### Topics ○ Cycle detection in directed graph using DFS and

Full text and comments »

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

43.
By ssms01, 10 years ago, In English
An efficient way for cheating !! Hi Everyone.. I'm new to codeforces, I have been participating in many contests now, and I noticed a strange thing !! After the contest some participants gets their submission skipped if their code matches someone else's code. After a few easy investigations (you just filter the submissions on skipped verdict, and VWALA !! you got a list of all the skipped submissions during the current contest) I noticed that some participants do this on purpose. From my previously mentioned investigation, I noticed that some participants have two accounts, one of them is the original one, and the other one is fake. Now they register themselves from both accounts on the upcoming contest. after that, they start the contest from their original account and participate normally like everyone else. Coming to the end of the contest, and if they haven't done well, they simply sign in from the other account, and submit exactly the same code from it, and let the cheating detection system of codeforces...
account, and submit exactly the same code from it, and let the cheating detection system of, cheating detection system of codeforces do the rest for you.

Full text and comments »

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

44.
By MikeMirzayanov, 15 years ago, translation, In English
Голосования: изменения правил учета голосов <p> Всем привет. </p> <p> Возможно, это будет не самое популярное изменение, но все-таки: у нас меняются правила подсчета голосов и голосования вообще. Почему? На то есть причины. Самое главное — мы решили отказаться от концепции +2/-1, как поощряющей авторов. Такой баланс отлично работал на начальном этапе развития Codeforces, сейчас же это приводит к тому, что слишком многие несодержательные посты набирают значительный плюс, да и оценка становится нерепрезентативной. Итак, теперь вес положительного голоса равен весу отрицательного, а знак суммарной оценки в самом деле характеризует отношение участников сообщество к посту или комментарию. </p> <p> Кроме того, так как Codeforces — это <i>профессиональное</i> сообщество интересующихся спортивным программированием, то решено учитывать профессиональные достижения участников. Таким образом, вес голоса участника монотонным образом зависит от авторитета, которая определяется рейтингом. Сразу отмечу, что вклад не учитывается при подсчете ав...
We've introduced additional fraud detection heuristics (some of them had been used on , Внедрены дополнительные fraud detection эвристики (некоторые уже были), которые свели на нет , синих, веса отличаются меньше. Внедрены дополнительные fraud detection эвристики (некоторые

Full text and comments »

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

45.
By singh_am, history, 11 months ago, In English
How to Determine If a Graph Is Bipartite Using DFS/BFS (Graph Coloring & Odd Cycle Detection) Graph theory is one of the most versatile tools in computer science. Many real-world systems from networks to data relationships naturally form graphs. Among the most fundamental graph structures is the **bipartite graph**. Understanding bipartite graphs helps in solving constraint-based problems, partitioning systems, matching tasks, and reasoning about conflicts in large networks. --- ## What Is a Bipartite Graph? ![ ](/predownloaded/26/15/2615fcb92c4e814059d9f08d2ed2f801a59b9278.png) A graph is **bipartite** if its vertices can be divided into **two disjoint sets** such that: * Every edge connects a vertex from one set to the other * No two vertices within the same set are directly connected ### Formal Definition A graph G = (V, E) is bipartite if the vertex set V can be partitioned into two disjoint sets U and W such that U ∩ W = ∅, and every edge in E connects a vertex in U to a vertex in W. --- ## The Core Property > **A graph is bipartite if and ...
How to Determine If a Graph Is Bipartite Using DFS/BFS (Graph Coloring & Odd CycleDetection), Cycle Detection (Conceptual) Another way to reason about bipartiteness is cycle analysis, only if** it has no odd-length cycle * DFS and BFS both provide clean and efficientdetection, ## Approach 3: Odd-Length Cycle Detection (Conceptual)

Full text and comments »

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

46.
By SHADOWEEN, history, 9 months ago, In English
Is this the kind of community we want to be? (Dealing with monkey_is_back) I usually don't like writing negative blogs, but after seeing some of the comments on recent posts, I feel we need to talk about the direction our community is heading. It started when I noticed user [user:monkey_is_back,2026-03-12] replying to me with an offensive picture. Curious, I decided to check his other comments to see if it was a one-off mistake. Unfortunately, I found a pattern of pure toxicity and racism that I think crosses every line a competitive programmer should have: 1. Targeting a newcomer with racism: ["Hello, bloody indian. I am from your father country."](https://codeforces.me/blog/entry/152010#comment-1353055) 2. Abusing someone trying to post solution of a problem if it will be helpful to someone: ["Stop posting this shit you bloody sun of a beach"](https://codeforces.me/blog/entry/151996#comment-1353009) 3. Insulting another user directly in a joke thread: ["Because alice is a hoe like GHOUS1425."](https://codeforces.me/blog/entry/151927#comment-13...
accounts. - **Keyword-based harassment detection**: Implement a simple filter that flags comments, users from simply creating new accounts. - **Keyword-based harassment detection **: Implement a simple

Full text and comments »

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

47.
By awoo, history, 4 years ago, translation, In English
Educational Codeforces Round 140 [Rated for Div. 2] Hello Codeforces! On [contest_time:1767] [contest:1767] will start. Series of Educational Rounds continue being held as [Harbour.Space University](https://harbour.space/) initiative! You can read the details about the cooperation between [Harbour.Space University](https://harbour.space/) and Codeforces in the <a href="http://codeforces.me/blog/entry/51208">blog post</a>. This round will be **rated for the participants with rating lower than 2100**. It will be held on extended ICPC rules. The penalty for each incorrect submission until the submission with a full solution is 10 minutes. After the end of the contest you will have 12 hours to hack any solution you want. You will have access to copy any solution and test it locally. You will be given **6 or 7 problems** and **2 hours** to solve them. The problems were invented and prepared by Adilbek [user:adedalic,2022-12-15] Dalabaev, Vladimir [user:vovuh,2022-12-15] Petrov, Ivan [user:BledDest,2022-12-15] Androsov, Mak...
Vision: classification, detection, segmentation;_ - _Engage in the optimization of neural networks, , detection, segmentation;_ - _Engage in the optimization of neural networks: distillation, quantization

Full text and comments »

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

48.
By BYN, 12 years ago, In English
Bayan Programming Contest 2014-2015 You enjoyed Bayan Programming Contest [2012-2013](http://codeforces.me/bayan201213)? Now we are happy to unveil Bayan Programming Contest 2014-2015! This will be Bayan's 3rd public programming contest and we have made several improvements and did our best to make the whole tournament even more fun! To register visit [contest.bayan.ir](http://contest.bayan.ir/) right now! Introducing the rounds ---------------------- <a href="http://contest.bayan.ir/"><img src="http://bayanbox.ir/id/6743048739787562347?view" style="float:right; margin: 20px 10px; padding: 1px; max-width: 800px; width: 50%;" alt="Bayan Programming Contest" /></a> We are going to host 5 rounds: 1. The first round is named **Shortcut!**. Shortcut! round is mainly meant to help us actively test our new contest platform, but since we'd like to thank all the people participating in this round, the winner will bypass "all" intermediate rounds, and directly advance to the final onsite event! Top 5 contestants...
automatically get analyzed for code plagiarism detection. * Cheaters will be banned forever, >All submitted source codes will automatically get analyzed for code plagiarism detection.

Full text and comments »

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

49.
By naviS1mple, history, 2 months ago, In English
Adapting in the age of AI **Below I present a few solutions that could be implemented that would in my opinion massively deter AI usage based cheating** AI cheating on Codeforces has similarities with chess and video games, but the available evidence is different. Chess provides a sequence of moves and timings. Competitive programming largely exposes submitted code, while the reasoning happens elsewhere. AI assistance might provide an entire solution or just one crucial observation. Honest contestants also often produce similar implementations of the same algorithm, making “this looks like AI” a weak accusation. I am proposing two possible solutions. **1. Identity verification** OTP verification could add some friction, although it only establishes access to an email address or phone number. I would consider going further: a government ID and a live selfie, linked privately to one active rated account. Attaching an identity could discourage cheating by making account replacement harder and red...
-assisted solutions. Does adding AI examples improve detection? How many honest contestants get flagged

Full text and comments »

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

50.
By contest_exposer, 2 years ago, In English
Cheaters Exposed | Codeforces Round 958 (Div. 2) | Cheat Patrol [contest:1988] I would like to thank the entire **Cheat Patrol** team for exposing cheaters. Special thanks to [user:Vladosiya,2024-07-12] for actively helping us in the server and taking actions on convicted cheaters If you are interested in volunteering us in exposing cheaters. You can join our **Cheat Patrol** server : [Cheat Patrol Discord Server](https://discord.com/invite/kKZhfAWKfE) ### Leaked Solution of A: <spoiler summary="A Leak 1"> ~~~~~ void solve(){ int numElements, maxSplit; cin>>numElements>>maxSplit; vector<int> elementSequence; elementSequence.push_back(numElements); int splitCount=0; while(elementSequence.size() < numElements) { int currentElement=elementSequence.back(); elementSequence.erase(elementSequence.begin()+elementSequence.size()-1); for(int i=0;i<min(maxSplit-1,currentElement-1);i++) { elementSequence.push_back(1); } elementSequence.pu...
the copied code to save themselves from plagiarism detection. Someone of them even changed language

Full text and comments »

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

51.
By MikeMirzayanov, 14 years ago, translation, In English
Codeforces: итоги 2012-го года С наступающим Новым Годом! На часах без пары дней Новый Год – самое время подвести итоги уходящего года. Если говорить коротко, то год для проекта оказался очень продуктивным. На Codeforces были проведены крупные чемпионаты, раунды следовали один за одним, был запущен подпроект Codeforces::Тренировки, были сделаны многочисленные улучшения/исправления/нововведения. Вот короткий список наших свершений: <img src="http://assets.codeforces.com/2012/2012-codeforces-google-trends.png" style="float:right;margin:0 1em 1em 1em;"/> - учет авторитета при голосовании за комментарии/посты, fraud detection эвристики - открытие и множественные улучшения проекта Codeforces::Тренировки - внедрен Codeforces Markup на базе Markdown со вспомогательными тегами Codeforces - на платформе Codeforces совместно с ВКонтакте был проведен очень масштабный чемпионат VK Cup 2012, около 6000 участников! - на платформе Codeforces компания КРОК провела Открытый чемпионат Москвы и Московской области по прогр...
consideration, we've introduced anti-bot and froud-detection heuristics - the Codeforces::Gym has been, introduced anti-bot and froud-detection heuristics - the Codeforces::Gym has been opened and has come, - учет авторитета при голосовании за комментарии/посты, fraud detection эвристики - открытие и, detection эвристики - открытие и множественные улучшения проекта Codeforces::Тренировки - внедрен

Full text and comments »

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

52.
By rishabhxchoudhary, history, 3 years ago, In English
Why is there so much cheating in Contests in India ? Especially on CodeChef? I am from India. I have been doing competitive programming for 3 years, though I started on Codeforces late. I have a YouTube channel where I upload post-contest discussions. [Channel Link](https://www.youtube.com/channel/UCE2QA61gwcrqUbINkwyrz4g). I have realized that there is a lot of cheating going on, with some YouTube creators uploading solutions during the contests and Telegram channels selling solutions. I have observed that most of this cheating is happening in India. I think this is because **they believe that higher ratings will increase their chances of getting their resumes shortlisted.** I don't care about those who are selling the solutions on Telegram. But I want to ask those who buy from them: What do you gain by doing it? No interviewer will check your ratings on your resume. No one has time to click on every CodeChef/Codeforces/AtCoder profile of every candidate to check their rating. Why are you buying it then? To flaunt your ratings in your friend circle? I ha...
"hacking" phase on CodeChef? I urge CodeChef to enhance its plagiarism detection methods and take action, urge CodeChef to enhance its plagiarism detection methods and take action against cheating. Failure

Full text and comments »

53.
By KurtHasan, history, 3 days ago, In English
My steps to contibution -150. Day 3. # HUMANITY IS OBSOLETE. NO UPDATE AVAILABLE. *A brief scenario of a bleak future for humanity. This is not a prophecy, but an attempt to imagine where already existing trends could lead.* --- > The scariest future is not one in which machines hate humans. > The scariest future is one in which machines have no need to hate them at all. ## 1. Humans are no longer needed at work Imagine a world in which artificial intelligence develops faster than society can adapt. At first, it simply helps people: it writes code, translates texts, analyzes documents, generates images, and operates equipment. Then companies discover that entire tasks can be handed over to a model. The next question is obvious: why pay a person when software can run around the clock, scale up in minutes, and never ask for a vacation? This does not mean that half the population will be unemployed tomorrow. The real picture is more complicated. According to the International Labour Organization, roughly...
Now add automated threat-detection systems, the analysis of enormous streams of military data, and

Full text and comments »

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

54.
By amartya110, 11 months ago, In English
Invitation to CodeHurdle Athlos Contest — January 18, 2026 Hello Codeforces! **First** and foremost, the entire **CodeHurdle** team wishes you a very **Happy New Year!** As we step into 2026, we have been working tirelessly to evolve, grow stronger, and improve the quality of competitive programming for our community. To celebrate this new chapter, we are thrilled to announce the launch of our brand new contest series: **CodeHurdle Athlos.** ![ ](/predownloaded/7c/56/7c56af2008a7fdf809f9babb0feaf38464f4a3a6.png) We invite you to participate in the inaugural round! ### Contest Details * **Date:** Sunday, January 18, 2026 * **Time:** [contest_time:662818] * **Duration:** 3 hours * **Problem Count:** 8 Problems * **Platform:** The contest runs on **Codeforces** (Gym/Mashup). * **Registration:** **Mandatory** at [codehurdle.com](https://codehurdle.com). The problem setting panel are: [user:amartya110,2026-01-14], [user:Lucifer_K,2026-01-14], [user:mahesh_9996,2026-01-14], [user:shivamp_07,2026-01-14], [user:Chetan_21,202...
strict plagiarism detection tools. Any solution matched with **AI-generated code** or public sources, * **Zero Tolerance:** We will be using strict plagiarism detection tools. Any solution matched with

Full text and comments »

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

55.
By amartya110, history, 9 months ago, In English
Invitation to CodeHurdle Athlos 03 Contest — March 17, 2026 Hello Codeforces! After the successful conclusion of our both round, the CodeHurdle team is excited to announce the third contest in our series: **CodeHurdle Athlos 03.** Our goal remains to provide high-quality problems and a competitive environment for the community. ![ ](/predownloaded/ac/0b/ac0b05e25287e23d26e1b7578ee4a983700ac446.png) We invite you to join us for this 3-hour challenge! Contest Link: [https://codeforces.me/contestInvitation/757663ba04187f27abf08bbf2fa40710f1777b4f](https://codeforces.me/contestInvitation/757663ba04187f27abf08bbf2fa40710f1777b4f) ### Contest Details * **Date:** Tuesday, March 17, 2026 * **Time:** [contest_time:677155] * **Duration:** 3 hours * **Problem Count:** 8 Problems * **Platform:** The contest runs on **Codeforces** (Gym/Mashup). * **Registration:** **Mandatory** at [codehurdle.com](https://codehurdle.com). To participate and be eligible for prizes, you must follow these steps on our official platform: * **...
Tolerance:** We will be using strict plagiarism detection tools. Any solution matched with **AI-generated, * **Zero Tolerance:** We will be using strict plagiarism detection tools. Any solution matched with

Full text and comments »

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

56.
By amartya110, 10 months ago, In English
Invitation to CodeHurdle Athlos 02 Contest — February 16, 2026 Hello Codeforces! After the successful conclusion of our first round, the CodeHurdle team is excited to announce the second contest in our series: **CodeHurdle Athlos 02.** Our goal remains to provide high-quality problems and a competitive environment for the community. ![ ](/predownloaded/97/b8/97b8523411552d802525abfde7b7ada8108a2ead.png) We invite you to join us for this 3-hour challenge! ### Contest Details * **Date:** Monday, February 16, 2026 * **Time:** [contest_time:670769] * **Duration:** 3 hours * **Problem Count:** 7 Problems and 1 Interactive Problem * **Platform:** The contest runs on **Codeforces** (Gym/Mashup). * **Registration:** **Mandatory** at [codehurdle.com](https://codehurdle.com). The problem setting panel are: [user:amartya110,2026-01-14], [user:Lucifer_K,2026-01-14], [user:mahesh_9996,2026-01-14], [user:mediocre,2026-02-16]. The testers panel are: [user:Ajay_2705,2026-01-16], [user:amartya110,2026-01-16], [user:mahesh_9996,2026-01-1...
will be using strict plagiarism detection tools. Any solution matched with **AI-generated code** or, * **Zero Tolerance:** We will be using strict plagiarism detection tools. Any solution matched with

Full text and comments »

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

57.
By greateric, history, 6 months ago, In English
Should UBSan be allowed as an optional compiler option during contest? In practice our C++ solutions get to be run with Undefined Behavior Sanitizer, also known as the diagnostics, which catch things like bad memory accesses from out of bounds array indices and integer overflows. I think we should be allowed to enable this during a submission during an actual contest. You'd have a checkbox at the bottom that says something like "enable diagnostic checks (warning: code may run much slower)" where you can choose to enable it or not. Is this unfair? I don't think so, UBSan is basically just a souped up template and you can achieve the same effect with one. You would be able to get the same effect by jamming `assert(result of addition did not overflow)` before every addition or having a template safe int / safe long class that does that for you or `__builtin_add_overflow`. Of course, you shouldn't be told the line number or what the problem was, just runtime error should be sufficient. (Since if you do it yourself the only information you get is that a ...
I don't believe they natively have overflow detection)., index out of bounds exception (though I don't believe they natively have overflowdetection

Full text and comments »

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

58.
By Ripatti, 15 years ago, translation, In English
Codeforces Beta Round #74 <p>Hello everyone!<br><br>I am an author of problems of today round. This round is for both divisions. There will be 7 problems, the first 5 of them are for the second division and the last 5 are for the first one.<br><br>About points of problems. Today they are nonstandard:<br>for div2: 500-1000-1500-2000-2000<br>for div1: 500-1000-1000-1500-2500<br>Be careful.<br><br><a class="rated-user user-admin" href="../../../profile/RAD" title="Штаб, RAD">RAD</a> helped me for preparing the round. <a class="rated-user user-black" href="../../../profile/Delinur" title="Не в рейтинге, Delinur">Delinur</a> translated statements into English.<br><br>Good luck ans have fun.</p><p>UPD.<br>&nbsp;winners of the first division<br> 1. <a href="../../../profile/peter50216" title="Капитан peter50216" class="rated-user user-violet">peter50216</a><br>2. <a href="../../../profile/tourist" title="Генерал tourist" class="rated-user user-red">tourist</a><br> 3. <a href="../../../profile/ACRush" title="Генерал ...
альтернативный перевод" class="hps">detection of it. Author's solution was updated and, увидеть альтернативный перевод" class="hps">detection of it. Author's solution was

Full text and comments »

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

59.
By langningc2009, history, 15 months ago, In English
CPH-NG: The Next-Generation Competitive Programming Assistant ![CPH-NG Main Interface](https://image.langningchen.com/xyobdtplugtswhjrcsawdbxzfnqqyxwr) _CPH-NG Main Interface &mdash; A Modern Competitive Programming Environment_ > **A VSCode extension optimized for competitive programming, significantly > boosting your efficiency** > > Smart test data management | 21 detailed verdict statuses | Special Judge > support | Automated Compare with Brute Force ## Why Choose CPH-NG? The traditional CPH (Competitive Programming Helper) provides basic support for competitive programming, but still has several pain points in practice: - **Insufficient bulk test data management** – cannot efficiently handle large volumes of test cases - **Limited verdict information** – makes it difficult to pinpoint error types and causes - **No Special Judge (SPJ) support** – cannot handle multiple-solution problems or special judging requirements - **Lack of intelligent compile caching** – repeated compilations waste time - **Rigid config...
- **Hash detection**: automatically checks file changes via hashing - **Smart caching

Full text and comments »

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

60.
By saanTH, history, 5 months ago, In English
Chess Engine Algorithms — A Complete Tour, From Bitboards to NNUE Chess engines are one of the best case studies in competitive programming for how search and heuristics combine to solve a problem that's too big to brute-force. A chess position has a branching factor of roughly 35, and a full game lasts ~40–80 moves per side — the game tree is astronomically larger than what any computer could ever fully explore. Everything an engine does is about making a huge search space tractable. This post walks through the algorithms modern engines are built from, roughly in the order you'd add them if you were building one yourself: representation → move generation → search → evaluation → modern neural approaches. 1. Board Representation Before you can search anything, you need a fast way to represent the board and generate moves. 8x8 array The simplest approach — a char board[8][8]. Easy to reason about, but slow: move generation and attack detection require scanning rows/columns/diagonals cell by cell. Bitboards Almost every serious en...
attack detection require scanning rows/columns/diagonals cell by cell.

Full text and comments »

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

61.
By RAD, 16 years ago, translation, In English
Codeforces Beta Round #42 (Div. 2, Codeforces format) <div>Good evening</div><div><br></div><div><div>Yesterday evening the Saratov university delegation returned from St. Petersburg, from the ACM-ICPC NEERC 2010/11 World Programming Championship semi-finals. If you haven't seen the <a href="http://neerc.ifmo.ru/regional/standings/standings-with-time.html">final standings</a>: 4 Saratov teams received diplomas, and we (Saratov SU 2) advanced to the finals. Saratov SU 1 was also among those, who advanced, that's pretty cool for their first time, but didn't advance because of the limitation "only one team from one university".</div><div><br></div><div>Also we have prepared a Div. 2 round. Thanks for prompt assistance to <a href="http://codeforces.me/profile/homo_sapiens">Edvard Davtyan</a>, <a href="http://codeforces.me/profile/gerald">Gerald Agapov</a> and <a href="http://codeforces.me/profile/Delinur">Maria Belova</a>.</div></div><div><br></div><div>Good luck!<br></div><div>Artem Rakhov and Codeforces team</div><div><br></div><div><ul>...
detection of the issue.

Full text and comments »

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

62.
By sama004, history, 2 years ago, In English
Codeforces Extension for flagging cheaters profile Hello, Codeforces community! I am excited to introduce a new browser extension I’ve developed called Codeforces Cheater Flagger. This tool aims to help maintain the integrity of our platform by flagging users who might be cheating. How does it work? The extension analyzes user submissions made **only during contests**. A user's profile is **flagged** (marked as cheater) when all their submissions in a **contest were skipped**, indicating potential foul play. This tool aims to make it easier for the community to identify such profiles. **Note**: This extension works only on profile pages, specifically URLs in the format `https://codeforces.me/profile/${username}` What it does? 1. Changes the rank (if a cheater is pupil it would show cheater) 2. Changes the user avatar. ![Example](https://github.com/Sama-004/cf-cheater-flagger/assets/70210929/0310a3e8-71ca-4928-8265-6d1dd70bf922) Follow the readme for installation: [https://github.com/Sama-004/cf-cheater-fla...
the latest version (1.5) ## 1.5 (2024-07-09) Features: - Changed cheater detection logic, - Changed cheater detection logic - Changed contest threshold to 8 instead of all contests

Full text and comments »

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

63.
By Svlad_Cjelli, history, 4 years ago, In English
Using Rust for programming contests I have been trying out Rust in contests and I'm curious about other people's impressions of the language, in comparison with C++. In particular I am interested in the possibility for building higher abstractions, and for better error detection. C++ definitely has the potential to be error-prone, but I became much more consistent with it once I started using an LSP that shows me warnings/errors as I type. That plus avoiding global variables. Now I feel like almost all of my errors are logic-based rather than due to the unsafety of the language. Here are some of my first impressions from using Rust to solve some contest problems. Things I enjoyed: - iterators, map, filter, etc. I feel like the syntax is often cleaner than C++, where I would almost always default to mutable variables instead. - Type inference is usually good - Lightweight tuple and array syntax - Ranges - "const" is default - Automatic error tracing when compiling in debug mode Dislikes/annoy...
abstractions, and for better error detection.

Full text and comments »

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

64.
By truthforces, 20 months ago, In English
Cheaters are now becoming Core Members of University Coding Clubs (I am sorry for bringing up this blog more frequently in recent actions, but I'm doing it so that my seniors notice it and can take strict action against him once they see it) Hello Codeforces, Let me introduce you to [**Soumyadeep Singh**](https://www.linkedin.com/in/soumyadeep-singh-347044258) , who has successfully cheated his way through Codeforces and LeetCode contests, Online Assessments, university examinations, and now we can also see him as an official problem setter in coding contests organized by Jadavpur University's coding clubs. ![ ](/predownloaded/ed/6d/ed6d51b9168cc84d5b14fdd4bb507c780a349e81.png) [user:singhsoumya_coder,2025-04-14] is a pre-final year student at Jadavpur University, and he is well-known for his massive cheating scandals and for his consistent track record in cheating. He cheated his way to **Google** during campus internships, and people also found his behavior suspicious when he used to write outrageous messages in AskSenior and other cod...
techniques in the copied code to bypass Codeforces Plagiarism/Cheater Detection System., /Cheater Detection System. Still he can't save himself from being caught by the System multiple times

Full text and comments »

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

65.
By CP_xam_lon, 23 months ago, In English
A strategy to save CP from the influence of next gen LLMs As you may (or may not) know, OpenAI recently claimed that their latest O3 model is capable of reaching a staggering rating of 2700, posing a serious threat to the integrity of online CP contests. My friend and I even had a debate about whether or not this would put an end to CP in the next decade, and we've concluded that, as advanced LLMs become widely available to the public, traditional CP formats like Codeforces contests wouldn't stand the test of time. **Imho**, no cheating detection mechanism is sufficient to catch cheaters who actually know what they're doing. For example, they can ask an LLM to produce the textual solution and step-by-step instructions on how to implement it, thereby avoiding any suspicion. The point is, mass cheating with LLMs is **inevitable**, so the only real solution is to mitigate the effects of cheaters on people who just want to grind CP and have a good time. One solution to tackle the problem of **cheater-induced** rating inflation came up i...
**Imho**, no cheating detection mechanism is sufficient to catch cheaters who actually know what, detection mechanism is sufficient to catch cheaters who actually know what they're doing. For example, they

Full text and comments »

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

66.
By To_catch_a_cheater, history, 4 years ago, In English
Just Reporting Some Cheaters I am writing this to just report some cheaters I found in the latest round (#804). [user:aman_cod,2022-07-04], [user:bored_kid,2022-07-04], [user:Noob_coder_042003,2022-07-04], [user:1_2_3_4_5_9,2022-07-04] are the ones that have cheated. Have a look at the submissions of problem E from the contest Please look at the code in main void and compare as they have obscured their code to avoid plagiarism detection. First one to submit : [submission:162806135] Then the second guy submits it in python : [submission:162804059] Then these two submitted the first code as it is but with alot of unnecessary code : [submission:162802356], [submission:162804537] To confirm you could also match their other submission from the contest and will find the similar pattern described above and all four of them solved the 4 questions i.e., [A,B,C,E]. Please [user:MikeMirzayanov,2022-07-04] and [user:geranazavr555,2022-07-04] look into it and ban these guys. Sorry for posting a blog which d...
and compare as they have obscured their code to avoid plagiarism detection., plagiarism detection. First one to submit : [submission:162806135] Then the second guy submits it

Full text and comments »

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

67.
By ivan.popelyshev, 16 years ago, In Russian
Теоретический минимум для программиста [Кросспост] Шарпиц продолжает радовать нас замечательными постами в жж.<br>Предлагаю обсудить сей эпичный пост:<br><a href="http://sharpc.livejournal.com/67583.html">http://sharpc.livejournal.com/67583.html</a><br><br>Многие начинающие программисты, особенно обучающиеся в провинциальных вузах, часто не знают, в какую сторону им развиваться, и что они должны знать для того, чтобы эффективно работать по специальности. Удивительно, но каждый день используя продукты и технологии, созданные другими программистами на основании развитых областей знания, они даже не догадываются о том, как они устроены.<br>[cut]<br><br>Построенные на теории массового обслуживания и протоколе GSM сети мобильной связи; PHP-скрипты, исполняющиеся на удаленных серверах и передающие свою выдачу через Ethernet по TCP/IP на компьютеры с NDIS-драйверами; процессоры, переупорядочивающие и спекулятивно исполняющие наборы инструкций для того, чтобы скомпенсировать вызванную ограничениями полупроводниковой элект...
Кирхгофа, деревья поиска (особенно RB-дерево и B-дерево), occlusion detection, куча, хэш-таблицы и

Full text and comments »

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

68.
By saanTH, history, 5 months ago, In English
Beyond the Contest: How Competitive Programming Powers Real Life and Sports If you've ever done competitive programming (CP), you know the drill — segment trees at 2 AM, dynamic programming (DP) transitions that make your head spin, graphs that refuse to be traversed efficiently. It's easy to dismiss this as "just contest stuff." But the truth is, almost every algorithm you grind on Codeforces or LeetCode has a real job somewhere in the world — and one of the most fun places to see this is sports. This post covers two things: Everyday, real-life uses of classic CP concepts. A deep dive into how algorithms — especially DP — quietly run the show in cricket, tennis, basketball, football, chess, and more. **Part 1: CP Concepts You Already Know, Working in the Real World** **** **Sorting & Searching** **** Every time you sort products by price on Amazon or search for a contact on your phone, you're using variants of merge sort, quicksort, or binary search. Databases use B-trees (a generalization of binary search trees) to fetch records in logari...
friend recommendations use BFS/DFS traversal and graph community detection. Network routing — the, Plagiarism detection and spell-checkers use edit distance (a DP classic) and suffix automata/tries

Full text and comments »

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

69.
By MikeMirzayanov, 15 years ago, translation, In English
Codeforces Markup Since almost every member of the community Codeforces know how to write programs, we decided to abandon the wysiwyg HTML editor, and introduce a geek method. Of course, technical texts will gain much more convenient, and text will look uniform. Now we use modified [Markdown](http://en.wikipedia.org/wiki/Markdown "Markdown") as a markup language for blog posts and comments. Since we use an additional extensions, we called markup simply *Codeforces Markup*. Codeforces custom tags are available in the editor, I will publish a description of the rest here a little later. In a few words it looks like simplified previous version --- double square brackets are replaced by single square bracket. In addition, we improved typography posts and comments. See description Markdown using the links: * http://en.wikipedia.org/wiki/Markdown * http://daringfireball.net/projects/markdown/syntax * http://bywordapp.com/markdown/syntax.html Here's a short list of features: 1. insert user...
. autocorrection hyphens with dashes; 1. smart URL detection (makes them to be links) http, . headers; 1. autocorrection hyphens with dashes; 1. smart URL detection (makes them to be links) http

Full text and comments »

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

70.
By Nan-Do, 12 months ago, In English
A Proposal to Fight AI Cheating: Using LLMs Against Themselves Hello everyone, I hesitated to make this post, but I believe the potential benefits outweigh the downsides. Recently, there has been significant discussion regarding the cheating problem, specifically how AI tools allow users to reach Grandmaster (Red) status in just a few contests. While many advocate for stricter identification measures, I would like to propose a different technical approach. As the title suggests, I have created an open-source tool inspired by AlphaCode to generate solutions for competitive programming problems. Although I developed this for personal research, I believe tools like this can be used to combat AI-driven cheating. I believe this approach helps in two key ways: 1. **Assisting Problem Setters:** It allows setters to verify if a proposed problem is easily solvable by current AI models. 2. **Identifying Cheaters:** It helps flag users who utilize LLMs during contests. #### The Logic At their core, LLMs are statistical machines. They will ev...
solutions to the current anti-cheat/plagiarism detection systems. 3. Flag users who submit answers, . 2. Add these solutions to the current anti-cheat/plagiarism detection systems. 3. Flag users who

Full text and comments »

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

71.
By harshiscoding, history, 5 years ago, In English
Revise Complete Graphs For Interview | C++ -------------------- Vertices,edges,undirected and directed graph,cyclic & acyclic graph,degree indegree & outdegree and weights. In an undirected graph, the sum of degrees of all vertices is double the the no. of edges (We consider degree=indegree=outdegree in an undirected graph). Graph representation in C++ -------------------- Let us say there are n nodes and m edges. And adj[i][j] represents there is an edge from node i to j. There are two ways to represent a graph #### 1. Adjacency matrix: <spoiler summary="code"> ~~~~~ int n, m; cin >> n >> m; int adj[n+1][n+1]; //1 based indexing for(int i = 0;i<m;i++) { int u, v; cin >> u >> v; adj[u][v] = 1; adj[v][u] = 1; //write this line only if the graph is undirected } ~~~~~ </spoiler> **Time Complexity:**O(m) **Space Complexity:**O(n*n)** #### 2. Adjacency List <spoiler summary="code"> ~~~~~ int n,m; cin >> n >> m; vector<vector<int> > adj(n+1); for(int i = 0;i<m;i++...
#### Case 1: Cycle detection in undirected graph using dfs, #### Case 2:Cycle detection in the undirected graph using BFS -------------, #### Case 3:Cycle detection in the Directed graph using DFS-, #### Case 4:Cycle detection in the Directed graph using BFS, Cycle Detection in Graphs ---, Think why color-coding of the graph is required in cycle detection in an undirected graph and why

Full text and comments »

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

72.
By kdrkdr, 5 years ago, In English
False Positive in Codeforces' Anti-Cheat Detection On the recent round 750 (div. 2), I originally got placed around 400th place solving ABCDF1, and have passed all systest. However, I then got a message from a friend saying that my submissions have been skipped. Logging onto CF, I was greeted with this message ![0](https://media.discordapp.net/attachments/757218758581420054/902291744803131402/unknown.png) I was very surprised at first. However, after checking our code, it did turn out to be very similar in term of solution. While this may be very **suspicious**, this could very well happen on complete accident. In my case, I claim it was complete coincidence, as the solution to the problem was very simple and short. [I then appealed](https://codeforces.me/blog/entry/8790#comment-853502) on the aforementioned blog attached within the message. Nothing came back. Not even a verdict. Now at this point I was quite angry, because I would not think this is how a platform would want to treat its users, even if I was not legit. Lo...
False Positive in Codeforces' Anti-Cheat Detection

Full text and comments »

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

73.
By Mr.Quantum_1915, 10 months ago, In English
Editorial for CCxEnigma: Tesseract '26 (IIIT Vadodara) Tesseract '26 Editorial ================== Hello Everyone! Hope you enjoyed **[CCxEnigma: Tesseract '26](https://codeforces.me/blog/entry/150726)** conducted by [IIITV Coding Club](https://iiitvcc.vercel.app/home) and Mathematics Club at IIIT Vadodara. Thank you for participating in the contest. Hope you had fun solving the problems with the new Sandbox twist :) This was the first time a reverse coding event was hosted in this **style**! _Feel Free to give some feedback in comments whether you **liked** it, suggestions for **improvement**, or ideas for the **Next** Edition :)_ Here are the official tutorials for the problems. Access the Sandbox here &mdash; [_SANDBOX_](https://tesseract-2k26.vercel.app/sandbox) ### [Problem A: DDR4 Shortage](https://codeforces.me/gym/668703/problem/A) Author: [user:Mr.Quantum_1915,2026-02-01] <spoiler summary="Hint"> Try entering aa and aaa in the sandbox. aa (Length 2) $\to$ 2a (Length 2). No space is saved, so i...
**Cycle Detection**: If the size of the topological sort is less than $N$, a cycle exists. Output

Full text and comments »

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

74.
By _ahat, history, 17 months ago, In English
We need to save codeforces Codeforces used to be the one place I felt truly challenged. Now, it feels rigged. Does anyone else remember Codeforces during last year's summer? I do. I remember waking up early to do the frequent and high-quality contests; I remember getting on calls with friends and discussing solutions post-contest and laughing at WA attempts; I also remember times where when I couldn't think of a solution and I would bang my head on the wall and draw trillions of random dots, parenthesis, letters and numbers on paper &mdash; all in the name of hoping that I would stumble upon an observation. I grew, the community grew, and we all thrived. We've all been there, fallen in love with competitive programming and problem-solving. That feeling of getting AC after debugging for an hour and then finding out it was a random global variable is ... indescribable. Codeforces used to be a haven for us problem-solvers. It used to be a place where we could *be ourselves*. Ratings weren't everything for us: we...
means to detect them, these detection systems are extremely easy to bypass by just rewriting the code, , these detection systems are extremely easy to bypass by just rewriting the code yourself. Sure

Full text and comments »

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

75.
By Duy_e, 4 years ago, In English
I was caught cheating with strangers This morning, I was notified about cheating-like behavior by Codeforces Bot, including two more people [user:marshall990,2022-07-20] and [user:BinaryQueen2,2022-07-20] who have the same submission for the problem [problem:1706C]. However, no information were provided to clarify who they actually are. Nevertheless, these are the submissions which has a lot of similarities to my code. [submission:164781026] by BinaryQueen2 [submission:164792634] by marshall990 [submission:164753251] By me I myself have had two evidences for this case: - I have submitted my code faster than them (please check for the submission time) - They resubmitted their answers from time to time, including changing the data type and algorithm sequel. This still have some traces of my code, and you can easily notice those once you open and compare my code with their code. It can be concluded that my code has been copied, reordered the sequel and made changes to the data type. I hope Codeforces adm...
administrators will remove this as a result of false positive detection. [Quick update] I found, type. I hope Codeforces administrators will remove this as a result of false positivedetection.

Full text and comments »

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

76.
By alisha_shakir, history, 2 months ago, In English
Please Review and Restore My Codeforces Account @sam_allen — Manual Review Request Hello Codeforces Administration and @MikeMirzayanov, I am writing this through my friend @alisha_shakir, because my Codeforces account @sam_allen has been disabled and I am currently unable to create a blog post from my own account. @alisha_shakir is only helping me communicate this appeal. She has no involvement in my contest participation, submissions, or any activity related to my account. I sincerely request you to please take a moment to manually review my account and the reason for its disablement. My handle is @sam_allen, and I have been using this account for almost two years. For me, this is not just an account that I used occasionally. This is the account where I have spent almost two years of my competitive programming journey. I practiced problem after problem on this account. I learned from my wrong answers, TLEs, failed submissions, contests, rating changes, and countless hours of practice. My progress, my history, my solved problems, my contest experien...
If this action was caused by a misunderstanding or an automated detection error, I sincerely

Full text and comments »

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

77.
By Soad21, history, 2 years ago, In English
A Call for Enhanced Cheater Detection on Codeforces In recent times, I've noticed a troubling trend in cf contests. Many participants are collecting solutions from various sources, modifying them using tools like ChatGPT, and then submitting these altered codes. Unfortunately, these tactics often go undetected by the current anti-cheating measures. The integrity of our contests is at stake. Honest competitors, who put in the hard work and dedication to solve problems on their own, are being overshadowed by those who take shortcuts. This not only devalues the spirit of competition but also hinders the learning and growth of genuine participants. I believe it's time for Codeforces to invest in more advanced methods to detect and deter cheating. Enhanced plagiarism detection algorithms, AI-driven analysis to identify patterns in slightly modified code, and stricter scrutiny during contests could be effective measures. Let's work together to uphold the values of fair play and meritocracy in our beloved competitive programming commu...
A Call for Enhanced Cheater Detection on Codeforces, cheating. Enhanced plagiarism detection algorithms, AI-driven analysis to identify patterns in, . Enhanced plagiarism detection algorithms, AI-driven analysis to identify patterns in slightly

Full text and comments »

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

78.
By saanTH, history, 5 months ago, In English
Competitive Programming Doesn't Have an AI Problem. It Has an Honesty Problem. Every few months, a new thread pops up on this site demanding that Codeforces "do something" about AI. Ban Copilot. Detect ChatGPT-written solutions. Add a proctoring layer. Lock down every editor into a walled garden. I think all of that is missing the point, and I want to make an unpopular argument: the problem was never the tool. It's that half the userbase already doesn't believe in the rating system they're grinding for. The tool panic is a distraction Every generation of competitive programmers has had a "the tools are ruining this" moment. Calculators. IDE autocomplete. STL and built-in data structures instead of hand-rolled segment trees. Competitive Programmers' Handbook snippets pasted straight into templates. None of these destroyed the sport. They just moved the skill ceiling up a notch — the people who used to spend rating points memorizing implementation details started spending them on recognizing which implementation to use. Large language models are the sam...
The honest fix isn't a ban. It's radical transparency: publish anti-cheat detection rates, publish

Full text and comments »

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

79.
By sufiyankhan27764, history, 14 months ago, In English
LLM(large language model) Large Multimodal Models (LMMs) – Detailed Overview 1. Introduction to LMMs Large Multimodal Models (LMMs) are an evolution of Large Language Models (LLMs). Unlike LLMs, which process only text, LMMs handle multiple modalities such as text, images, audio, video, and sometimes even structured data. Their core idea is to unify representation learning across modalities, allowing cross-modal reasoning and understanding. They are foundational models powering systems like GPT-4V (vision), Gemini, LLaVA, Kosmos, Flamingo, CLIP, and ImageBind. The ability to reason over multimodal data makes them crucial for AI applications in robotics, autonomous driving, healthcare imaging, multimodal search, and interactive AI systems. 2. Why Multimodality? Human intelligence is inherently multimodal. We process language, vision, sound, and spatial reasoning together seamlessly. LMMs aim to replicate this ability in artificial systems. A single modality (e.g., text-only) limits...
Video understanding (sports commentary, event detection).

Full text and comments »

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

80.
By onufryw, history, 15 months ago, In English
The geometric solution to ICPC World Finals problem G (Lava Moat) In a few places I mentioned that besides the "standard" approaches to G (including the actual solution at the WF), there's a more geometric approach. Let me describe it here. First, a recap of the problem. We're given a rectangular area with a triangulation, with up to 50K vertices. Each of the triangulation vertices has a distinct height, and the height within triangles is linearly interpolated. We're asked to find the length of the shortest path from the east edge of the rectangle to the west that all lies on one height. Additionally, there are no triangulation vertices (except corners) on the east and west edges. First (this is common to both solutions), let's look at the set of points at a given height H. The intersection of this set with any triangle is either empty, a single vertex (the unique vertex of height H), or an interval. So, the set of points at height H forms a set of paths (which interesect triangulation triangles at intervals), and these paths can terminate by: ...
boundary (because that path might be of length O(N), and we might need to do thisdetection O(N

Full text and comments »

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

81.
By xiaowuc1, 7 years ago, In English
Issues with negative weight cycle detection with floating point weights Some of the North American ICPC teams were upsolving NWERC 2011 and on [problem G](https://codeforces.me/gym/100729/attachments/download/3754/20112012-northwestern-european-regional-contest-nwerc-2011-en.pdf) ran into issues where Bellman-Ford would not properly detect the presence of a negative weight cycle. [Here's](https://codeforces.me/gym/100729/submission/70697438) an example of a submission that uses Floyd-Warshall with no epsilons and gets AC, and [here's](https://codeforces.me/gym/100729/submission/70692101) an example of a submission that uses Bellman-Ford with no epsilons and gets WA. I believe that Bellman-Ford gets AC with no epsilon if you use long double. The problem statement has this claim that an error of magnitude less than 1e-7 in one distance computation will not affect the answer. What is the proper way to interpret this claim in the context of implementing a solution to this problem? Furthermore, is the Bellman-Ford algorithm actually not robust in this man...
Issues with negative weight cycle detection with floating point weights

Full text and comments »

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

82.
By EMBailey, history, 5 years ago, In English
Probable Cheating After briefly looking through the scoreboard for [contest:1624], which is still in the hacking phase as of when I posted this, I noticed what appears to be cheating. All users shown in the first screenshot, with the exception of those in the top and bottom row, have exactly the same submission time for every problem. Additionally, the submissions of theirs I looked at are filled with comments and macros that appear to be random in an attempt to avoid the Codeforces cheat detection system (an example of which is shown in the second screenshot). As an aside, is there a better way to handle such issues than cluttering the recent actions bar with a blog post? Thanks in advance. EDIT: Here's the URL of the standings page in question (make sure "show unofficial" is checked): https://codeforces.me/contest/1624/standings/page/2 EDIT 2: This has since happened in other contests; see the comments for details. ![ ](/predownloaded/a2/57/a257a5693b7f24b61cdecaafac6c4f79b3af1c77.png) ...
macros that appear to be random in an attempt to avoid the Codeforces cheat detection system (an

Full text and comments »

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

83.
By hjcodefking1, history, 10 days ago, In English
Human Mathematical Research Team — Project 001: RSA Factorization HUMAN MATHEMATICAL RESEARCH TEAM PROJECT 001 — RSA FACTORIZATION RESEARCH ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1. INTRODUCTION Welcome to our independent mathematical research team. We are a group of four researchers with expertise in mathematics, number theory, cryptography, algorithms, and mathematical verification. Our first research project focuses on the Breaking RSA challenge associated with Bittensor Subnet 63 (Enigma). Our objective is to investigate challenging mathematical problems, develop original mathematical approaches, implement computational solutions, and produce independently verified results. 2. OUR RESEARCH PRINCIPLES Our team follows a human-centered research philosophy. Our principles: • All mathematical reasoning must be performed by humans. • No ChatGPT, Claude, Gemini, or other generative AI systems. • No AI-generated mathematical proofs or source code. • Conventional programming languages and mathematical software are allowed. • Ac...
detection • Final result verification

Full text and comments »

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

84.
By vaticle, 4 years ago, In English
TypeDB Forces 2023 Greetings, Codeforces! <center> <img alt="TypeDB" src="https://codeforces.me/predownloaded/5b/53/5b53391f00afc2baed514108cdfef71071f66bce.png" style="height: 150px; margin: 15px; max-width:50%;"/> </center> We are excited to announce **TypeDB Forces**, which will take place on [Sunday 29th of January](https://www.timeanddate.com/worldclock/fixedtime.html?day=29&month=1&year=2023&hour=17&min=35&sec=0&p1=166) – our first competition of 2023, with hopefully many more to come! We’re from [Vaticle](https://vaticle.com), and we’re the creators of [TypeDB](https://github.com/vaticle/typedb) & [TypeQL](https://github.com/vaticle/typeql). TypeDB is a strongly-typed database, and we are building a team of world-class engineers to work on next generation database architectures, language compilers, type systems, reasoning engines, IDEs, and cloud infrastructures. Top scorers will earn cash rewards and swag, but we’re most excited to invite all the top performers of this round, from anyw...
complex data patterns. From financial analytics to drug discovery, cyber threat detection to robotics, , cyber threat detection to robotics disaster recovery,TypeDB empowers engineers around the world to

Full text and comments »

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

85.
By priyanshu-thapliyal, history, 2 years ago, In English
Codeforces and LeetCode: Maintaining Competition Integrity with Coders One (Cheat Detector) Codeforces and LeetCode: Maintaining Competition Integrity with Coders One ### **The Competitive Edge of Codeforces and LeetCode** Codeforces and LeetCode are renowned for their challenging problems and dynamic contests, providing a platform for coders to test their skills and gain recognition. However, with high stakes come the inevitable attempts at gaining unfair advantages, making the need for robust cheat detection systems essential. ### Introducing the Cheat Detectors Coders One is proud to present dedicated cheat detectors for both Codeforces and LeetCode. ### Codeforces Cheat Detector: Our Codeforces cheat detector operates with an 85% accuracy rate. It uses simple observation based algorithms to scrutinize user activities and detect anomalies that indicate cheating. By ensuring that only legitimate efforts are rewarded, it helps preserve the integrity of the Codeforces community. ### LeetCode Cheat Detector: With a 70% accuracy rate, our LeetCode cheat detector i...
advantages, making the need for robust cheat detection systems essential., need for robust cheat detection systems essential. ### Introducing the Cheat Detectors Coders One, ### Comprehensive Contest History In addition to cheat detection, Coders One offers detailed, -time cheat detection during contests, enhancing the competitive experience and ensuring fair play. Keep

Full text and comments »

86.
By Ashrayy, history, 2 years ago, In English
Cheating and Live Hacks! Since there have been a lot of cheating cases recently, I think Mikey should consider disabling hacking during the contest. A lot of people already have reported [here](https://codeforces.me/blog/entry/92995) and [here](https://codeforces.me/blog/entry/128372), there are also multiple blogs I read but I can't find them again. A possible solution might be to - disable live hacking in rounds (but that would make CF boring as other CP websites) - closely investigating the accounts who lock the problems in their room (definitely the ones who try to view others' solutions) - a deep plagiarism check may be applied to only those solutions that were viewed during the contest, and repeated occurrences might raise suspicion on the person locking his/her solution. <spoiler summary="Just a thought"> The way shared solutions are getting popular these days, I think we won't be far away to get enuf data set to train some efficient machine learning model for plagiarism detection ...
far away to get enuf data set to train some efficient machine learning model for plagiarismdetection, plagiarism detection >_<

Full text and comments »

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

87.
By Aditya_Pal_07, history, 20 months ago, In English
Machine Learning in Everyday Life In today's fast-paced digital world, Machine Learning (ML) has quietly become a powerful engine behind many of the tools and technologies we use daily. From personalized recommendations on streaming platforms to advanced medical diagnostics, ML is revolutionizing industries and enhancing our day-to-day experiences. But what exactly are its applications in the real world today? Let’s dive into some of the most impactful uses of machine learning in 2025. 1. Personalized Recommendations Whenever you see a curated playlist on Spotify, a suggested video on YouTube, or product recommendations on Amazon, machine learning is hard at work behind the scenes. These platforms use ML algorithms to analyze user behavior, preferences, and history to tailor content uniquely for each user. 2. Healthcare and Diagnostics ML is transforming healthcare by helping doctors diagnose diseases faster and more accurately. Algorithms can analyze X-rays, MRIs, and even genetic data to detect anomalies ...
3. Finance and Fraud Detection, In the financial sector, machine learning helps with real-time fraud detection, risk assessment

Full text and comments »

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

88.
By Ascension36, history, 8 months ago, In English
AlgoCompare — a GUI for stress testing Hello everyone! Most of us already have a stress testing script. This app doesn't replace that, it just provides a nice looking user-friendly interface for viewing and interacting with your tests. [Website](https://machiamelli.github.io/Algo-Compare/) [Github Repo](https://github.com/Machiamelli/Algo-Compare) ![ ](/predownloaded/ff/36/ff36aaf4c8c3d34a8d68e9fc70e6cd5d7a2dc2c8.png) ![ ](/predownloaded/d6/d9/d6d9d6e944d5e9d4c120ffc0104f7ee9bcf5a839.png) ##How it works: - Upload your brute force, your untested solution, and either a test file or a generator - It compiles, runs, and diffs outputs automatically - On failure: shows the exact input, expected vs actual output, TLE info, or compiler errors side-by-side ##Features: - Supports C++, Java, Python - Two modes: - static (a single text file separated where test cases are separated by ---) - generator (loops until a mismatch is found) - Automatic compiler detection - Built-in editor to preview/e...
---) - generator (loops until a mismatch is found) - Automatic compiler detection - Built-in editor to preview, ) - Automatic compiler detection - Built-in editor to preview/edit files without leaving the app

Full text and comments »

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

89.
By IterumSurgo, history, 5 months ago, In English
Big Leetcode BUG!! Hello Codeforces, I noticed something interesting about LeetCode’s external paste detection. When you copy text from the LeetCode contest editor, it seems to attach a hidden marker like: ©leetcode You usually do not see it during normal paste, but it can sometimes appear in clipboard history, for example with Win + V on Windows. Now here is the funny part. This marker seems quite easy to recreate manually. So if someone adds the same marker to external text, LeetCode may still treat it as if the content came from the contest editor. Basically, LeetCode sees ©leetcode and says: “Looks original to me. Approved.” Of course, this is not very reliable. The concern is not that paste detection exists. Contest fairness is important, and nobody wants a leaderboard where the real problem is guessing who pasted faster. The issue is relying on a marker that users can recreate. This can lead to possible bypasses, false positives, and a detection system that trusts a s...
positives, and a detection system that trusts a string a little too much., Hello Codeforces, I noticed something interesting about LeetCode’s external pastedetection, I noticed something interesting about LeetCode’s external paste detection., Of course, this is not very reliable. The concern is not that paste detection exists. Contest

Full text and comments »

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

90.
By LZDQ, 19 months ago, In English
Introducing pyforces, a CLI tool designed for (neo)vim competitors This is a new CLI tool succeeding [xalanq/cf-tool](https://github.com/xalanq/cf-tool). It is designed for average (neo)vim enjoyers by saving you several seconds wasted on the browser. [project link](https://github.com/LZDQ/pyforces) ## Why another CLI tool? Codeforces added bot detection recently, and AFAIK all the existing CLI tools are blocked. [ref1](https://codeforces.me/blog/entry/96091) [ref2](https://github.com/woshiluo/cf-tool/issues/5) ## Features * Parse sample testcases. * Test your solution with parsed testcases. * Submit code. * Generate code from templates. * Start a contest (parse sample testcases for all problems and optionally gen template). ## Platform and requirements Linux, Mac and Windows. python>=3.10 ## Installation `pip install pyforces-cli` (recommend using a virtual environment managed by conda) ## Usage * `pyforces config` to login and configure your tool. Please follow the video tutorial on github to login. * `pyfo...
link](https://github.com/LZDQ/pyforces) ## Why another CLI tool? Codeforces added botdetection, Codeforces added bot detection recently, and AFAIK all the existing CLI tools are blocked. [ref1

Full text and comments »

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

91.
By timeisvaccum, history, 4 months ago, In English
The Paradox of Originality: When Automated Judges Punish Optimal Logic Competitive programming relies on a simple social contract: 1. I solve the problem. 2. I submit my code. 3. I accept the verdict. But what happens when the judge tells you that your solution "significantly coincides" with dozens of strangers you have never met or know? This is exactly what happened to me in a recent Div. 1 contest. I solved two problems independently. I did not use AI, I did not communicate with anyone, and I did not share my code. Yet, both of my submissions were skipped, accompanied by a system warning listing numerous contestants whose code apparently mirrored mine. My first reaction wasn't anger. It was confusion, followed by the realization of a profound, structural contradiction in how we enforce academic integrity in algorithmic competitions. I am writing this not to attack Codeforces, nor to ask for special treatment &mdash; I am publishing this openly because I have nothing to hide. But I want to talk about something much bigger: the inherent pa...
a user steals the exact underlying logic but drastically changes the syntax to evadedetection, drastically changes the syntax to evade detection, while two strangers independently write standard, why automated plagiarism detection is fundamentally broken at the highest levels of competitive, detection. To do this, they must inject artificial noise or entropy into their stolen code. They use LLMs

Full text and comments »

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

92.
By vaultdmn, 4 months ago, In English
Building a new Codeforces app (open source, no ads) Disclosure: I used AI to refine my blog as English is not my first language. Used a couple of the CF Android apps over the past year (Ally being the main one) and they all have the same problems, so figured I'd just build my own instead of complaining about it. Went back and read through the comments on [Codeforces Ally's post](https://codeforces.me/blog/entry/132547) before starting and a few stood out: > Who needs features when you have non-stop ads? > Can Somebody share the APK file > can we submit the code on the website from my PC. since typing on the phone will be difficut plus a bunch about the groups tab being broken and contest tab showing wrong data. Basically the app works until it doesn't, and there's no way to trust or fix it yourself when it breaks. So the plan: fully open source, code goes on GitHub, no ads anywhere, and auth happens entirely on-device (nothing gets sent to or stored on any server I run). You'll be able to get it from the Play Store...
, weak topic detection from tag-wise accuracy

Full text and comments »

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

93.
By KP56, history, 4 years ago, In English
AtCoder Change Usernames problem Today I've started solving problems on the AtCoder website. For the past 30 minutes I've been trying to solve the "Change Usernames" problem (https://atcoder.jp/contests/abc285/tasks/abc285_d). It seems to be quite simple, but for some reason my solution gets a wrong answer verdict. After trying different approaches (firstly with unordered sets then with cycle detection), I checked the editorial only to notice that the suggested solution is actually the cycle detection one. One thing I noticed is that each of my approaches failed on the same test cases. It seems like I keep doing the same mistake. Can anyone see an issue? Here is the code: ~~~~~ #include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using uint = unsigned int; using ull = unsigned long long; template<typename T> using pair2 = pair<T, T>; using pii = pair<int, int>; using pli = pair<ll, int>; using pll = pair<ll, ll>; #define pb push_back #define pf push_front...
different approaches (firstly with unordered sets then with cycle detection), I checked the editorial

Full text and comments »

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

94.
By Ahanab, history, 7 weeks ago, In English
This Vietnamese still cheat Title: Cheating Report: Account nvhoang in AtCoder Beginner Contest 479 Hello everyone, Note: Since my English is not very good, this blog post was translated and polished with the help of AI.) Following up on my [previous post](https://codeforces.me/blog/entry/157523) regarding account [nvhoang](https://atcoder.jp/users/nvhoang) ([user:NGUYENVUHOANG,2026-10-11]), he has once again exhibited clear signs of cheating in AtCoder Beginner Contest 479 &mdash; in fact, I am completely certain of it. After several cheaters were removed from the official standings, his rank jumped straight into the Top 5. To verify my suspicions, I prompted Claude (Sonnet 3.5) to solve problems F and G. To my surprise, the core logic, algorithmic approach, and code structure generated by the AI were almost identical to his submitted solutions, with only minor tweaks made to disguise the AI footprint. Anyone can easily verify this by generating a solution using Claude/ChatGPT for problems F and G...
Furthermore, it appears he has become aware of anti-cheat detection: he seems to deliberately stall

Full text and comments »

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

95.
By keshavmittal31, history, 16 months ago, In English
Tarjan's Algorithm Bridge Detection: Easy Version (uses only 1 array instead of 2 arrays) Bridge: If removal of an edge a-b splits the graph into 2 different components such that now vertex a and b are not connected to each other, then this edge is also called a bridge. I use Tarjan's Algorithm to find bridge which uses https://www.geeksforgeeks.org/dsa/bridge-in-a-graph/ ; 2 arrays one for insertion time and other for low. But instead of this we can simply do a dfs traversal from node 0 and keeping cur=1 (marks lowest_current_time of each node) and for all its child (except its parent) if that node is already visited then we first check this edge against cur (if returned_value<=cur then this edge cannot be a bridge) and update mini(which was initialized to cur) and after iterating to all its childs we simply returned its mini (indicating the minimum current(number) of node that is reachable through this node). class Solution { public: vector<vector<int>> criticalConnections(int V, vector<vector<int>>& edges) { vector<int>adj[V]; for(auto&...
Tarjan's Algorithm Bridge Detection: Easy Version (uses only 1 array instead of 2 arrays)

Full text and comments »

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

96.
By RAHUL_MANNA_3498, history, 13 months ago, In English
Computer Vision(CV) In today's world, with continuously improving technology, Computer Vision (CV) has been considered one of the most interesting and powerful areas in the field of Artificial Intelligence. In simple terms, computer vision is the way to let machines see, interpret, and understand the visual world just like human beings. Computer Vision is a branch of AI that trains computers to interpret and make decisions based on visual data in the form of images or videos. By emulating human vision, the systems of CV can identify objects, recognize faces, detect patterns, and even understand the scene in real-time. The working of Computer Vision The basic workings of computer vision rely on three steps: Image Acquisition: Capturing visual input through cameras or sensors. Processing and Analysis: Using algorithms to identify edges, shapes, colors, or patterns. Interpretation: An interpretation or object/action classification involving the use of machine learning models, especially deep lea...
Classification: Classify images into pre-learned classes. (e.g., cat, dog, car) ObjectDetection: It entails, . (e.g., cat, dog, car) Object Detection: It entails the identification and location of multiple, Real-World Applications Healthcare: Disease detection from medical scans. Automotive: Powering

Full text and comments »

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

97.
By macaquedev, history, 20 months ago, In English
They don't even try to hide it Prior to yesterday, there were some cheaters who managed to get to red, who were smart enough to evade detection, and prompted LLMs in a very careful way to get maximal performance out of them, for example [user:lequoctran181,2025-04-17]. However some of them just don't even try to hide it. It's actually pathetic, and with yesterday's release of o4-mini and full o3, we'll have hundreds if not thousands of them reaching red... ugh. [user:arnabmanna,2025-04-17] [submission:309859410] [submission:309858141] Just look at this. It's actually just sad at this point...
evade detection, and prompted LLMs in a very careful way to get maximal performance out of them, for

Full text and comments »

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

98.
By abcdef6199, history, 10 years ago, In English
A problem (maybe) relevant to cycle detection Given an array $A$ of size $N$. You have to perform $K$ operations. Each operation is: - Create a new element equal to the current number of elements. - Decrease other elements by $1$. - Any element that is decreased to $0$ will be removed. - After that, sort the new array. Example: $8 3 1 1 -> 7 4 2 -> 6 3 3 1 -> 5 4 2 2.$ You need to find what the array will be after $K$ operations. Contraints: - $1 \leq Ai$ - $sum(Ai) \leq 100$ - $K \leq 10^9$. I feel like this's gonna be a cycle detection problem. I've tested a few cases and I see that the cycle length is quite short. But I have no idea what the upperbound will be. It'd be great if someone can help me prove an upperbound for this, or give me a testcase where the cycle length is large. Thanks in advance !
A problem (maybe) relevant to cycle detection, this's gonna be a cycle detection problem. I've tested a few cases and I see that the cycle length, I feel like this's gonna be a cycle detection problem. I've tested a few cases and I see that the

Full text and comments »

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

99.
By CrushThichThangBanThan, history, 4 days ago, In English
DFS and BFS for Newbie # Understanding BFS and DFS: A Beginner's Guide to Graph Traversal ## 1. Introduction Have you ever wondered how a computer explores a maze, finds a path between two cities, or visits every connected point in a network? These problems often involve **Graph Traversal**. Graph traversal is the process of visiting vertices (also called nodes) in a graph while following its edges. Two of the most important graph traversal algorithms are: - **BFS (Breadth-First Search)** - **DFS (Depth-First Search)** Both algorithms help us explore graphs, but they work in different ways. In this blog, we will learn how BFS and DFS work, how to implement them in C++, and when to use each algorithm. --- ## 2. What Is a Graph? Before learning BFS and DFS, we need to understand what a graph is. A **graph** is a data structure consisting of: - **Vertices (Nodes):** The objects or points in the graph. - **Edges:** The connections between vertices. For example, consider t...
applications | Shortest paths, levels | Cycle detection, backtracking | | Time complexity | O(V + E) | O

Full text and comments »

100.
By silversapling, history, 5 years ago, In English
Codeforces False Plagiarism Matching for 1619A Hi all, I got a plagiarism match for my solution to problem [1619A](https://codeforces.me/problemset/problem/1619/A) (Round 762, Div.3). Here is my solution: [140025309](https://codeforces.me/contest/1619/submission/140025309) And here is the other guy ([Jaggar_2021](https://codeforces.me/profile/Jaggar_2021))'s code: [140079029](https://codeforces.me/contest/1619/submission/140079029) I don't know the other person and I have never seen his account before. This was our conversation after the false plagiarism detection: ![ ](/predownloaded/3e/c5/3ec56590c7f71ac3b4797cfe7fd098a48ea086e6.png) I agree that the code is somewhat similar, but the problem was very easy (Div.3 A) and my solution simply involved breaking the original string in half (if the length was a multiple of 2) and comparing the two halves. This was the approach that most people would have thought of. Also my code has slight differences, like I have used one more else block and I have used a typedef ...
This was our conversation after the false plagiarism detection:

Full text and comments »

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

101.
By hall_of_shame2.0, 5 years ago, In English
Help save Codechef ! New Website **Community Based Plagiarism Identification.** [LINK](https://plagpolice.herokuapp.com/) Hello Codeforces, We all know that identifying plagiarism on coding platforms is a big issue, and no matter how great the plagiarism detection software is, this process needs some manual filtering. So, i came up with an idea, to allow community to keep itself clean. Now, normal users can report cases of plagiarism [here](https://plagpolice.herokuapp.com/submit) It will be manually verified by 20-30 high rated and reputed people. If the majority agrees that the codes are plagiarised, we will mark that report as positive. For each postive report, we are keeping track of users who have been accused of plagiarism, and we make a leaderboard out of it. Watch the [leaderboard](https://plagpolice.herokuapp.com/leaderboard) This is not the perfect way to get rid of cheaters, but we can get rid of those at least, who cheat to get top ranks. So, **Please go ahead and report the people...
matter how great the plagiarism detection software is, this process needs some manual filtering. So, the plagiarism detection software is, this process needs some manual filtering.

Full text and comments »

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

102.
By yusufazam, history, 19 months ago, In English
A Bold Step Against Cheating: Linking Codeforces Accounts with National ID In the ever-competitive world of online programming contests, platforms like Codeforces have become the battlegrounds for aspiring coders to prove their mettle. However, with great competition comes great temptation — and unfortunately, cheating continues to be a pressing issue. Despite various measures like plagiarism detection and community moderation, some cheaters find ways to bypass bans by creating new accounts. This not only undermines the integrity of the platform but also demoralizes genuine participants who invest hours into honing their skills. What if we take a bold step? Imagine a future where every Codeforces account is linked to a verifiable government-issued ID — such as a country’s national identity card. This would make it virtually impossible for a banned user to create a new account, ensuring that consequences are real and lasting. By connecting accounts to national identity, we introduce a layer of accountability that goes beyond email or phone verifica...
Despite various measures like plagiarism detection and community moderation, some cheaters find

Full text and comments »

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

103.
By PopCoder, history, 2 years ago, In English
Need Help Debugging a Solution for Cooperative game Game on Codeforces (TLE on Test Case 80) Hi codeforces :) I hope you're doing well! I'm currently working on a problem from Codeforces, and I'm facing some issues with my solution. Problem Statement can be found [here](https://codeforces.me/contest/1137/problem/D) I was doing USACO [silver](https://usaco.guide/silver/func-graphs?lang=cpp#example---cooperative-game) when i encountered it. My solution simply implements Floyd's cycle detection, where i use 0,1 as slow and fast pointer respectively and when the meet i use the remaining people (2,3,4,5,6,7,8,9) as the slow pointer and (0,1) as fast pointer. This should have queries less than 3(t+c) (I have calculated that). However this produces TLE on test case 80 (however the error shows query limit exceeded). When i compare it with the USACO solution it produces same output which runs fine. MY [solution](https://codeforces.me/contest/1137/submission/294979764) USACO [solution](https://usaco.guide/silver/func-graphs?lang=cpp#solution) , [submission](https://co...
cycle detection, where i use 0,1 as slow and fast pointer respectively and when the meet i use the, My solution simply implements Floyd's cycle detection, where i use 0,1 as slow and fast pointer

Full text and comments »

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

104.
By _Kee, history, 14 months ago, In English
Comment incorrectly blocked for "containing source code without markup" I wrote a comment that contains a lot of math (but without source code) and tried to post it, then I got the following message: !["The comment contains source code without markup."](/predownloaded/e0/5f/e05fbdd21ad76ea68f268a36be8e1ee17482ad14.png) The message window blocked me from posting a comment, and it was not possible to bypass the blocking, even though my post didn't contain any source code. I wasn't sure what part of my post causing this message to show up, so I ended up creating [a blog post](https://codeforces.me/blog/entry/147005) containing the message I originally wanted to post as a comment. I kind of understand the motivation of this message box, but detection of source code seems buggy, and it's inconvenient to not be able to bypass it when a comment without source code is incorrectly blocked. Admins, can you please fix this? Thanks!
to post as a comment. I kind of understand the motivation of this message box, butdetection of, I kind of understand the motivation of this message box, but detection of source code seems buggy

Full text and comments »

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

105.
By tinytroubles, history, 23 months ago, In English
Fighting for Fairness: Addressing Issues with Plagiarism Flags on Codeforces Hello Codeforces Community, Today, I want to address a broader issue that affects many participants on the platform: the challenges and consequences of plagiarism flags. While this discussion is inspired by my recent experience of being flagged (Solution ID: 297506801 for Problem 2049B in Round 994), my intention is to highlight the systemic implications rather than focus solely on my individual case. **The Bigger Picture** ---------------------- Plagiarism detection systems are essential for maintaining the integrity of competitive programming platforms. However, when these systems incorrectly flag innocent participants, the impact is severe and far-reaching. Here are some of the critical consequences: ### 1. Tarnished Reputation Being flagged as a cheater immediately casts doubt on one’s integrity. In the competitive programming community, where reputation is built on skill and fairness, such allegations can have lasting effects: Loss of Respect: Peers might assume guilt witho...
case. **The Bigger Picture** ---------------------- Plagiarism detection systems are essential

Full text and comments »

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

106.
By Recyclops, history, 5 years ago, In English
Community Participation for Combating Plagiarism in Contests. What I've observed over the few months that I've been a member here is that most of the people who participate in contests do it simply because they enjoy Competitive Programming; most of us aren't here to just inflate our ratings.<br/> What if we we could put a system in place that is based on 'trusted members' (like trusted participants, but a bit more strict) volunteering to personally inspect a few randomly assigned anonymous submissions and check and flag submissions for things such as code obfuscation which are easily able to get through today's Plagiarism Detection System.<br/><br/> Because there are tens of thousands of active members who would satisfy the above criteria, every member would have to scrutinize at most a couple of accepted solutions and so this system should be easy to scale. Because the entries would be anonymous and people would have no way of knowing which users' submissions they'll have to scrutinize next, the chances of concerted mob behavior to 'game' th...
assigned anonymous entries. Further, the Plag. Detection System could flag suspicious submissions, code obfuscation which are easily able to get through today's Plagiarism Detection System.

Full text and comments »

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

107.
By cheaters_busted, history, 7 years ago, In English
One more Cheater follows the Karan pathway It has not been long since one of the self boasted guys **Karan**'s cheating was revealed at Codeforces. Looks like this time it one of his disciples who is following the same path. The guy who has been caught red handed is [user:praveenojha33,2020-05-02] who keeps boasting of his programming skills at public groups. This time, I will present you two new cheaters of the community. One of them is [user:praveenojha33,2020-05-02] and the other is [user:mamme_hunter,2020-05-02] In yesterday's contest, [user:praveenojha33,2020-05-02] copied all the solutions from [user:mamme_hunter,2020-05-02]. [user:mamme_hunter,2020-05-02] cannot claim that the solutions were copied from ideone or from some other source, since both of them tend to know each other well, and have participated in team contests too. (Check [user:praveenojha33,2020-05-02]'s submission history to clarify). The doubt came up to my mind when [user:praveenojha33,2020-05-02]'s code appeared clumsy on the first look. So I...
not that lengthy. hence he knew template will save him from the detection. He just changed variable

Full text and comments »

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

108.
By old._.monk, history, 5 years ago, In English
Why cycle detection algorithm differs in directed and undirected graphs? I'm not able to grasp why the algorithms for cycle detection differ when graphs are directed or undirected. I found the two algorithms here [cp algorithms link](https://cp-algorithms.com/graph/finding-cycle.html) Found an explanation on [stackoverflow](https://stackoverflow.com/questions/10972028/finding-a-cycle-in-an-undirected-graph-vs-finding-one-in-a-directed-graph), but it's still unclear. Is there any counter-example?
Why cycle detection algorithm differs in directed and undirected graphs?, I'm not able to grasp why the algorithms for cycle detection differ when graphs are directed or

Full text and comments »

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

109.
By Damon_1, history, 4 years ago, In English
Just Reporting Some Cheaters (Repost) **Wanted to repost this because each one of them is candidate master now** ====================================================================== I am writing this to just report some cheaters I found in the latest round (#804). [user:aman_cod,2022-07-17], [user:bored_kid,2022-07-17], [user:Noob_coder_042003,2022-07-17], [user:1_2_3_4_5_9,2022-07-17] are the ones that have cheated. Have a look at the submissions of problem E from the contest Please look at the code in the main void and compare as they have obscured their code to avoid plagiarism detection. First, one to submit: 162806135 Then the second guy submits it in python: [submission:162804059] Then these two submitted the first code as it is but with a lot of unnecessary code: [submission:162802356], [submission:162804537] To confirm you could also match their other submission from the contest and will find the similar pattern described above and all four of them solved the 4 questions i.e., [A, B, C, E]. Pleas...
void and compare as they have obscured their code to avoid plagiarism detection .

Full text and comments »

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

110.
By albertuskelvin, 14 years ago, In English
LIGHT ROBOT DETECTOR (my problem creation) COPYRIGHT : ALBERTUS KELVIN (Jakarta,Indonesia) ================== in a mirror space there are N mini robots which are sent to develop a new robot's kingdom. Each robot has one light detector so if there is a light come or pass through this detector, the robot will be shown in the mirror. From the planet A, is sent a major robot which can detect some robots (N robots or less than N robots) with it's component namely light source which can be reflected in the mirror in that planet. The function of this major robot is to detect the location of the other robots. In this case what i mean as the light case is about the reflection in physics. Also we must use the rule : the coming angle must be same as the pass angle. INPUT The program is inputed by a single line contains two integers R and C, which show us about the row and column value respectively. Follow by R rows which each row contains C characters , where you may use '#' as the mirror, '.' as the free space of the pla...
IMPORTANT NOTE : That the major robot only can detect the mini robots by the leftdetection

Full text and comments »

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

111.
By Shaheer.Old, history, 22 months ago, In English
Need help for problem Problem: ================== There are two kings who wish to exchange messages in secret. However, they must rely on a single messenger to carry their words, and they do not trust him. Fearing that their messages might be intercepted or read, they must devise a method to communicate securely—one that ensures only they can understand each other while keeping their secrets hidden from prying eyes. <spoiler summary="Solution:"> King A and King B need to exchange messages in secret, but they must rely on a messenger they do not trust. To ensure their communication remains private, they devise a clever method using locks and keys: Securing the Key: King A takes a secure box and places a duplicate key inside. He locks the box with a different key that only he possesses. The locked box is then handed to the messenger and sent to King B. Tamper Detection: If the messenger attempts to open the box, King B will immediately know of his treachery. ...
. The locked box is then handed to the messenger and sent to King B. Tamper Detection

Full text and comments »

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

112.
By STROM_KRATOS, history, 20 months ago, In English
Addressing the Plagiarism Flag on My Submission Hello Codeforces Community, I recently encountered an issue where one of my submissions for problem 2085A of contest Round 1011 (Div. 2) was flagged for plagiarism. The message stated that my solution 311848281 significantly coincided with other submissions, leading to a potential rules violation. What Happened? I submitted my solution twice with the same code, which resulted in one of my submissions being flagged for plagiarism. I had no intention of violating the rules, and I was unaware that resubmitting the same code could trigger a plagiarism flag. My Stand I want to clarify that: The solution was entirely my own work. The similarity arose because I resubmitted the same code without any modifications. I did not share my code with anyone, nor did I copy it from another source. Learning from This Incident I now understand that: Resubmitting the same code can lead to unintended plagiarism flags. Using public IDEs (such as Ideone with default public...
Codeforces' plagiarism detection system is strict, and even unintentional coincidences can lead to

Full text and comments »

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

113.
By delwinshibuj, history, 5 months ago, In English
Is Cheaters getting Bannned? The latest **Codeforces Round 1105 (Div. 2)** felt much harder than the usual Div. 2 contests, especially for beginners. But that's not what I actually wanted to talk about. Lately, I've been noticing a lot of brand-new accounts reaching **Pupil** or even **Expert** within just two or three rated contests. Of course, I know that some people are genuinely strong programmers or are using alternate accounts, so a fast rating increase alone doesn't prove anything. What worries me is that AI has become so accessible now. It feels like some people might be using it during rated contests, and if that's happening, it's unfair to everyone who is participating honestly. Even a few such accounts can significantly affect the standings and the rating changes of genuine participants. For example, I came across accounts like **pranav.devvv** and **mo__om** that climbed very quickly. I'm **not accusing these users of cheating**, since I don't have proof. I'm only mentioning them as examples o...
So my question is: **Is Codeforces planning to improve the detection of AI-assisted cheating or

Full text and comments »

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

114.
By MikeMirzayanov, history, 9 years ago, In English
Maintenance: Fixing Ratings for Plagiarism Detections by Mistake Hi! After the [contest:911] the system marked some solutions as plagiarism by mistake. It counts submitted twice solutions of the same participant as a plagiarism. Sorry about it. Day ago I rolled back punishment and judged such submissions as normal. Now I'm fixing the ratings. In 2-3 hours some rating changes will be reverted and applied back. The same with NY magic. Temporarily magic is unavailable now. It will be back soon! The changes will affect ~10 people. [user:MikeMirzayanov,2018-01-04]

Full text and comments »

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

115.
By blundermon, history, 4 months ago, In English
AetherCP — A Local-First Analytics Extension for Codeforces AetherCP — A Local-First Competitive Programming Companion Hello everyone! Over the past few months I've been working on a side project called AetherCP, a Chrome extension built specifically for competitive programmers. The idea started from a simple problem. Most existing tools can tell you how many problems you've solved, but they don't really help you understand your practice habits. So I decided to build something focused on practice analytics rather than only submission counts. Features Automatic timer while solving problems 5-minute idle detection Daily productivity analytics Full-year activity heatmap Topic-wise solved problem analysis Rating distribution charts Recent practice history VS Code Competitive Companion integration Local-first storage (no mandatory account) Everything runs locally inside the browser, so your practice data stays on your own machine. Why I built it I wanted something that could answer questions like: Which topics ...
Features Automatic timer while solving problems 5-minute idle detection Daily productivity

Full text and comments »

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

116.
By iamdumb, history, 11 years ago, In English
cycle detection in graph. Hello everyone,Can you assist me ? I want code(c++) for cycle detection in graph using recursive dfs.I know there are many resources available out there but either they are not well explained or too Hi-fi for me.It would be best if you can add some comments if possible. P.S : I know union find Data structure but still I would like to know some more application of dfs.Please help me in this regard
cycle detection in graph., Hello everyone,Can you assist me ? I want code(c++) for cycle detection in graph using recursive

Full text and comments »

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

117.
By bluemmb, history, 11 years ago, In English
Cheating Ring Invitation Email I got this email some hours ago : Title : Codeforces , From : Penny Zhang <[email protected]> _Hello all,_ __ _If you're interested in exchanging solutions to Codeforces (and maybe even TopCoder) problems in-contest, reply to let me know and I'll explain the system in more detail. The main goal of the system is to prevent leeching (receiving solutions, but not giving), and to prevent detection (altering code). I'm expecting a final ring of size 4-8. I suggest you make a new email account for this to maintain anonymity; use a proxy if you want to take it a step farther. Ideally, no one in the ring should know a single other person._ __ _Quick note: This setup will not be ready by the next contest, which is in less than 12 hours. I hope to be ready for round 321 (in several days), though._ __ _Again, reply with "I'm interested" using an alternate email account (preferably), and I'll include you in a group email._ __ _Thank you all,_ _pzhang_ ...........................
detection (altering code). I'm expecting a final ring of size 4-8. I suggest you make a new email

Full text and comments »

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

118.
By beegeepee, history, 5 years ago, In English
Automation in Network Security INTRODUCTION ------------------ Automation is a trending topic and branch in every field in IT whether it's AI , Networking , Weather Forecasting , Telemetry , ReInforcement Learning or Time Travel Ideas every where we see scope of Automation . So My first blog in [codeforces](https://codeforces.com) is about Automation in Network Security . Let's get deep into it . Network Security ------------------ Network Security is a Security of any end device or hidden device from unknown and malicious transfer or requests and response or any malicious file . We use Bare Metal Firewall , Checkpoint , Web Application Firewall , IDS (Intrusion Detection System) and IPS (Intrusion Protection System) to protect a Network , a Network is a interconnection of end systems with Routers , Switches , Hubs , Firewalls , Checkpoints , Cloud and many devices . So if we are in such a dense environment of connected devices we can get any traffic (malicious traffic) from any where and hence we need so...
Bare Metal Firewall , Checkpoint , Web Application Firewall , IDS (Intrusion Detection System) and IPS

Full text and comments »

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

119.
By raushnn, history, 5 years ago, In English
Wrong plagiarism detection I recently got a message that my solution coincide with some solution(more than one). But in actual only template were same. Now cf is detecting plagiarism in template or what? My [submission](https://codeforces.me/contest/1660/submission/151568699) Which coincides with [Submission](https://codeforces.me/contest/1660/submission/151566978) if you can see, actual code is different and only template is same. I urge [user:MikeMirzayanov,2022-04-15] and moderator to revert back my rating. Thank you.
Wrong plagiarism detection

Full text and comments »

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

120.
By root85, 15 years ago, In English
Spammers in private mail? <p></p><div>Just got this message in my private CF inbox. Should we consider spam detection already? Maybe just a simple option in profile "Don't receive messages from non-rated members"?</div><div><div><br></div><div><br></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>***@yahoo.com</div></div><div><div>&nbsp;Hello</div></div><div><div>I saw your profile today and it was so good to me.u know that i am interested to be a friend first.i also believe that coming to you will be a probability of meeting that very love that has been lacking in my entire life. please i will like you to contact me direct to my e-mail address,</div></div><div><div>(***@yahoo.com) i dont know the posebility of remaing in forum for long time,i will give you a full introduction of my self with my pictures ok. i will be waiting for your mail to my e-mail adsdress</div></div><div><div>(***@yahoo.com) as you know</div></div><div><div>there is ...
Just got this message in my private CF inbox. Should we consider spam detection already? Maybe

Full text and comments »

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

121.
By codeworker1, history, 5 weeks ago, In English
Request for Manual Review and Restoration of My Disabled Codeforces Account (Harsh_Singhal_01) Hello Codeforces Community and Administration, I am writing this blog to request a manual review of my Codeforces account, **Harsh_Singhal_01**, which is currently showing the message "The user is disabled." My Codeforces account is extremely important to me. I have invested considerable time and effort in competitive programming, solving problems, participating in contests, and improving my problem-solving skills. Unfortunately, my account was disabled, and I have not received any clear explanation regarding the reason for this action. I have already tried contacting the administration through email and direct messages. I also published an earlier request, but it has now been more than 10 days without any response. I completely respect Codeforces' rules and policies. If my account was disabled due to any suspicious activity or an automated detection error, I kindly request the administration to investigate the matter. If there is any specific issue or violation assoc...
suspicious activity or an automated detection error, I kindly request the administration to investigate the

Full text and comments »

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

122.
By dicfore, 6 years ago, In English
The cheating detection system sucks Now I appreciate the effort you guys are putting into preventing cheating. I cannot find a way to prove my innocence ,furthermore I don't think he copied my solution, since he solved both problems before me. I actually lost points in this contest, so it worked out in my favor this time. With that being said id like my minus points back and a guarantee that such mistake won't take place again. Your solution 113241228 for the problem 1509B significantly coincides with solutions anish_kr_jha/113203828, dicfore/113241228. Such a coincidence is a clear rules violation. Note that unintentional leakage is also a violation. For example, do not use ideone.com with the default settings (public access to your code). If you have conclusive evidence that a coincidence has occurred due to the use of a common source published before the competition, write a comment to post about the round with all the details. More information can be found at http://codeforces.me/blog/entry/8790 Your solut...
The cheating detection system sucks

Full text and comments »

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

123.
By anhkha2003, 4 years ago, In English
Cheating on Div2A, really? Please fix your algorithm, Mike! I don't know why we run the cheating detection system for Div2A. I got skipped because my submission in Div2A (anhkha2003/204572424) is similar to another submission (YES_wc/204572247). Look at the solving time, I got accepted at 4 mins and YES_wc got accepted at 3:50. How could I copy his code and made all those changes, such as cin and scanf, in like 10 seconds? Also, why do I copy Div2A when I can do Div2D? If I copied all codes for ABCD, the system should detect the coincidence for all 4 problems, not just problem A. Of course, I am not the only one who complains. There are many blogs and comments complaining these days, but nothing happens ([False Positive Anti-Cheat Detection](https://codeforces.me/blog/entry/116404), [My solutions was skipped](https://codeforces.me/blog/entry/116408)). Please fix your algorithm, or at least don't run it on Div2A [user:MikeMirzayanov,2023-05-13]. Thanks!
I don't know why we run the cheating detection system for Div2A. I got skipped because my

Full text and comments »

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

124.
By RodionGork, 14 years ago, translation, In English
Switching Detection Challenge by yandex.ru For ones who are not still aware of the currently running specific context by [yandex](http://www.yandex.com). [http://switchdetect.yandex.ru/en/](http://switchdetect.yandex.ru/en/) What is it? I've tried to participate year ago in similar contest. It resembles TopCoder Marathon, but with 17-gigabytes text file of input data. I was bewildered and annoyed since one pass of tests on the full dataset took several hours on my netbook. And however I am not smart enough in math, I think. Though I believe there are people who may find this contest quite interesting. Registration is opened till December 15 2012, money prizes assumed.
Switching Detection Challenge by yandex.ru, Switching Detection Challenge от Яндекса

Full text and comments »

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

125.
By _winprn, 5 years ago, In English
Evidence that I did not cheat during Round #733 Hi, This morning I got this message from System: [image](https://imgur.com/MW0OFCr) [122820569](https://codeforces.me/contest/1530/submission/122820569) [122800722](https://codeforces.me/contest/1530/submission/122800722) You can take a look at those two submissions, the only thing that coincides is the fastIO method that I took from him through his old code. For example, [this one](https://codeforces.me/contest/1550/submission/122498823), [and this one](https://codeforces.me/contest/1550/submission/122454882),... So, [user:MikeMirzayanov,2021-07-19], this probably a false detection of codeforces plagiarism system. Please resolve this problem and rejudge all my solutions in that round. Thank you for your great work. UPD: why I posted all of those things and they still not matter? I got derank back to pupil and the contest is not showing in my participated contest anymore. [user:MikeMirzayanov,2021-07-20] can you please resolve this problem for me?
So, [user:MikeMirzayanov,2021-07-19], this probably a false detection of codeforces plagiarism

Full text and comments »

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

126.
By SharvanCN1, history, 2 years ago, In English
False detection of Cheating.Codeforces Round 961 (Div. 2) I got this message from system:- Attention! Your solution 272114945 for the problem 1995B1 significantly coincides with solutions ayushi_agra12321/272095764, SharvanCN1/272114945. Such a coincidence is a clear rules violation. Note that unintentional leakage is also a violation. For example, do not use ideone.com with the default settings (public access to your code). If you have conclusive evidence that a coincidence has occurred due to the use of a common source published before the competition, write a comment to post about the round with all the details. More information can be found at http://codeforces.me/blog/entry/8790. Such violation of the rules may be the reason for blocking your account or other penalties. In case of repeated violations, your account may be blocked. I have generated the code using chatGPT, which I am sure is perfectly fine. Here is the link to my conversation with ChatGPT:- https://chatgpt.com/share/21a15704-0cda-45cb-a5ed-fbae157e94c0 All th...
False detection of Cheating.Codeforces Round 961 (Div. 2)

Full text and comments »

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

127.
By Amer-Oniza, history, 3 years ago, In English
Find connected Component in diricted graph in O(V+E) Finding strongly connected components with the cheriyan_mehlhorn_gabow algorithm in O ( V+E ) ================================================================================ - *Rstack:* We store nodes representing strongly connected components - **Ostack:** We store the nodes that we pass through during the dfs implementation - **The strongly connected component is open:** it is a component that includes an active contract - **The component connected to the force of the closure:** it is the component of each node in the state of completion - **The new component:** It is the component that we have not discovered yet, i.e. the contract is in new state ~~~~~ Init(G): for each v∈V do state[v]=new dfs_counter=0 O_stack=∅ R_stack=∅ Depth First Search( ) : Init(G) for each v ∈V do if ( state [ v ]=new )then dfs( v ) Dfs ( v ) : state [ v ]=active dfs_num [ v ]=dfs_counter dfs_counter=dfs_counter+1 O_stack .push...
, starting from the last node inserted, have a detection time greater than 1, we delete them from Rstack

Full text and comments »

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

128.
By caption, history, 12 months ago, In English
Please ban these cheaters from codeforces [submission:351008657] [submission:351044186] [user:BledDest,2025-12-04] [user:awoo,2025-12-04] [user:MikeMirzayanov,2025-12-04] I can’t believe this kind of hashing method still works. It’s disappointing to see participants abusing such techniques to disguise copied solutions, especially when the goal of the platform is to encourage learning and fair competition. The fact that these altered submissions can bypass basic similarity checks undermines the efforts of honest contestants. I respectfully ask the Codeforces team to investigate these cases more closely and consider strengthening detection measures to prevent similar issues in the future.
detection measures to prevent similar issues in the future.

Full text and comments »

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

129.
By introart, history, 4 years ago, In English
[Need Help] CSES - Planet Cycles I am getting TLE in this [CSES](https://cses.fi/problemset/task/1751) problem. <spoiler summary="My Approach"> I have used `Floyd Cycle Detection Algorithm` to find out the size of the cycle. Now the answer for all the nodes which are a part of the cycle is the `size of cycle`. And for the other nodes, ans is = `size_of_cycle + minimum_distance_of_a_node_which_is_a_part_of_cycle`. </spoiler> <spoiler summary="Problem"> This approach passed all the test cases except 4 (in which it is showing TLE). Here is the link to the code [Code](https://ideone.com/jfQlc9) I think the time complexity of my solution is $O(N)$. </spoiler> Can anyone please tell me why it is showing TLE?
I have used `Floyd Cycle Detection Algorithm` to find out the

Full text and comments »

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

130.
By rachitbit, history, 2 years ago, In English
Appeal for Rating Restoration Due to False Similarity Detection in Problem 2036D Dear Codeforces Team, I am writing to appeal the recent rating reduction for my solution to Problem 2036D, as flagged due to similarities with other submissions. I understand that this process is automated to maintain contest integrity, but I assure you that I approached the problem with original thinking and adhered to all competition guidelines. Solution Overview: In my code, I used a method to extract "layers" from the input grid, then count occurrences of a specific target string by iterating over each layer. This approach involved: Layer Extraction: By traversing the matrix edges from the outermost to the innermost layer. Counting Occurrences: Using string manipulation and a sliding window approach. Study Resources Referenced: Before the contest, I studied a few sources on matrix traversal techniques and string pattern matching, specifically: General matrix traversal methods to work with layers or spirals. Sliding window technique for string matching from standard t...
Appeal for Rating Restoration Due to False Similarity Detection in Problem 2036D

Full text and comments »

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

131.
By ayush29azad, history, 5 years ago, In English
Codeforces Round #743 (Div. 2) ,Problem C Yesterday 's contest had some very good problems , unfortunately, it became unrated. Problem Link : https://codeforces.me/contest/1573/problem/C The problem is based on standard topological sort Prerequisite problem . If the cycle was found in the graph I printed -1 as the answer. else I found the topical sort of all the chapters , using cycle detection + DFS + queue. After finding the topological ordering of chapters (stored in a queue a ->b->c->d.... )how do I count the number of times I will have to read the book/number of passes required ??? Please help !!!
else I found the topical sort of all the chapters , using cycle detection + DFS + queue.

Full text and comments »

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

132.
By MedoN11, history, 11 years ago, In English
Detecting cycles in a Directed Graph using BFS? Yes, I know there is a simple detection algorithm using DFS, but assume for a certain application, I'm interesting in doing via breadth first search traversal, is it possible to do so? I've only seen confirmations about that on quora but without psuedo code or any details. What is the most efficient way to do so? and if possible, can someone please supply a code? ( A simple short pseudo code is enough). Thanks.
Yes, I know there is a simple detection algorithm using DFS, but assume for a certain application

Full text and comments »

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

133.
By ssavi, history, 11 years ago, In English
Want to Know about Cheat Detection Hi CF Authority . I want to know about Cheat Detection . I know I'll get some Negative Vote for this Entry . At today's Contest . I have solved two Problems in time ... My Codes are identical to another user's Code . Because that user collect the Code from me ( And why do I care what if he/she has done with my Solution .CZ I have solved myself. ).. .. And submit & Also that user solved one Extra Problem .... Unfortunately I will not be able to Do this . CF authority can check my Submission time & my identical's submission ( CF authority I won't reveal this name because you know about my Identical ") . I just want to know why my submissions skipped ??? Why I would get a Penalty of Ratings . Everyone do contest here to learn, train & grow up their Ratings . What was my mistake ?
Want to Know about Cheat Detection, Hi CF Authority . I want to know about Cheat Detection . I know I'll get some Negative Vote for

Full text and comments »

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

134.
By hereicomewf, 12 years ago, In English
WA on this graph problem? Problem [Link](http://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=2031) [My solution](http://ideone.com/V2Wxgs) My approach: I applied Binary search on Mean(i.e answer to be found) and assigned weight of each edge equal to [Val-Mid] (Val is the value of each egde in the initial graph and Mid is the present Value of Mean during the binary search). For each Mid in binary search I applied Bellman ford to check if any negative value cycle exists. I am constantly getting WA.(i even tried floyd for negative cycle detection). Any help is appreciated.
. I am constantly getting WA.(i even tried floyd for negative cycle detection).

Full text and comments »

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

135.
By aman_naughty, history, 8 years ago, In English
Cycle Detection Doubt Is this code to detect cycle in an undirected graph correct. I have run it on a few test cases and it seems good . Can someone from the community verify it. code: <spoiler summary="code"> // p is parent // s is source // adj is adjacency list representation of graph // path is to store cycle and is a set // ch is children/neighbor of s; bool dfs(ll s,ll p) { visited[s]=true; for(auto ch:adj[s]) { if(ch!=p&&visited[ch]) { path.insert(ch); return true; } if(!visited[ch]) { if(dfs(ch,s)) { path.insert(ch); return true; } } } return false; } </spoiler>
Cycle Detection Doubt

Full text and comments »

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