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 Geothermal, history, 3 years ago, In English
Four Proposals Regarding FSTs While I very much enjoy Codeforces rounds overall, FSTs are by far my least favorite part of the Codeforces contest format. There are two reasons I dislike contests with weak pretests. The first is stylistic: I don't care very much about penalizing people who don't rigorously prove their solutions before submitting (which is the main justification for having weak pretests) and I think it's essentially impossible to FST these solutions without more frequently FSTing contestants who make minor mistakes in their code. (The vast majority of my FSTs are due to this sort of minor glitch rather than an error in the underlying idea). The second is that FSTs introduce an element of hidden information to Codeforces rounds. During a contest, you have no way of knowing whether the authors have written strong pretests. If you act as though the pretests are weak, you will be at a disadvantage if pretests are actually strong (because if you knew pretests are strong, you could have e.g. submit...
essentially impossible to FST these solutions without more frequently FSTing contestants who make minor

Full text and comments »

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

2.
By AquaMoon, history, 5 years ago, In English
Codeforces Round #732 Hello, Codeforces! I'm glad to invite you to [contest:1545] and [contest:1546], which will be held on [contest_time:1545]. **Note the unusual start time of the round.** The round will be rated for both divisions. Each division will have **6 problems** and **2.5 hours** to solve them. There may or may not be an interactive problem, so I suggest you should read the [guide for interactive problems](https://codeforces.me/blog/entry/45307). All problems were written and prepared by [user:CoupDeGrace,2021-07-02], [user:kuangbin,2021-07-02], [user:mejiamejia,2021-07-02], [user:Heltion,2021-07-02], [user:Melacau,2021-07-02], [user:Nanako,2021-07-02], [user:GOATWU,2021-07-02], [user:Cirno_9baka,2021-07-02], [user:Suiseiseki,2021-07-02], [user:ODT,2021-07-02], [user:box,2021-07-03], [user:Ynoi,2021-07-02], [user:syh0313,2021-07-02], [user:wh0816,2021-07-02] and me. And thanks to [user:QAQAutoMaton,2021-07-02], [user:gamegame,2021-07-02], [user:starusc,2021-07-02], [user:interesting...
difficulty is more than expect.And the pretest is not strong, leading to FST for many people. I blamed, pretest is not strong, leading to FST for many people. I blamed myself sadly. So I must say sorry to

Full text and comments »

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

3.
By Geothermal, history, 7 years ago, In English
Remove Virtual Contestants from Contest Leaderboards As most of you are likely aware, cheating in virtual contests (typically by submitting prewritten or copied solutions in order to appear at the top of the leaderboard) is very common. Most recently, [user:wannabecandidatemaster,2020-05-28] submitted solutions to all problems in [this round](https://codeforces.me/contest/1358/standings) in order to take first place in the standings, and [user:bemandrei,2020-05-28] competed virtually in [this round](https://codeforces.me/contest/1360/standings) after competing in the round officially, and ended up in second place on the leaderboard. In response to the rise of VC cheating (as well as some other issues with the VC system I'll describe below), I'd like to make a simple proposal: **Remove all virtual participants from the contest leaderboards.** The one exception is that you should see your own name on leaderboards for contests you VCed (that is, virtual contestants should be visible only to themselves). Similarly, virtual participan...
, rather than just the pre-tests, so it is impossible for them to FST: if their solution fails a test, , so it is impossible for them to FST: if their solution fails a test not originally included in the

Full text and comments »

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

4.
By snowysecret, 5 years ago, In English
Editorial for Codeforces Round #761 (Div. 2) Thanks for participating, hope you enjoyed the problems! Implementations for the problems are chosen randomly among testers, and I made some changes to their codes (for example, deleted meaningless comment lines). Please do not hesitate to provide feedback in the comments, so I can improve in setting problems next time. **UPD**: Sorry but there is a checker bug in problem E. All submissions of problem E will be rejudged soon. **UPD2:** Rejudge done, the round remains rated. <spoiler summary="Statistics"> Number of FST for rated participants: - Problem A: $29$ - Problem B: $90$ - Problem C: $12$ - Problem D1: $4$ - Problem D2: $0$ - Problem E: $6$ Number of AK: $22$ Number of clarifications: $85$ </spoiler> [problem:1617A] <spoiler summary="Hint"> When is the lexicographically smallest permutation of $S$ (i.e. the sorted string) not the answer? </spoiler> <spoiler summary="Solution"> If there are no occurrences of `a`, `b` or `c` in $S$, ...
Number of FST for rated participants:

Full text and comments »

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

5.
By awoo, history, 6 years ago, translation, In English
Educational Codeforces Round 101 Editorial [problem:1469A] Idea: [user:BledDest,2020-12-29] <spoiler summary="Tutorial"> [tutorial:1469A] </spoiler> <spoiler summary="Solution 1 (BledDest)"> ~~~~~ t = int(input()) for i in range(t): s = input() if len(s) % 2 == 0 and s[0] != ')' and s[-1] != '(': print('YES') else: print('NO') ~~~~~ </spoiler> <spoiler summary="Solution 2 (BledDest)"> ~~~~~ t = int(input()) for i in range(t): s = input() n = len(s) a = [s[i] for i in range(n)] cnt = n // 2 - 1 for j in range(n): if a[j] == '?': if cnt > 0: cnt -= 1 a[j] = '(' else: a[j] = ')' bal = 0 minbal = 0 for j in range(n): if a[j] == '(': bal += 1 else: bal -= 1 minbal = min(bal, minbal) print('YES' if bal == 0 and minbal >= 0 else 'NO') ~~~~~ </spoiler> [problem:1469B] Idea: [user:Bled...
); ps.resize(4 * nn); upd(1, 0, nn, 0, 1, 1); int fst = 0; int ans = INF; forn(i, n){ while (get, ); upd(1, 0, nn, 0, 1, 1); int fst = 0; int ans = INF; forn(i, n){ while (get(1, 0, nn, 0,fst, , 0, nn, 0, 1, 1); int fst = 0; int ans = INF; forn(i, n){ while (get(1, 0, nn, 0,fst + 1

Full text and comments »

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

6.
By ACGN, 5 years ago, In English
What if tourist goes rainboy mode? (Simulation) DISCLAIMER: NO TOURISTS AND RAINBOYS WERE PINGED Ah yes, two names that most people on Codeforces have heard -- <b>t<span style="color:red;">ourist</span></b> and <b><span style="color:purple;">rainboy</span></b>, one known as the CP Legend, and one as the user who does everything reverse. Such a great idea to put them together &mdash; a hypothetical user with the same ability as <b>t<span style="color:red;">ourist</span></b>, and solves problems the <b><span style="color:purple;">rainboy</span></b> way. _For those unaware of the "rainboy way", it means solving the problems in reverse order. In particular, if he cannot solve the final problem, he solves no problems in the contest._ Unfortunately, <b><span style="color:purple;">rainboy</span></b> had not yet reached red, peaking at 2398 rating. How far can this user go? We shall simulate this user through all the contests that tourist and rainboy took part in comparably, which adds up to 60 contests from [contest:745] to [cont...
/d1e0b42f391f09ff06a2ad73e11d36695f1d5fe8.png) Note: for [contest:757], tourist/turingboy got aFST. Will he be, Note: for [contest:757], tourist/turingboy got a FST.

Full text and comments »

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

7.
By BrayanD, history, 5 years ago, In English
Editorial of Codeforces Round #768 ### [problem:1631A] Author: [user:humbertoyusta,2022-01-27] <spoiler summary="Hint 1"> Think about how $max(a_1, a_2, ..., a_n, b_1, b_2, ..., b_n)$ will contribute to the answer. </spoiler> <spoiler summary="Hint 2"> The maximum of one array is always $max(a_1, a_2, ..., a_n, b_1, b_2, ..., b_n)$. How should you minimize then? </spoiler> <spoiler summary="Solution"> Let $m_1 = \max(a_1, a_2, ..., a_n, b_1, b_2, ..., b_n)$. The answer will always be $m_1 \cdot m_2$ where $m_2$ is the maximum of the array that does not contain $m_1$. Since $m_1$ is fixed, the problem can be reduced to minimize $m_2$, that is, minimize the maximum of the array that does not contain the global maximum. WLOG assume that the global maximum will be in the array $b$, we can swap elements at each index $x$ such that $a_x > b_x$, ending with $a_i \leq b_i$ for all $i$. It can be shown that the maximum of array $a$ is minimized in this way. Time complexity: $O(n)$ <spoiler ...
,r,x,y) ); } }; int main(){ int n; cin >> n; vector a(n), fst(n, vector a(n), fst(n,-1), lst(n,-1); for(int i=0; i> a[i, vector> segments; for(int i=0; ifst[i] != -1

Full text and comments »

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

8.
By zltzlt, history, 3 years ago, In English
Codeforces Round 949 (Div. 2) Editorial Thank you for participating! Sorry for being much harder than usual Div. 2 :( But we still hope you find some of our problems interesting. <spoiler summary="Rating predictions (Inspired by sum's editorial)"> It seems like a joke now... | Person | A | B | C | D | E | F | | :-----------: | :-----------: | :-----------: | :-----------: | :-----------: | :-----------: | :-----------: | | [user: zltzlt, 2024-5-31] | 800 | 1400 | 1600 | 2000 | 2300 | 2800 | | [user: small_peter, 2024-5-31] | 800 | 1400 | 1700 | 1600 | | | | [user: WRuperD, 2024-5-31] | 800 | 1300 | 1600 | 2000 | | 2800 | | [user: yinhee, 2024-5-31] | 800 | 1000 | 1500 | 2100 | 2200 | 2700 | | [user: sinsop90, 2024-5-31] | 1000 | 1300 | 1500 | 2000 | 2200 | | | [user: Yujiahe,2024-05-28] | 800 | 1100 | 1600 | 1900 | | 2700 | | [user: CharlieV, 2024-5-31] | | | | 2400 | 2500 | 3000 | | [user: JWRuixi, 2024-5-31] | | | | 1800 | | | | [user: Edwin__VanCleef, 2024-5-31] | | | 1600 | 1800 | | | [u...
> 0) { auto it = S.insert(mkp(a[j].x, j)).fst; if (it != S.begin()) { int k = prev(it, ~~~~~ #include #define pb emplace_back #define fst first #define scd second

Full text and comments »

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

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

Full text and comments »

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

10.
By orz, history, 3 years ago, In English
C++20 is back In contests and in the custom invocation, after a pause, one can again find GNU G++20 64-bit. However, the [slowdown issue](https://codeforces.me/blog/entry/126654) because of which the language disappeared persists, there are still snippets of code that can slow down the execution on Codeforces servers by a factor of 100 or so. So what is the official position of Codeforces headquarters and of our community on that? 1. Are there general methods of constructing testcases that can exploit this GCC/Windows bug and therefore slow down solutions (like there are [anti-hash tests](https://codeforces.me/blog/entry/62393) for solutions using `unordered_set`)? Are there methods that slow down both contest mode and custom invocation mode (since [submission:249807302] is only slow in the contest mode whereas [submission:253289473] is only slow in the custom invocation)? 2. If so, should we expect such tests in future contests, will such methods be used during the test preparation in co...

Full text and comments »

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

11.
By AquaMoon, 4 years ago, In English
Polynomial Round 2022 (Div. 1 + Div. 2, Rated, Prizes!) Hello, Codeforces! <img alt="Polynomial" src="https://codeforces.me/predownloaded/31/39/3139af7f9a6628da7d4b7ce4353a192cf59ee3f5.png" style="float:right;height: 250px; margin: 10px; max-width:50%;"/> Winter holiday is coming! And we are excited to invite you to our third round, [contest:1774], which will be held on [contest_time:1774]. You are given **8 problems** and **2.5 hours** to solve them. All problems were written and prepared by [user:Ecrade_,2022-12-14], [user:Little09,2022-12-14], [user:ChthollyNotaSeniorious,2022-12-14], [user:DataStructures,2022-12-14], [user:Cirno_9baka,2022-12-14], [user:mejiamejia,2022-12-14] and me. And thanks to [user:dorijanlendvaj,2022-12-14], [user:gisp_zjz,2022-12-14], [user:gamegame,2022-12-14], [user:triple__a,2022-12-14], [user:Chenyu_Qiu,2022-12-14], [user:Suiseiseki,2022-07-25], [user:q-w-q-w-q,2022-12-14], [user:leukocyte,2022-12-14], [user:waaitg,2022-12-14], [user:Kubic,2022-12-14], [user:LHQing,2022-12-14], [user:zrmpaul...
everyone! We must apologize because the pretest of B is not strong, leading to FST for many people, when you find your B got FST, and that's all our fault, but because my birthday is coming, I intended, UPD2: Sorry to everyone! We must apologize because the pretest of B is not strong, leading toFST

Full text and comments »

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

12.
By vovuh, history, 7 years ago, In English
Codeforces Round #636 (Div. 3) Editorial [problem:1343A] Idea: [user:vovuh,2020-04-22] <spoiler summary="Tutorial"> [tutorial:1343A] </spoiler> <spoiler summary="Solution"> ~~~~~ #include <bits/stdc++.h> using namespace std; int main() { #ifdef _DEBUG freopen("input.txt", "r", stdin); // freopen("output.txt", "w", stdout); #endif int t; cin >> t; while (t--) { int n; cin >> n; for (int pw = 2; pw < 30; ++pw) { int val = (1 << pw) - 1; if (n % val == 0) { cerr << val << endl; cout << n / val << endl; break; } } } return 0; } ~~~~~ </spoiler> [problem:1343B] Idea: [user:vovuh,2020-04-22] <spoiler summary="Tutorial"> [tutorial:1343B] </spoiler> <spoiler summary="Solution"> ~~~~~ #include <bits/stdc++.h> using namespace std; int main() { #ifdef _DEBUG freopen("input.txt", "r", stdin); // freopen("output.txt", "w", stdout); #endif int t; cin >> t; while (t--) { int n; cin >> n; n /= 2; if (n &...
>> x; cur.insert(x); } segs.push_back(cur); } for (int fst = 1; fst <= n; ++fst, ) { int x; cin >> x; cur.insert(x); } segs.push_back(cur); } for (int fst

Full text and comments »

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

13.
By TooFast, history, 5 years ago, In English
I'm just a blue <p> Inspired by <a href="https://www.youtube.com/watch?v=tyeJ55o3El0">this video</a>. </p> <p> Dedicated to my fellow blues: </p> <p> I'm just a blue.<br /> Yes, I'm only a blue.<br /> And I'm sitting here observing my queue.<br /> Well, it's a long, long journey<br /> To be a candidate master.<br /> It's a long, long wait<br /> Before escape from disaster,<br /> But I know I'll be a purple some day<br /> At least I hope and pray that I do<br /> But today I am still just a blue.<br /> </p> <p> Gee, Blue,<br /> You certainly have a lot of patience and courage.<br /> </p> <p> Well, I got this far.<br /> When I started I wasn't even a blue<br /> I was just a gray<br /> Some folks back home decided they wanted a purple son<br /> So they called their gang on WhatsApp, and they said<br /> You're right, there oughta be a purple.<br /> Then he sat down<br /> And wrote me out and introduced me to Codeforces.<br /> And I became a blue, and I'll remain a bl...
Yes, that's called an FST. If I fail system tests I have to go back to practice , still remain a blue? Yes, that's called an FST. If I fail system tests

Full text and comments »

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

14.
By zltzlt, history, 2 years ago, In English
Codeforces Round 968 (Div. 2) Editorial Thank you for your participation! <spoiler summary="Rating Predictions"> | Person | A | B | C | D1 | D2 | E1 | E2 | F | | :----------: | :----------: | :----------: | :----------: | :----------: | :----------: | :----------: | :----------: | :----------: | | [user: zltzlt, 2024-8-25] | 800 | 1100 | 1500 | 1300 | 2100 | 2100 | 2300 | 2500 | | [user: WRuperD, 2024-8-25] | 800 | 1200 | 1400 | 1800 | 2300 | 2400 | 2600 | 2800 | | [user: Ender32k, 2024-8-25] | 800 | 1100 | 1400 | 1900 | 2200 | | | | | [user: yinhee, 2024-8-25] | 900 | 1200 | 1600 | 1500 | 1900 | 2400 | 2500 | 2700 | | [user: Jryno1, 2024-8-25] | 800 | 1100 | 1500 | 1500 | 1800 | | | | | [user: yeminghan, 2024-8-25] | 800 | 900 | 1500 | 1400 | 1900 | 2700 | 2800 | | | [user: wutongchun, 2024-8-25] | 800 | 900 | 1300 | 1500 | 1900 | 2700 | | 3000 | | [user: small_peter, 2024-8-25] | 800 | 1200 | 1600 | 1900 | 1900 | | | | | [user: DisconnectedGraph, 2024-8-25] | 800 | 1200 | 1400 | 1700 | 2000 | 2000 | 2600 | | ...
); } for (int i = 1; i <= n; ++i) { ++a[s[i] - 'a'].fst; } sort(a, a + 26, greater, ; i <= n; ++i) { G[b[i].fst].pb(b[i].scd); } for (int u = k; ~u; --u) { f[u] = u; for, ~~~~~ #include #define pb emplace_back #define fst first #define scd second

Full text and comments »

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

15.
By Lyde, history, 3 years ago, In English
random quotes Oh hi! Welcome to 24 random quotes! I'm a competitive programmer, but I'm also pretty much a fan and often visit here to see some recent actions. I have a pretty unusual hobby: Collecting some sentences from blogs and comments and saving them as pictures, which I could use later for memes. Later I realized that I couldn't use it that much and after 4 years, it became a collection of well, memories. So I had the idea of sharing some of it with you guys for nostalgia! Most of them are light-hearted, and all of them are pretty memorable in my mind. If you are an experienced member here you might realize some of them, so I will make it a challenge: Guess where this is from! (No prizes sadly) The spoiler to the link of the comment/blog and my personal opinion (or s/p) will be right below the quote. Anyways, enjoy. > If newcomers find it confusing, then that's their bugaboo <spoiler summary="s/p"> [Link](https://codeforces.me/blog/entry/91480#comment-800196) Still rem...
complaining about tight TL if you FST [Link](https://codeforces.me/blog/entry, > Just never resubmit and write a comment complaining about tight TL if you FST

Full text and comments »

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

16.
By Bashca, 6 years ago, In English
Fenwick Tree generalization using Centroids Hello, Codeforces community! (Again) After asking many times, I realized that the central idea of this blog was not being understood, and I’ve finally decided to rewrite it. This time I want to be clearer and provide more details. This is not about the classic centroid decomposition, but I’ll try to keep it self-contained so the concept is understandable within this blog. --- ## What is a Centroid? In a tree, a centroid is a node that, when removed along with its incident edges, minimizes the size of the largest remaining connected component, see figure 1. <center> <img src="/predownloaded/03/3f/033f954d1d44920150b706caa12c0045f41bced4.png" alt="centroid of a tree and remaining components"> <br> <I>figure 1. Centroid of a tree and remaining components</i> </center> **Claim**: Let $W(v)$ be the size of the largest component after removing node $v$, and $n$ be the total number of nodes. If $v$ is a centroid, then: $$W(v) \le \frac{n}{2}$$ **Proof**: Supp...
) { int fst = (y-dist[rt][r])%x+x; if (fst >= x) fst -= x; if (x < len[v]) M[v][x][fst, [v], --r) if (ll <= lo[v] && hi[v] <= rr) { int fst = (y-dist[rt][r])%x+x; if ( fst

Full text and comments »

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

17.
By BledDest, 2 years ago, In English
Educational Codeforces Round 172 — Editorial [problem:2042A] Idea: [user:BledDest,2024-12-03] <spoiler summary="Tutorial"> [tutorial:2042A] </spoiler> <spoiler summary="Solution (Neon)"> ~~~~~ #include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; while (t--) { int n, k; cin >> n >> k; vector<int> a(n); for (auto& x : a) cin >> x; sort(a.begin(), a.end(), greater<int>()); int sum = 0; for (auto& x : a) { if (sum + x <= k) sum += x; else break; } cout << k - sum << '\n'; } } ~~~~~ </spoiler> [problem:2042B] Idea: [user:BledDest,2024-12-03] <spoiler summary="Tutorial"> [tutorial:2042B] </spoiler> <spoiler summary="Solution (BledDest)"> ~~~~~ #include<bits/stdc++.h> using namespace std; int main() { int t; scanf("%d", &t); for(int _ = 0; _ < t; _++) { int n; scanf("%d", &n); vector<int> c(n); for(int i = 0; i < n; i++) { ...
))]); } } pw.resize(n + 1); for (int i = 2; i <= n; ++i) pw[i] = pw[i / 2] + 1; } vector d, fst, int lca(int v, int u) { int l = fst[v], r = fst[u]; if (l > r) swap(l, r); ++r; int len, vector d, fst, par; vector> ord;, void init(int v, int p = -1) { if (fst[v] == -1) fst[v] = ord.size(); ord.push_back({ d[v], v

Full text and comments »

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

18.
By cip999, 5 years ago, In English
Editorial of Global Round 15 We hope you liked the problems! Before we go ahead with the editorial, let us make some general comments about this round. Problems A, B, C, D, E, F are "div 2" problems, while problems G, H, I are meant to be solved by Grandmasters. Overall, our goal was to provide a problemset that could be enjoyable for a wide range of participants and such that the winner could solve all the problems. There were three big "jumps" in the difficlty gaps between consecutive problems. Problems A and B are meant to be easy, many contestants have the skills and the techniques to attack them (and, maybe, to solve them). Problems C, D, E, F are gradually harder but the difficulty gap between C and F is not as large as usual (and this is reflected in the score distribution). The same holds for problem G, H, I; the difficulty gap between G and I is relatively small (but there is a big score difference because coding I is much harder). Sadly, we discovered 14 minutes into the round that problem I...
systems tests (or, maybe worse, pass pretests and get FST), tests must be **strong**. - In order to, , pass pretests and get FST), tests must be **strong**. - In order to test the generator, it is

Full text and comments »

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

19.
By windva, history, 3 years ago, In English
Codeforces Round 899 (Div. 2) Editorial [problem:1882A] <spoiler summary="Tutorial"> Greedy solution. Continue constructing $b$ as small as possible. If $a_{1} = 1$, $b_{1} = 2$. Else, $b_{1} = 1$. For $i \ge 2$, if $a_{i} = b_{i-1} + 1$, $b_{i} = b_{i-1} + 2$. Else, $b_{i} = b_{i-1} + 1$. $b_{n}$ calculated by this process is the answer. Time complexity is $\mathcal{O}(n)$ per test case. </spoiler> [problem:1882B] <spoiler summary="Something to say"> Sorry for everyone who got FSTs :( We tried our best to make pretest strong especially for this problem, but it wasn't enough. </spoiler> <spoiler summary="Hint 1"> Denote $T = S_{1} \cup S_{2} \cup \cdots \cup S_{n}$, then $S \subset T$. Since $S \neq T$, $i \in T$ and $i \notin S$ for some $i$. </spoiler> <spoiler summary="Hint 2"> Given an integer $i$, can you calculate the maximum size of $S$, such that $i \notin S$? </spoiler> <spoiler summary="Tutorial"> $i \in T$ and $i \notin S$ for some $i$. Here $1 \le i \le 50$. For fi...

Full text and comments »

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

20.
By Wandoka, history, 2 years ago, In English
How optimal is your CP setup? Click here and find it out! Recently I thought a lot about optimizing my setup. I don't think it is an important aspect of cp, as it barely affects the performance, but it is fun to think about nonetheless. In this blog, you will be able to determine whether you have an optimal setup or not. I will list the criteria and points you get for satisfying each one of them. In the end, I do the breakdown for different point ranges. I won't include things like **having a monitor** or **having an internet connection**, but I will be including basically everything else that comes to my mind. If you see something missing from the list, let me know in the comments, I will probably update my list then. This blog is mainly made for laughs, but if you are new, you will probably learn something new, even though **it won't help you to increase your rating**. ### You can compile and run your code. - $0$ points: I don't know how to run my code before submitting - $10$ points: I compile my code b...
FST ### You can run a debugger (in a form that is easy to use). - $0$ points: I cannot run a, Hacks exist, it is always better to get hacked (unless it is some anti-hash hack) than toFST

Full text and comments »

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

21.
By DNR, 2 years ago, In English
Dynamic Bitset Implementation #### Disclaimer: It might have bugs, don't send me death threats if you FST. I couldn't find a nice dynamic bitset template so I wrote one. It can be found [here](https://github.com/welcome-to-the-sunny-side/libra/blob/main/data/bitset.cpp). It has additional functionality as compared to `std::bitset` (you can answer many kinds of range queries on it, for example: "Find $k$-th set bit in range $[l, r]$). <spoiler summary="Some poor documentation"> #### General - It is used to store a 0-indexed boolean array. - Just like regular bitset, index 0 is the rightmost (sense of direction is important for `>>` and `<<`). - It uses $\lceil n/B \rceil$ blocks of size $B$ (which should be equal to bitwidth of $T$) to represent a boolean array of length $n$. Note that there may be some unused bits at the end of the last block. We will always have these unused bits set to 0. #### Functions For most functions, their use is obvious. For others: <spoiler summary="hel...
#### Disclaimer: It might have bugs, don't send me death threats if you FST.

Full text and comments »

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

22.
By tfg, history, 3 years ago, In English
A notorious coincidence (1854E) So one thing led to another and now I'm here to share my results. [Codeforces Round 889 (Div. 1)](https://codeforces.me/contest/1854) ------------------ As of writting this blog that's the most recent codeforces round and there was some controversy about some problems in it. I'm here to talk about a funny thing that happened involving its div1E. This story starts during the contest. <spoiler summary="You can skip this, it's just me talking about what happened to me before reaching E"> I was taking the contest and thinking about going to sleep after 1 hour without mindsolving anything but A1 but then I ended up solving CBA1. Without being able to notice that my solution to A1 was actually the intended solution to A2 and not having the faith in the gods of AC to just take the minimum of both constructions, I turned into E as I'm notoriously bad at interactive problems. </spoiler> Revisiting E after solving the other problems, I thought "maybe using a bunch of ones and hi...
lightly complaining while hoping for my solution to not FST about how I solved the problem with, ,2023-08-01]'s discord server lightly complaining while hoping for my solution to notFST about how I

Full text and comments »

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

23.
By MarcosK, 4 years ago, In English
2022-2023 ICPC Latin American Regional Programming Contest — Unofficial editorial Hi everyone! The [2022-2023 ICPC Latin America Regional Programming Contest](https://codeforces.me/gym/104252) was held last weekend. Given that (as far as I know) there is no official editorial for the problems, I decided to create one. Please notice that, given that these are not the official solutions, there can be typos/mistakes in the explanations. Feedback is always appreciated :) I would like to thank [user:lsantire,2023-03-22] for reviewing the editorial and providing valuable feedback. Don't hesitate to reach out to me if you have any questions/suggestions. Thank you! [problem:104252A] <spoiler summary="Hint"> Think in which case a person loses money. Remember we can choose the order in which events happen. </spoiler> <spoiler summary="Solution"> Let's fix a person $p$ and call $a$ and $b$ to the people $p$ will ask for money. It's easy to see that $p$ loses money if $a$, $b$ and $p$ are asked for money before $p$ requests $a$ or $b$ to pay. This ...
~~~~~ #include #define fst first #define snd second, (n) {} void push(int k, int s, int e){ if(!lazy[k])return; if(s+1==e) st[k].fst +=lazy[k, =q.front().fst, y=q.front().snd; q.pop();, STree st(q); fore(i,0,q) st.upd(qs[i].snd,qs[i].fst);, fore(i,0,n){ int now=st.get(a[i].fst); if(now!=-1) ans[now].pb(a[i].snd); }, fore(i,0,n){ vector am(n),now={i,v[i].fst,v[i].snd}; for(auto x:now){ memset(vis,0, int main(){FIN; int n; cin>>n; fore(i,0,n) cin>>v[i].fst>>v[i].snd, v[i]={v[i].snd,-v[i].fst*v, int q; cin>>q; fore(i,0,q) cin>>v[i].fst>>v[i].snd, v[i]={v[i].snd,-v[i].fst *v[i].snd}; doit(a, vector> aa; for(auto x:a){ while(SZ(s) && s.begin()->fst<=x.fst.fst){ int i, while(SZ(q)){ int now=q.top(); q.pop(); asd[now]=1; int x=pos[now].fst, y=pos[now].snd

Full text and comments »

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

24.
By oolimry, history, 5 years ago, In English
Suggestions about pretests and systests The purpose of pretests is so that the judge queue is not be overloaded during the contest. At first I thought this means that the judge never runs the systests until the end of the contest. However, after setting a few contests, I realize that the judge actually grades the systests during contest time, and as problemsetters we can even see in real time who will FST by the end of the contest. I assume this means that the grader prioritizes grading pretests and when it has "free time" it grades the systests. Of course, this is a good system to prevent the judge queue from clogging if it ever becomes too long. However, for the four contests I've got the chance to observe the grading process, the systests does not seem to have any backlog, and almost all have been graded except those which just came in. This is probably because almost everyone uses multitests now and because of that we can usually fit the systest into the pretest. Which brings me to my suggestion: if the grader is ...
time, and as problemsetters we can even see in real time who will FST by the end of the contest, will get know they FST after 1 minute and some will know they FST after 15 minutes? - How do we, I think the biggest benefit is preventing FST, which are not only very frustrating and to some

Full text and comments »

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

25.
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::...
based on the number of solves. Another thing was that FST for this problem were caused by testdata, the number of solves. Another thing was that FST for this problem were caused by testdata that

Full text and comments »

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

26.
By farmersrice, 7 years ago, In English
Small collection of interesting semi-algorithmic meme problems Today I want to share some interesting problems, that are very algorithm-like/logical in terms of thinking but are not really standard (kind of like some good ad-hoc question you can share with your friend). I'm not exactly sure what to call these, but they are very interesting to me and I hope they are interesting to you as well. **If you have something similar, please share.** For some people they are quickly solvable and for other people (like me lol) it is near impossible. I tried to make the problem statements as interesting as possible. Images and problem statements are mostly compiled by me. I will put up solutions in a day or two (viewing the solution kind of ruins the problem, much more than for ordinary Codeforces problems). Think! It's really much more fun than regular problems. Double promise! --------------------------- Two papers ================== _source: unknown_ You are playing a game against a magician! (You slept at 4 am last night. Who knows how ...

Full text and comments »

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

27.
By ajxu2, history, 4 years ago, In English
Java Pitfalls Recently, I participated in [contest:1828]. I was doing well, and in the last 5 minutes of the contest I solved problem D1, putting me at rank 200 and with CM performance. I was happy with myself until this happened: ![FST :(](/predownloaded/51/96/5196ba9179412af6f621833a2c984aed2bef4293.png) I saw that I got TLE on test case 13 and quickly realized what happened. I chose to use Java in this round, and I had somehow fallen in another one of Java's traps. Now, I've decided to compile a comprehensive list of these pitfalls so no one can FST to them again. (Hopefully after you see this you'll be convinced to just use C++.) **1. Array sorting** <spoiler summary="Problem"> `Arrays.sort` on an array of primitive types (`int`, `long`, `double`, etc.) can degrade to $O(N^2)$ on adversarial test cases. Note that this does not apply to `Collections.sort` or non-primitive types. </spoiler> <spoiler summary="Solution 1"> Apparently, this bug was fixed in Java 14. So on Codeforces...
comprehensive list of these pitfalls so no one can FST to them again. (Hopefully after you see this, until this happened: ![FST :(](/predownloaded/51/96/5196ba9179412af6f621833a2c984aed2bef4293.png, ![FST :(](/predownloaded/51/96/5196ba9179412af6f621833a2c984aed2bef4293.png)

Full text and comments »

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

28.
By wuhudsm, history, 3 years ago, In English
TheForces Round #16 (2^4-Forces) Editorial [A](https://codeforces.me/gym/104420/problem/A) <spoiler summary="code"> ``` #include <bits/stdc++.h> using namespace std; #define int long long void test_case() { int n; cin >> n; int a = floor(sqrt(n)); int b = (n + a - 1) / a; cout << a * 2 + b * 2 << '\n'; } int32_t main() { ios::sync_with_stdio(0); cin.tie(0); int t; cin >> t; while (t--) test_case(); } ``` </spoiler> <spoiler summary="solution"> If $n$ is a perfect square number, we find that the square dyeing scheme is always optimal.The answer is $4\sqrt{n}$. Otherwise,if $n-\lfloor \sqrt{n} \rfloor ^2 \leq \lfloor \sqrt{n} \rfloor$,the answer is $4\lfloor \sqrt{n} \rfloor+2$.Otherwise the answer is $4\lfloor \sqrt{n} \rfloor+4$. </spoiler> [B](https://codeforces.me/gym/104420/problem/B) <spoiler summary="code"> ``` #include<bits/stdc++.h> #define ll long long int using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int t; cin ...
(t--) { int n, x; cin >> n >> x; int fst = -1; int val = 0; for(int i = 29; i >= 0; i, ; int fst = -1; int val = 0; for(int i = 29; i >= 0; i--) { int a = (x >> i)&1; if

Full text and comments »

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

29.
By drdilyor, history, 3 years ago, In English
LAZY solution to problem D in Codeton round 8 + PYTHON solution Heyo! If you tried to solve problem D you have probably ended up trying to optimize this algorithm: <spoiler summary="C++ brute force"> ``` // input int n, k; cin >> n >> k; vector arr(n, vector<int>(n)); for (int i = 0; i < n;i++) for (int j = i; j < n; j++) cin >> arr[i][j]; vector dp(n+2, vector<int>()); dp[n] = dp[n+1] = {0}; for (int i = n-1; i >= 0; i--) { vector<int> cur; for (int j = i-1; j < n; j++) { // prepare to merge by adding a[i][j] vector<int> tomerge = dp[j+2]; if (j >= i) { for (int& x : tomerge) x += arr[i][j]; } vector<int> merged; merge(cur.begin(), cur.end(), tomerge.begin(), tomerge.end(), back_inserter(merged), greater()); cur = merged; } dp[i] = cur; } // output top k values ...
Data.Array.IO.Safe import Data.Array.IO.Internals readInt = fst . fromJust . B.readInt readInts, readInt = fst . fromJust . B.readInt readInts = map readInt . B.words putInts xs = do forM_ xs

Full text and comments »

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

30.
By McDic, history, 7 years ago, In English
Codeforces Round #633 Editorial Hello! I hope all of you enjoyed my contest! [tutorial:1339A] **Behind story of A**: - I tried to make the easiest Div2A ever. Will it work? :) [tutorial:1339B] **Behind story of B**: - I tried to block various heuristics. There were some critical heuristics which could pass so many cases. Fortunately I blocked them during testing period, so I hope there won't be much FST this time. [tutorial:1338A] **Behind story of D2C/D1A**: - Originally, there was a different problem for this position. But it used XOR. As I made new D2E/D1C problem, I threw old D2C/D1A away and put this. [tutorial:1338B] **Behind story of D2D/D1B**: - This problem is the most popular problem among testers. I also like this problem a lot. [tutorial:1338C] **Behind story of D2E/D1C**: - Feedback for this problem was too different by testers. - I made this problem by modifying [Number Discovery](https://codeforces.me/contest/1242/problem/D), which is one of my previous pr...
cases. Fortunately I blocked them during testing period, so I hope there won't be muchFST this, many cases. Fortunately I blocked them during testing period, so I hope there won't be muchFST this

Full text and comments »

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

31.
By shsh, history, 9 months ago, In English
HPI 2026 Editorial Thank you to everyone who attended this year's Harker Programming Invitational (HPI)! If you haven't already, we would really appreciate it if you filled out our [feedback form](https://forms.gle/opwQmMZPBtM7uWCt9) so we can make our contest even better next year. Also, [Novice](https://codeforces.me/gym/106410) and [Advanced](https://codeforces.me/gym/106409) problems have been uploaded to the Gym for upsolving. *Note:* Only solutions for the Advanced division are presented here, but solutions for Novice-only problems (Yash is Cross-Eyed, Repetition, Skills) can be provided upon request. ## Harker!! <spoiler summary="Solution"> Pretty straightforward: most languages have a standard library function for finding a given substring in a string, so you can just use that. </spoiler> <spoiler summary="Code (Team Aarav)"> ```python def solution(s): if "harker" in s: return 1 return 0 T = int(input()) for _ in range(T): s = input() prin...
(n + 1); int fst = rt[0] = k; // first ending index for (int i = 1; i <= n; i, (s.size()); vector> pos(26); int half = s.size() / 2, fst = 0; for (int i

Full text and comments »

Tutorial of HPI 2026 Advanced
Tutorial of HPI 2026 Novice
  • Vote: I like it
  • +28
  • Vote: I do not like it

32.
By hxu10, history, 2 years ago, In English
My Meta hacker cup experience I have participated in the Meta Hacker Cup for four consecutive years: 2021, 2022, 2023, and 2024. After receiving the T-shirt today, I would like to share my experiences and progress. **2021: A newbie want a T shirt** ![2021](https://github.com/user-attachments/assets/9abd55cc-3008-47ba-9399-a301a35bed51) This year, I was a complete newbie. The first two rounds lasted over 24 hours, which gave me more time to solve the problems, so my rank looked good. However, Round 2 was only 3 hours long, and it turned out to be a complete disaster for me. I got stuck on the first problem and doubted my solution repeatedly. Although I finally solved it 30 minutes before the contest ended, I had no time left for the other problems. In the end, I only solved one problem and ranked 2700+, which meant I didn’t even qualify for a T-shirt. I shared my result with some Meta HR representatives, but they didn’t respond. I applied to several positions at Meta, but my resume was rejected. I also...
Problem A would likely have a high FST rate. To ensure my solution was robust, I spent more than two, case. My judgment was that Problem A would likely have a high FST rate. To ensure my solution was

Full text and comments »

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

33.
By twoplusthree, 4 years ago, In English
Replay of JU BitFest Season One 2023 — Editorial Thank you for participating! We hope you enjoyed the problems! Links: - [**Contest Invitation link**](https://codeforces.me/contestInvitation/9c4ecdad63ab18b93d701d7012d9b52ed98a8224) - [**Group link**](https://codeforces.me/group/QV84qHXgrs) ## [A. Crush-ed](https://codeforces.me/gym/445869/problem/A) Author: [user:VS-Codes,2023-06-02] <spoiler summary="Tutorial"> The problem statement is simple enough, you can do all tasks up to difficulty $k$ every hour, and you need to maximize the time spent. However, you do need to perform a task every hour. So it is always optimal to start with the easiest task(lowest difficulty), do all tasks of that difficulty, and gradually move up. The answer (maximum time spent) is the total number of unique difficulties present in the array. </spoiler> <spoiler summary="Implementation"> ```c++ #include<bits/stdc++.h> #define int long long #define endl "\n" #define FastIO ios_base::sync_with_stdio(false); cin.tie(NULL); using n...
* r; return e&1 ? *this * r : r; } }; typedef vector vi; void FST(vi& a, bool inv, void FST(vi& a, bool inv) { for (int n = sz(a), step = 1; step < n; step *= 2) { for (int i

Full text and comments »

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

34.
By Geothermal, history, 6 years ago, In English
Codeforces Round #709 / Technocup 2021 Final Round - Unofficial Editorial As the editorial for round #709 has yet to be released, I thought I'd write up and post my solutions to the problems (with the exception of Div. 1 F). My code may not be especially useful, since it's a bit messier than necessary in some cases, but I'm hoping that the written explanations will be fairly helpful. Feel free to comment if you have any questions! --- #[2A &mdash; Prison Break](https://codeforces.me/contest/1484/problem/A) By simply playing around with a few small test cases, you might guess that the answer is always equal to $ab$. This intuition is correct; let's prove it formally. Consider a graph with $ab+1$ vertices including one vertex representing each cell of the prison, one vertex representing the outside world, and an edge for each wall of the prison connecting the two vertices on either side of the wall. Then, observe that a set of walls we can remove such that the outside world is accessible from every cell is equivalent to a set of edges that s...

Full text and comments »

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

35.
By mjhun, 10 years ago, In English
Is floating point arithmetic deterministic? A couple of days ago, I was trying to solve [problem:739E]. My approach was similar than that of the [editorial](http://codeforces.me/blog/entry/48582) <!--(with the difference that I sort by $p_k$ and then by $p_k-u_k$ to divide the array in groups )-->. My first submission ([submission:22589895]) gave WA. After a while struggling to find what was wrong, I looked the case that was failing. I tested it on my computer but it gave the right answer! After some debugging in Ideone (which gave the same answer as Codeforces), I realized that the problem was this: Somewhere in my code I insert into a set a `pair<double,int>` , where the double is the result of some operation (line 35). ~~~~~ ca.insert(mp((1-p[j].snd)*p[j].fst,j)); ~~~~~ During execution I may move that pair to another set called `wa`, and somewhere else I erase some value from one of these sets (lines 62-68). ~~~~~ if(wa.count(mp((1-p[j].snd)*p[j].fst,j))){ ... wa.erase(mp((1-p[j].snd)*p[j].fst,j)); } el...
So, the thing is: The operation `(1-p[j].snd)*p[j].fst` wasn't giving the same result as before, ~~~~~ ca.insert(mp((1-p[j].snd)*p[j].fst,j)); ~~~~~, ~~~~~ if(wa.count(mp((1-p[j].snd)*p[j].fst,j))){ ... wa.erase(mp((1-p[j].snd)*p[j].fst,j

Full text and comments »

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

36.
By _SADIEM_, history, 4 years ago, In English
< Day 11 - Advent of Code > HELP ### [**AoC 22**](https://adventofcode.com/2022) ####Day 11. Though that problem really took a while from me trying to get the inputs in a proper way helps in my solution, Still didn't manage to solve part 2 from it T_T. Knowing in part 2 the results will overflow in **C++ int64** . And in the actual solution for the samples, it were handled in some how "didn't manage to reach it", Any hints that might help me with that ? **My current code for part2** - Excuse my spaghetti code OcO <spoiler summary="Spoiler"> ~~~~~ struct monkey { int div, t, f, ins = 0; string op; }; ll update(string s, ll val) { stringstream ss(s); string x; ll val0 = val; bool add, mul; add = mul = 0; while (ss >> x) { if (x == "==" || x == "new") continue; add |= (x == "+"); mul |= (x == "*"); if (x[0] >= '0' && x[0] <= '9') val0 = stoi(x); } if (add) val += va...
== "Operation:"); ts |= (x == "Test:"); fst |= (x == "true:"); snd |= (x, ') mp1[id].div = stoi(x); else if (!snd && fst && x[0] >= '0' && x[0, , r = 10000; ll ans; bool fst, snd; fst = snd = 0; string s;, ; // divide,conditions,inspections int id = 0, r = 10000; ll ans; bool fst, snd; fst, if (fst && snd) id++, fst = snd = 0; }

Full text and comments »

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

37.
By djm03178, 2 years ago, In English
Everything about Codeforces scoring system This is a tutorial to how Codeforces scoring system works and some basic strategies about it. I will only explain about rated rounds here, but note that there are other types of scoring in unrated contests. Please do share this blog when you see questions about it. Scoring types ------------------ There are two different types of scoring system: - Standard (Div. 1 / Div. 2, Div. 1 + Div. 2) - Extended ICPC (Educational, Div. 3, Div. 4) The standard (this is not a formal name, but I don't know if one exists) scoring is Codeforces' own scoring system where each participant's rank is determined solely by their **final score**. On the other hand, extended ICPC literally uses the ICPC rule for calculating ranks, using **number of solved problems & penalty**, with slight modifications. Standard ------------------ Contests using this scoring system have pre-determined initial scores on each problem. By initial it means you get that score when you solve it in the $0$-th min...
"failed system test" (FST in short) or "hacked and locked". In both case the participant cannot, number: It means either "failed system test" (FST in short) or "hacked and locked". In both case the

Full text and comments »

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

38.
By codeonwort, 10 years ago, In English
Haskell Implementations for Round 379 (Div. 2) This post doesn't include a special or creative solution. It's about how to implement the solutions in the [editorial](http://codeforces.me/blog/entry/48397). This kind of post is unnecessary for C++ or Java, but it's Haskell and there's no one who completed the round with Haskell ;) I can't assure if my codes are in pure functional way or very efficient, but at least they were accepted. I hope it will be helpful. #### [problem:734A] Take the outcome as a `String` and count the number of 'A' and 'D' in it. It's very simple problem so I just traversed the string twice (two calls of `length . filter`.) If you want to do it 2x faster, you can use `partition` in `Data.List`. code: [submission:22282938] #### [problem:734B] Another simple problem. Here is the line that reads the input: ~~~~~ [k2, k3, k5, k6] <- (map read . words) `fmap` getLine :: IO [Integer] ~~~~~ If input is small like this, it has no problem. When you have to read a large number of integers, there...
= (map (fst . fromJust . BS8.readInt) . BS8.words) `fmap` BS.getLine :: IO [Int] getInt64s = (map, getInts = (map (fst . fromJust . BS8.readInt) . BS8.words) `fmap` BS.getLine :: IO [Int] getInt64s, parseInt = fst . fromJust . BS8.readInt

Full text and comments »

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

39.
By mambo, history, 13 months ago, In English
The great wall of india ![ ](https://cdn.discordapp.com/attachments/1420979847974486120/1428889042900222113/image.png?ex=68f4241f&is=68f2d29f&hm=eee1ece2189238f7740d9445fde948f3090840624b13e5b6b663ffe58157a30c&) Hi. See todays rounds ([contest:2162]) standings, front two pages, and 700-800 These are clearly bot accounts so my question is the following: what exactly does cloudflare contribute???? it blocks normal users, but when there's an actual botnet on the loose, they're all let through? Of course, naturally all these bots are utilizing LLM to solve as well, so please consider filtering for unrated that solved either a b c d f g, or a c d f g (because their b fst/hacked LOL), for an immediate purge (not including the normal plagiarism check) this nonnegligibly affects participants in the top 2000 of the contest, more than any other recent case of cheating note, f is much more difficult than e from my experience, so not being able to solve e, but solving f is a clear sign of LLM. I ...
that solved either a b c d f g, or a c d f g (because their b fst/hacked LOL), for an immediate, a b c d f g, or a c d f g (because their b fst/hacked LOL), for an immediate purge (not including

Full text and comments »

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

40.
By kpw29, history, 9 years ago, In English
My personal opinion on round #485 and making rounds (un)rated. **Disclaimer: this post contains my thoughts and suggestions. Feel free to discuss the topics in the comments** [TL;DR] Cool problems, issues, why not semi-rated. First of all, I'd like to congratulate [user:Um_nik,2018-05-30] for making the simultanously best and worst round I've seen in a while :) On a more serious note, I've really enjoyed solving your problems, in contrary to some yet-another-segment-tree-problems. Especially B was quite unusual when it comes to CF. However, there are some issues brought up by [user:geniucos,2018-05-30] [here](http://codeforces.me/blog/entry/59720?#comment-434232) which I completely agree with. Memory limit issues are really rare, and you usually realize that when you get MLE1 after submitting. Unfortunately, it was not possible today, so some participants were affected quite much (hello [user:Swistakk,2018-05-30]. Moreover, it wasn't only a case of MLE. "Incorrectly" solved problem B required using random generators. And now the stan...
participants passed systests without any problems, some got FST and some got errors on pretest1. My, problems, some got FST and some got errors on pretest1. My C submission fortunately passed pretests

Full text and comments »

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

41.
By hyforces, history, 3 years ago, In English
Teamscode Summer 2023 Editorial This is the editorial for the recent Teamscode Summer 2023 contest, and the problems are open for upsolving on this [gym](https://codeforces.me/gym/104520). Problems were prepared by [user:oursaco,2023-08-22], [user:dutin,2023-08-22], [user:thehunterjames,2023-08-22], [user:Bossologist,2023-08-22], [user:Esomer,2023-08-22], [user:danx,2023-08-22], [user:codicon,2023-08-22], [user:willy108,2023-08-22], and [user:hyforces,2023-08-22]. The problems were tested by [user:omeganot,2023-08-22], [user:codicon,2023-08-22], [user:cry,2023-08-22], [user:skye_,2023-08-22], [user:Litusiano_,2023-08-22], and [user:apple_method,2023-08-22]. ### [A. Who is cooking?](https://codeforces.me/gym/104520/problem/A) <spoiler summary="Solution"> danx </spoiler> <spoiler summary="Code"> ~~~~~ print("Esomer") ~~~~~ </spoiler> ### [B. Restaurant Sorting](https://codeforces.me/gym/104520/problem/B) <spoiler summary="Solution"> The answer is $n - $ the longest prefix of the array where a...
contribution[N],prefix[N]; int rin[N],par[N];// int dep[N];// int fst[N];// int ans=0; vector, [N],par[N];// int dep[N];// int fst[N];// int ans=0; vectorqq; int rd(int x){return (x

Full text and comments »

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

42.
By shishyando, 5 years ago, In English
Codeforces Round #792 (Div. 1 + Div. 2) Editorial We know about FST and we are really, really sorry about it. Even though we still hope that you liked the problems. <spoiler summary="A: Digit Minimization"> [problem:1684A] <spoiler summary="Editorial"> [tutorial:1684A] </spoiler> <spoiler summary="Implementation"> ~~~~~ #include <bits/stdc++.h> using namespace std; int main() { int T; cin >> T; while (T --> 0) { string n; cin >> n; if (n.size() == 2) { cout << n[1] << '\n'; } else { cout << *min_element(n.begin(), n.end()) << '\n'; } } return 0; } ~~~~~ </spoiler> </spoiler> <spoiler summary="B: Z mod X = C"> [problem:1684B] <spoiler summary="Editorial"> [tutorial:1684B] </spoiler> <spoiler summary="Implementation"> ~~~~~ #include <bits/stdc++.h> using namespace std; void solve() { int a, b, c; cin >> a >> b >> c; cout << a + b + c << " " << b + c << " " << c << "\n"; } int main()...
We know about FST and we are really, really sorry about it. Even though we still hope that you

Full text and comments »

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

43.
By wasif2397, history, 2 years ago, In English
MY APOLOGIES!!! Hello codeforces, In this blog, I wanna admit my cheating and bad behaviour in my competitive programming career on codeforces. With greed of rating and pressure of rating, I've cheated sometimes. My original account was [user:Wasif_Shahzad,2024-08-14]. It got skipped some times(4-5 ig). I was really sorry about my behaviour and decided to abandon that account. 1. In the last AtCoder Beginner Contest, I used ChatGPT to solve problem B in which I got stuck on in implementation. I didn't know the rule change of atcoder. I'm really sorry to atcoder community for that. I promise that I will never use chat GPT in ABCs. 2. Also Recently, I've got some public accussations under the announcemet blog of recent div. 3 contest. I've read the whole thread now and came to know some people think I cheated cuz I got hacked on E. There was some discussion on errichto discord server and people were saying I cheated YET again in yesterday's contest. I felt very bad and decided to leave the se...
legit forgot to write about the d2 incident where I got FST. I'm really serious about my behaviour. I, UPDATE: I legit forgot to write about the d2 incident where I got FST. I'm really serious about my

Full text and comments »

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

44.
By AksLolCoding, history, 13 months ago, In English
AC Isn't Enough A few days ago, I was looking through submissions from round 1062 (div. 4) to check for cheaters. I had the random idea to search for submissions made to a problem after AC. Surprisingly, several people got AC on a problem, and then submitted completely different code later (such as [user:kundan_kumar_v,2025-11-05] and [user:venkatsatish03,2025-11-05]). There were also some users who got AC and then submitted wrong solutions for some reason. The most interesting was [user:Mr_prince_sahu,2025-11-05], who spent 30 minutes programming 3 different solutions to A in 3 different languages. All of this made me wonder why would anyone do this? Now, I have submitted after AC before (in round 1011), but that was for preparing to solve F2. In round 1062 though, there were no multi-part questions. Maybe they were maybe trying to fix some bug and avoid FST, but that doesn't justify reimplementing one's solution in another language (and then not change any logic, which). EDIT: I got my answer ...
and avoid FST, but that doesn't justify reimplementing one's solution in another language (and then, . Maybe they were maybe trying to fix some bug and avoid FST, but that doesn't justify reimplementing

Full text and comments »

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

45.
By flyinggit, history, 19 months ago, In English
Haskell CF gotchas as a beginner I got into using CodeForces a few weeks ago, using Haskell for the last two competitions. I spent hours debugging three Haskell quirks in the competitions, so I hope this saves time for future Haskellers! 1. Do NOT use default `getContents` or `getLines` in CodeForces. I found that at least one of my solutions per competitions will TLE even if I have the perfect algorithm. The issue was not my algorithm, it was the I/O time. Switching to `getContents` or `getLines` from `Data.ByteString.Char8` fixed these issues. I usually do something like ```hs import qualified Data.ByteString.Char8 as BS main = do n <- fst . fromJust . BS.readInt <$> BS.getLine forM [1..n] $ \_ -> do input <- BS.getLine -- logic ``` 2. STRIP OUT `'\r'` from the end of the output of `Data.ByteString.Char8.getLine`. I spent hours trying to figure out why my one of my string-based algorithms worked on my laptop, but not CF. It turns out that newlines on CF are `\r\n`, while ...
Data.ByteString.Char8 as BS main = do n <- fst . fromJust . BS.readInt <$> BS.getLine forM [1..n, main = do n <- fst . fromJust . BS.readInt <$> BS.getLine forM [1..n] $ \_ -> do

Full text and comments »

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

46.
By pwned, 4 years ago, In English
Suggestion: Make Div2As easier Hi everyone! I've noticed that the difficulty of Div2As has slightly increased. In my opinion, this creates a skewed result, as people who intend to join may not be able to solve the first problem. Then, they may end up leaving without submitting anything. As a result, the difficulty rating of Div2As largely depends on the number of fakesolves; i.e. those who fail main tests or end up FSTing. A harder Div2A also gives a slight disadvantage to those who join and only get A, as the pool of people competing are the ones who are more likely to solve A. In addition, a hard Div2A scares lower rated coders away from Div2, which shouldn't be the case as the competition is also for them. Therefore, I humbly suggest problemsetters to make simpler Div2As for more inclusive participation.

Full text and comments »

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

47.
By XiangXunyi, history, 9 months ago, In English
1e18 + 1 == 1e18 in C++ As the title, `1e18 + 1 == 1e18` in C++. This is because the double type stores the first 53 binary bits of a number. So the number 1 will be ignored. And most of submissions which fst on test 13 of problem C of edu round 187 are for this reason. UPD: I collected some suggestions from the comments: 1. Use `1000000000000000001` (I do not suggest it because it is prone to errors.) 2. Use `(long long)(1e18) + 1` 3. Use `1e18L + 1` 4. Use `1'000'000'000'000'000'001LL`
binary bits of a number. So the number 1 will be ignored. And most of submissions whichfst on test, And most of submissions which fst on test 13 of problem C of edu round 187 are for this reason.

Full text and comments »

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

48.
By djm03178, 12 months ago, In English
What's the point of disabling "uphacks" for some problems? So recently I've been seeing that some rounds are disabling hacks during the round for 2A-2D. I don't know the exact reason for this, but I can assume that some people: - don't like to see FSTs and/or - think that getting points with hacks on easy problems is unfair I can see it reasonable. But the point is, **why are the hacks still disabled after the round?** I honestly don't see a good reason for this, and these problems are forever left with weak tests without a chance to add stronger tests. Just to think how many problems get hundreds of hacks on open hack rounds (even aside from the hash attacks), I highly doubt that all these problems' tests are always strong enough, especially when we force pretests=systests so that the number of tests can't be large for these easy problems.

Full text and comments »

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

49.
By AVdovin, history, 3 years ago, In English
What is wrong with system tests and hacks? Hello, Codeforces! First of all, I would like to emphasize, that I am writing this post not out of fury or disappointment, but I just want to verify, if there are anyone who share my POV. Yesterday [contest:1923] was held. And I liked it! Problems were very nice and interesting. But one thing happened, that is still on my mind. My [B](https://codeforces.me/contest/1923/problem/B) got [FST](https://codeforces.me/contest/1923/submission/247902606) (Failed System Tests). For those unfamiliar with this system, I'll explain it to you. When you send your code, during round it works on some relatively small tests set, after the contest is finished your last successful submission for each problem is retested on expended tests set (it also includes all successful hacks). This system exists to lessen delays in testing queue. In my mind the problem behind this system is that during the round you see if your code failed some test, and you can find an issue and fix it, but after the end of the...
[FST](https://codeforces.me/contest/1923/submission/247902606) (Failed System Tests). For those, happened, that is still on my mind. My [B](https://codeforces.me/contest/1923/problem/B) got [FST, that you successfully solved the problem during the contest, but it ended up being hacked/FST., In my case, i got FST caused by integer overflow, which is not quiet fair to my mind. No, it's

Full text and comments »

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

50.
By macaquedev, history, 21 month(s) ago, In English
Computation modulo p, and how to avoid getting hacked on it. ### Intro Addition modulo p is simple, just add the two numbers, then modulo the result. Multiplication is also simple &mdash; multiply then take modulo. However, subtraction cannot be done in this way. This caught out quite a few people in today's Educational round due to the weak pretests on problem C, and I wanted to make a blog about it so that hopefully this doesn't happen again. ### The pitfall Take this: [submission:306786744] submission for example. There were plenty that did exactly the same thing, but I just picked this one because it's relatively short. Specifically, let's look at the following line of code: ~~~~~ ans = (ans+one-onemain)%MOD; ~~~~~ You might think &mdash; what could possibly go wrong here? You're just adding and subtracting some numbers and taking modulo. Quite a lot as it turns out. The issue is that in C++, the modulo operator does not work well with negative numbers, and will just give you a negative remainder. This causes a problem becau...
REALLY unlucky like today, FST.

Full text and comments »

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

51.
By chromate00, 4 years ago, In English
Quick Guide: Python's 'isqrt' function On todays contest, at [problem:1737B], a lot of contestants were hacked or FSTed. This is due to the inaccurate nature of floating-point types. While I do think this happening on a B is not a good thing, but it happened anyways. So as we experienced a failure this time (myself a long time ago multiple times), we need to prepare for the next time it happens. My solution to this was **using Python's `isqrt` function**. It receives a non-negative integer, and returns $\lfloor \sqrt{x} \rfloor$. **It is guaranteed to return the accurate value**, so this is the perfect tool for the job. I read [this blog](https://codeforces.me/blog/entry/107717) as well, and his points are valid. I still thought telling people about the `isqrt` function would be a great addition to the community as well. Shoutout to [user:-is-this-fft-,2022-10-07] for writing that blog. Including this time, there will be many situations where there is a better tool for the job. It is a good idea to actively look for ...

Full text and comments »

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

52.
By Candidate_Master_2021, history, 6 years ago, In English
How to constructively respond to FST? What should a person do if he/she gets a failed system test on a CF Round. I want to know the constructive response. So, yesterday i noticed some high-rated coders getting FST in easy problems like A and D. So how do you work on that. I believe there are two possible scenario. 1. Huh! a FST ? Well, i'm high rated af so i can't be wrong. Its the contest maker, i am always right, i am doing everything right, not my fault 2. Oh shoot a FST ! I dont think i deserve to be high rated anymore, if i can't solve A then i think i deserve to be thrown at bottom of ranklist. I am good for nothing, RIP what should be the ideal (constructive) response for this?
How to constructively respond to FST?, constructive response. So, yesterday i noticed some high-rated coders getting FST in easy problems, 1. Huh! a FST ? Well, i'm high rated af so i can't be wrong. Its the contest maker, i am always, So, yesterday i noticed some high-rated coders getting FST in easy problems like A and D. So how do

Full text and comments »

53.
By gmyu.michael, history, 6 years ago, In English
USACO 2020 — 2021 December Contest, Platinum Problem 1. Sleeping Cows [to record the solution **for my own record** for easy understanding] Problem statement: http://usaco.org/index.php?page=viewproblem2&cpid=1068 dp[i, j, k] where - i-th barn, where the corresponding cows that fits is match[i] - out of match[i] cows, j of them are assigned to barn i+1 ... N - and flag = 0 means no mis-match cows / all cows are in barns, 1 = allow some cows to left behind so, each time we add a new barn (barn and cow are sorted low to high), we have an additional match[i] ... match[i-1] cow to assign. Let's take j from dp[i-1] and k from those now cows dp[i, j+k, f] += dp[i, j, f] * (probability of picking k out of match[i] ... match[i-1], which is a simple c(n,m) ) note that barn i is the largest, so it must be occupied unless all cows are assigned (i.e. f = 0). So, in above case - if we pick j from dp[i-1], and one of them landed at barn i, it is good, but the number of cow after barn i+1 is actually j+k-1 - if it does not land at barn i...
#define mp make_pair #define fst first #define snd second #define pb push_back #define sz(x, >> vpip; /// edge with weight typedef long long ll; #define mp make_pair #define fst

Full text and comments »

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

54.
By cfmaster, history, 7 years ago, In English
constant part of code Hello every body reading this blog! till now, Iv seen two types of users in codeforces : 1. the ones who use several defines and functions as the constant part of their code... (#define int long long, #define pair<int, int> pii, etc) 2. the ones who do not use defines and the same stuff above now for example [user:Benq,2020-02-04] is in the first type of users as you can see this part above all of his codes : //start ******************** #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef double db; typedef string str; typedef pair<int,int> pi; typedef pair<ll,ll> pl; typedef pair<ld,ld> pd; #define mp make_pair #define f first #define s second typedef vector<int> vi; typedef vector<ll> vl; typedef vector<ld> vd; typedef vector<str> vs; typedef vector<pi> vpi; typedef vector<pl> vpl; typedef vector<pd> vpd; #define sz(x) (int)x.size() #define all(x) begin(x), end(x) #define rall(...
vector bool fst = 1; for (const auto& a: x) pr(!fst?", ":"",a), fst = 0; pr, fst = 1; for (const auto& a: x) pr(!fst?", ":"",a), fst = 0; pr("}"); }

Full text and comments »

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

55.
By gmyu.michael, history, 6 years ago, In English
USACO 2020 December Contest, Platinum Problem 2. Spaceship [ **again, this is for my personal usage.** USACO solution is a little bit too difficult to understand, at least for me. The explanation below is easier to understand. ] - BTW, if anybody knows how to make a blog private, please write the instruction in the comment section. problem statement: http://usaco.org/index.php?page=viewproblem2&cpid=1069 dp(a,b,c) : number of ways from a -> b, the highest button used is upto c - first, after we press the button, we can stay at b, so dp(a,b,c) += dp(a,b,c-1) - or we go a -> r -> b with max button of c. In this case, between a->r, we find a point x with max button c-1. Then from x -> r the worse you can do is press button c between r -> b, since c-1 is reset and available, the worse we can do is press c-1 to a point y, then y->b use max button of c-1 then define dp1(a,r,c-1) is sum over all x, where x->r, dp(a,x,c-1) dp2(r,b,c-1) is sum over all y, where y->r, dp(y,b,c-1) - then dp(a,b,c) += sum o...
with weight typedef long long ll; #define mp make_pair #define fst first, #define mp make_pair #define fst first #define snd second #define pb push_back #define sz(x

Full text and comments »

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

56.
By 1e_9, history, 23 months ago, In English
Training Hey there we started lev2 training for our university students but it's opened for every one and currently we are pushing lev1 lev 1 . input ... conditions /* we are here*/ loops arrays string functions sheets : Assuit newcomers lev 2 STLS dynamic memory && iterators static range queries greedy binary search && two pointers /* currently we are here */ recursion bit masking number theory every 2 weeks we have new topic fst week >> topic &&sheet scnd >> upsolve and trainers solve general problems sheets : not prepared by me but better people this training maybe useful for Arab teens or even students in universities that don't have trainings we are not high rated people but we just help at these topics to join : https://chat.whatsapp.com/ERph06QEFZx88dwbAZE37Z our youtube : https://ww...
every 2 weeks we have new topic fst week >> topic &&sheet scnd

Full text and comments »

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

57.
By catalystgma, history, 7 years ago, In English
What to do? Last Sunday I was close to 1900, so I participated in the educational round. The problems were ok for me, but I made a stupid mistake on C (did brute force for intervals lower than some amount) and got FST (felt dizzy? Idk). My rating prediction went from +19 to -50. Today I said “ok, maybe I was nervous, I should participate”. Did awfully, -50, went through a lot of WAs to get AC on A/B/C. D was very awkward for me. My solutions look like spaghetti. I suck on greedy/constructive problems and combining both results in a disaster. I will take a 2 month break, but I need to know what I have to do in order to improve. Some DIV2s are great for me, while others make me question myself. 1) Should I solve greedy/constructive/math from here? Did some, not all https://codeforces.me/blog/entry/54526#comment-385354 2) Should I finish the 1800-1899 A2OJ ladder? Did almost half of it, learnt many things, but they were mainly related to DP/DS/Trees/Graphs, things I am relatively...
got FST (felt dizzy? Idk).

Full text and comments »

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

58.
By generic_placeholder_name, history, 5 years ago, In English
New coders: Stop making this simple mistake In this contest, while I was browsing through FST submissions, I encountered many TLEs on test 8 in B. Here are some examples: [submission:142848311], [submission:142836654]. The solutions appeared to be completely correct. What happened here? The problem was that these contestants used `memset` before every test. If you didn't know, **`memset(a, 0, sizeof(a))` is linear in the size of the array `a`**. This is why these contestant TLEd. Every testcase, they did $1000000$ unnecessary operations. The lesson here? Stop using `memset` to reset stuff when there are many testcases. Resetting by hand works just fine. Or know how `memset` actually works, so that you don't TLE.
In this contest, while I was browsing through FST submissions, I encountered many TLEs on test 8 in

Full text and comments »

59.
By Qualified, history, 6 years ago, In English
Debugging template help please! My debugging template is: ~~~~~ #define ts to_string string ts(char c) { return string(1, c); } string ts(bool b) { return b ? "true" : "false"; } string ts(const char* s) { return (string)s; } string ts(string s) { return s; } template<class A> string ts(complex<A> c) { stringstream ss; ss << c; return ss.str(); } string ts(vector<bool> v) { string res = "{"; for(int i = 0; i < si(v); ++i) res += char('0' + v[i]); res += "}"; return res; } template<size_t SZ> string ts(bitset<SZ> b) { string res = ""; for(int i = 0; i < SZ; ++i) res += char('0' + b[i]); return res; } template<class A, class B> string ts(pair<A,B> p); template<class T> string ts(T v) { bool fst = 1; string res = "{"; for (const auto& x: v) { if (!fst) res += ", "; fst = 0; res += ts(x); } res += "}"; return res; } template<class A, class B> string ts(pair<A,B> p) { return "(" + ts(p.f) + ", " + ts(p.s) + ")"; } void DBG() { cerr << "]" << endl; } template<class H, class......
; } template string ts(pair p); template string ts(T v) { bool fst, > string ts(pair p); template string ts(T v) { bool fst = 1; string res = "{"; for

Full text and comments »

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

60.
By macaquedev, history, 18 months ago, In English
To the several people who got TLE14 on yesterday's problem D... [user:Manoj_mk,2025-06-04] [user:phoenix_beast117,2025-06-04] [user:sukhbir0609,2025-06-04] [user:1091857051,2025-06-04] [user:cai_lian_2023,2025-06-04] [user:HARSHdeep1234,2025-06-04] (I think that's all of you) That was me. Hi, I guess. Or rather, it was you, submitting in an old version of Java, and using Arrays.sort(), that caused you to get hacked. Unfortunately, it's possible to make Arrays.sort() take O(n^2) time when sorting primitive data types &mdash; and that's because it ends up defaulting to quicksort, and if I use a certain script that I don't even understand properly, I can create an array specifically to cause quicksort to use the worst possible pivot at each iteration. That's why you all got hacked. If you don't want to be hacked or FST, use Collections.sort(). But also, why don't you just use the newer Java version?
iteration. That's why you all got hacked. If you don't want to be hacked or FST , use Collections.sort, If you don't want to be hacked or FST, use Collections.sort(). But also, why don't you just use the

Full text and comments »

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

61.
By MiyanoShiho, history, 5 years ago, In English
Same code but got TLE with GNU G++17 9.2.0(64 bit, msys2) I remember that once tourist got fst due to wrong compiler selected. This time I got the same problem when I was doing [463C](https://codeforces.me/contest/463/problem/C) I got accecpted with **GNU G++17 7.3.0**, but TLE using **same code** with **GNU G++17 9.2.0(64 bit, msys2)** The code is here ```cpp #include <bits/stdc++.h> using namespace std; #define rep(i, s, t) for (int i = (int)(s); i <= (int)(t); ++ i) #define deb(x) cout << #x << " = " << x << endl #define ll long long #define int long long const int N = 2e3 + 10; ll n, a[N][N]; ll l[N << 1], r[N << 1]; inline void solve() { scanf("%lld", &n); rep(i, 1, n) rep(j, 1, n) scanf("%lld", &a[i][j]), l[i + j] += a[i][j], r[n + i - j] += a[i][j]; int x1, x2, y1, y2, val1 = -1, val2 = -1; rep(i, 1, n) rep(j, 1, n) { int val = l[i + j] + r[n + i - j] - a[i][j]; if ((i + j) & 1) { if (val > val1) val1 = val, x1 = i, y1 = j; } else { if (...
I remember that once tourist got fst due to wrong compiler selected.

Full text and comments »

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

62.
By NinjaSenpai, history, 5 years ago, In English
You must read the contest rules thoroughly (my little incident) I would like to share my little incident or I should say disaster because I didn't read the **Codeforces Contest** rules completely. (https://codeforces.me/contest/1658/problem/D1) (https://codeforces.me/contest/1658/submission/151138415) The incident : I solved the problem on the 58th minute in the contest, and then solved the hard version at 109th minute , now as I did not know the rule , I submitted the same solution of D2 again in D1 as I had suffered FSTs in a recent contest. Although I was sure that it will pass , I saw no harm in submitting again <spoiler summary="The Rule"> If a contestant submits several times a problem's solution that passes all pretests, then the last solution is considered as the contestant's verified solution for this problem. All other solutions will be considered as unsuccessful attempts. </spoiler> And boom my rank fell down from around 270s to 500. <spoiler summary="My emotions"> This was my best performance and the moment I saw ...
isn't it unfair that a participant has to resubmit just to assure that his/her solution won'tFST, participant has to resubmit just to assure that his/her solution won't FST ?? I mean the participant, But I guess this would lead to participants doing tons of resubmissions just to ensureFST... In

Full text and comments »

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

63.
By notwashed, history, 2 years ago, In English
Interesting hacks or whatever In the last Div1 + Div2 contest, we saw some interesting FSTs, but nothing surprising with the interesting hack on Problem E in the last contest. Take a look at this exclusive mention in many submissions today: ![ ](https://i.imgur.com/AcNa4Pg.png) I wanted to talk about cheating, but that has become the new normal on this platform, so it's fine. In the last 40 minutes, the submissions rate for E and F were crazy. One of the most notable things I noticed in the most hacked solution of E was this exclusive mention of case work, which doesn’t really add anything to the solution, but what do I know. I can mention a very funny submission here : [276215681](https://codeforces.me/contest/2000/submission/276215681) (look at the bottom for fun) It’s not just that most of the E submissions I hovered over were just mirrors of the submission mentioned above. I don't know if Mike is aware of all this (though I think he is and may be trying to come up with something), but it has now ...

Full text and comments »

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

64.
By tokitsukaze, 4 years ago, In English
I have FST in the 5 of the last 7 contests In [contest:1679]: ![1679](/predownloaded/1d/a1/1da11cf6578bfd44cc358d0e18d67b5c33b10f52.png) In [contest:1684]: ![1684](/predownloaded/69/a3/69a3ba35abf737900679ad2e7a8f626ad7593251.png) In [contest:1681]: ![1681-1](/predownloaded/39/00/3900758c5f8f9ab1f7a4d2fd94c9173998f73dd4.png) ![1681-2](/predownloaded/ff/ff/ffff21ef1df62625f302876e1e933fda139944e6.png) In [contest:1691]: ![1691](/predownloaded/64/75/6475b8e39d397870661e76961a7a46c0912f531f.png) In [contest:1688]: ![1688](/predownloaded/a8/01/a801ebe2a17d0e392dbac5f83c8b7d580213e600.png) I've been in poor status recently, and it may continue... ![maomaochong](/predownloaded/a0/da/a0da8cccbe69288b9f8343713e2e98ab781c174b.png)
I have FST in the 5 of the last 7 contests

Full text and comments »

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

65.
By yangster67, history, 2 years ago, In English
Interesting FSTs in combined round Usually, during sys testing, I filter the submissions who failed system testing out of curiosity. I found many solutions that have failed test 5 on problem A, and it seems like all of them print an extra 100 if there are 100 test cases. There is no way so many solutions have failed with this seemingly intentional bug, so I think someone posted a solution which this bug and many people copy pasted it without realizing this. Did a coordinator post this code or did someone else do it?

Full text and comments »

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

66.
By Timosh, history, 13 months ago, In English
The only FST in the contest? At the end of today's contest after solving A-E, I was like "yay, finally, 2200+". But as system testing ended, my submission for D got FSTed (I still don't know why). Moreover, It seems like it's the only FST for problem D in the entire contest, which makes it even more disappointing. I don't know how to feel about this, maybe I invented new ways to fail system testing?
The only FST in the contest?, the only FST for problem D in the entire contest, which makes it even more disappointing. I don't know

Full text and comments »

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

67.
By Tom66, 4 years ago, In English
What do you think of hacks? On our last round [contest:1774], there were many hacks. What do you think of hacks? Plz vote below. 1. Hacks are a very important part of Codeforces Rounds. 1. I often hack other people. 1. I often become hacked or FST. 1. I feel excited and satisfied when I hack someone successfully. 1. I feel excited when I'm hacked. 1. I feel worried when I'm hacked. 1. I can find the reason why I'm hacked, and submit a correct one later. 1. The number of hacks one made can show his/her ability of observation, debugging, and constructing. 1. Hacks add random factor to standings because different rooms have different numbers of wrong submissions. 1. Problemprovider should make strong pretests. 1. Pretest shouldn't always contain all testcases i.e. pretest $\neq$ systemtest. 1. I have hacked myself before. 1. to be added... Plz click the...
people. 1. I often become hacked or FST. 1. I feel excited and satisfied, . 1. I often become hacked or FST. 1. I feel excited and satisfied when I

Full text and comments »

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

68.
By lobwboj, history, 2 years ago, In English
Massive Cheating - Solution? There are thousands of people cheating in contests nowadays. Difference is now a considerable amount have reached Master level performance, just see the submissions for yesterday E1! I would like the coordinators to consider the possibility of purposefully leaking codes in these telegram groups, which are implemented in a certain long and tedious way no genuine person would. Even better if such codes passes only pretests and FSTs without making it too obvious. Cheaters on such groups will anyways cheat. They see a code published, even if its not from their "trusted source", most would copy (especially if its a higher-up problem not leaked till now). After 1-2 such cases of clear cheating, simply ban the account. "But they will just create more accounts" &mdash; True, yes, but at the very least, it would help the standings of the current contests. I have been a CF contest author too, though did not implement this then, it was sad to see such telegram groups selling solu...

Full text and comments »

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

69.
By MohammadParsaElahimanesh, 11 months ago, In English
Codeforces Global Round 31 Salam ! Here is the editorial for [Codeforces Global Round 31](https://codeforces.me/contest/2180). We hope you find these solutions helpful. We also have prepared a special editorial with step by step hint, examples, tables, and walkthroughs which is available [here](https://repovive.com/editorial/codeforces-global-round-31). #### [problem:2180A] **Idea:** [user:Amirrzwm,2025-12-18], [user:MohammadParsaElahimanesh,2025-12-18] &mdash; **Preparation:** [user:MohammadParsaElahimanesh,2025-12-18] <spoiler summary="Solution"> <spoiler summary="Simple Simulation (Brute force)"> Since constraints are small, we can simulate the spins directly: - Start from section $a$. - Move the pointer by adding $b$ modulo $l$ repeatedly. - Stop when we return to a previously visited section. - Among all visited sections, select the section with the highest prize. It runs in $\mathcal{O}(l)$ as we mark each section at most once. </spoiler> <spoiler summary="Mathematical Solutio...
; int fst = 1; for(int i = 1 ; i < n ; i++){ cur = (x[i] - x[i-1]) - cur, ; int l = 0 , r = +1e9+1; int cur = 0; int fst = 1; for(int i = 1 ; i < n

Full text and comments »

70.
By Polar_, history, 7 years ago, In English
Help needed in a DP Problem.. Today I was trying to solve this [problem](https://codeforces.me/contest/478/problem/D) . But I couldn't solve it . So I tried to understand some solution but still ;( . <spoiler summary="Spoiler"> ~~~~~ #include <iostream> #include <cstdio> #include <algorithm> #include <cmath> #include <string> #include <string.h> #include <vector> #include <set> #include <map> #include <queue> using namespace std; #define ll long long #define ld long double #define ull unsigned long long #define pb push_back #define mp make_pair #define y0 isdnfviu #define y1 asinhiv #define fst first #define snd second #define count sdifnsugh int s(int n) { return (n * (n + 1)) / 2; } const int maxn = 200003, MOD = 1000000007; int f[maxn]; int main() { int r, g; cin >> r >> g; if (r > g) swap(r, g)...
#define mp make_pair #define y0 isdnfviu #define y1 asinhiv #define fst first, fst first #define snd second #define count sdifnsugh

Full text and comments »

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

71.
By 7etuPr0mK_X-VPA.8-ER1SYJ, history, 3 years ago, In English
Why unrated? I know many people think the problems are bad and want the contest unrated. I lost GM from this round too. But I think the problems are somehow ok. FSTs on A is avoidable, and using `long long` is actually very obvious. More low rated users FSTed than high rated users, so this is ok and I consider it as part of the problem. BCDEF are good(though I didn't solve E, and also I ignored m<=5000 in F). I know the std for G was wrong at first, but it's fixed quickly, which isn't a big problem. H would also be a good problem, if there isn't [oeis](https://oeis.org/). I noticed that many people had passed H when I was doing E, so I tried H in the last 1h. I nearly got the formula in the contest. Though I still think that authors should at least try to check on oeis before having problems like this, and they should also check for integer overflows for every problem. Hope to reach GM soon and good luck for everyone :)

Full text and comments »

72.
By 7etuPr0mK_X-VPA.8-ER1SYJ, history, 4 years ago, In English
A small suggestion I think Codeforces should add a new tag to the problemset called `corner cases` for problems that have many corner cases or many participants FSTed or got hacked on. This can let other people know they should check their codes carefully before submitting. Examples: [problem:1801B] and [problem:1811F] You can write some of the problems you got hacked on in the comments, and I'd like to try them.

Full text and comments »

73.
By saefd1, history, 3 years ago, In English
We need more FST!!! For many, pretests are a feature of Codeforces. However, we are now having fewer FSTs and it seems to everyone that "I should pass the main test when I pass the pretests". If so, what's the aim of having pretests? Why not just test main test during the contest? Some participants say that the stress of judging server is quite high during the contest. In many cases, the number of main test is no more than 5 times the number of pretests, while reducing the constraints to 1/5 will have the same effect. Just take Codeforces rounds long ago for example, there are much more FSTs. I also have some FSTs, too. But for me it's just the fascinating part of CP. CP should be something that has some randomness. <spoiler summary="Two FSTs in one contest, but fun though."> https://codeforces.me/contest/1801/standings/participant/151304081#p151304081 </spoiler> Please, raise the FST rate for a little bit (just a little bit will be good, like the contests long ago)!
We need more FST!!!, FST rate for a little bit (just a little bit will be good, like the contests long ago)!, Please, raise the FST rate for a little bit (just a little bit will be good, like the contests long

Full text and comments »

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

74.
By StarSilk, history, 11 months ago, In English
FST on test 1 My code of problem H that passed the pretest got TLE on test 1. Is there something wrong with the judge? Why it can pass the sample within the contest but failed in system test. There is no randomization in my code. https://codeforces.me/contest/2178/submission/355404092
FST on test 1

Full text and comments »

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

75.
By diegorpc, history, 9 years ago, In English
86D - Powerful Array (TLE) Hi guys I was solving the problem 86D &mdash; Powerful Array using Mo's algorithm. But I get TLE. Someone can help me? My solution <spoiler summary="Cod"> ~~~~~ /*input 3 2 1 2 1 1 2 1 3 */ #include <bits/stdc++.h> using namespace std; #define all(x) x.rbegin(), x.rend() #define sz(x) (int) x.size() #define pb push_back #define fst first #define snd second typedef string st; typedef long long ll; typedef unsigned long long int ull; typedef vector <int> vi; typedef pair <int,int> ii; typedef pair <int, ii> iii; int block; #define maxn 1000005 #define maxf 200004 struct Mo{ int l, r, id; Mo(){} Mo(int l, int r, int id){ this->l = l, this->r = r, this->id = id; } bool operator < (const Mo o){ if(l/block != o.l/block) return l/block < o.l/block; return r < o.r; } }; int see[maxf]; ll ans[maxf], v[maxf], freq[maxn];; Mo q[maxf]; ll resp; void update(int x){ if(!see[x]){ resp -= (freq[v[x]]*freq[v[x]])*v...
() #define sz(x) (int) x.size() #define pb push_back #define fst first #define snd second, fst first #define snd second

Full text and comments »

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

76.
By Comentropy, history, 18 months ago, In English
Rejudge my code please! help! In Codeforces Round 1028 (Div. 1), I passed problem B's pretest in the contest. And I'm confused about the status now: FST. But after I rejudged the same code after the contest, I got Accepted. Here's the submissions: [In the contest](https://codeforces.me/contest/2115/submission/322257642) [After the contest](https://codeforces.me/contest/2115/submission/322306074) Exactly the same code! and it shows that my code has normally printed the answer, but "Checker comment Exit code is -1073741819." What should I do?
about the status now: FST.

Full text and comments »

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

77.
By diegorang, history, 9 years ago, In English
DP on digits Hello, I'm trying to solve [this](https://www.urionlinejudge.com.br/repository/UOJ_1138_en.html) OJ URI problem. But I'm having difficulty counting the number of times 0 was used to form the numbers in the interval [A, B]. The other digits I got. can anybody help me? ~~~~~ #include <bits/stdc++.h> using namespace std; #define all(x) x.begin(), x.end() #define sz(x) (int) x.size() #define pb push_back #define fst first #define snd second typedef long long int ll; typedef unsigned long long int ull; typedef vector <int> vi; typedef pair <int, int> ii; typedef pair <int, ii> iii; typedef pair <int, iii> iiii; typedef pair <int, string> is; ll dp[20][100][2]; string s; ll solve(int id, int sum, int prefix, int base) { if(id == sz(s)) return sum; if(dp[id][sum][prefix] != -1) return dp[id][sum][prefix]; ll ans = 0; for(int i = 0; i <= 9; i++) { if(prefix) { if(i > s[id] - '0') continue; ans += solve(id + 1, sum + (i == b...
#define all(x) x.begin(), x.end() #define sz(x) (int) x.size() #define pb push_back #definefst, () #define pb push_back #define fst first #define snd second typedef long long int ll; typedef

Full text and comments »

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

78.
By OptimalNight, history, 5 years ago, In English
What is happening to the system tests? In the last Educational round #129, problem D saw many hacks. Even though I have used a similar dfs/dp technique as the others who got AC, I was also under the impression that my solution might also get hacked as there is one slight difference. Instead of calling the recursion for all the digits present in the number (I was thinking it might give TLE), I only called the recursion for the largest 5 digits present in it. Link to the submission: https://codeforces.me/contest/1681/submission/158201638 It passed the system tests and withstood the hack cases as well. I still don't know if taking the top 5 digits is sufficient or if it is that there wasn't any test that oversaw this case. Is the logic sufficient or did I just get lucky? If the logic is insufficient, then it shows yet another case of weak system tests. Over the last few contests, either I or one of my friends get an FST on the kind of mistakes which should have given WA on pretest 2. Even with these blunder mistakes, ...
few contests, either I or one of my friends get an FST on the kind of mistakes which should have given, FST on the kind of mistakes which should have given WA on pretest 2. Even with these blunder mistakes

Full text and comments »

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

79.
By PeruvianCartel, 3 years ago, In English
Why is Centroid Decomposition so slow? Hi guys. So, Centroid Decomposition, I never really paid attention to its runtime. That is until I was doing a problem (in an OI contest) that goes kinda like this: <p> <b> Statement: </b> Given a tree of $N$ nodes ($N \leq 4*10^5$) that are not colored. There are two types of queries: <br>- Color a node. <br>- Among the nodes that are colored, print the furthest distance between two colored node. <br> <b>Time limit:</b> 1 second. <p> This problem looks like the classic and beloved [E &mdash; Xenia and Tree](https://codeforces.me/problemset/problem/342/E). Therefore, I just used Centroid Decomposition without giving it much thought. And to my surprise, I got FST because my Centroid Decomposition code was too slow. And I was really confused. You know, an $O(N * log N)$ algorithm getting TLE with $N = 10^6$ sounds unlikely already, let alone $N = 4*10^5$. Not only that, it took twice as long as I would have liked. <p> So... Why is that? Why is centroid decomposition so slow? I me...
Centroid Decomposition without giving it much thought. And to my surprise, I gotFST because my Centroid

Full text and comments »

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

80.
By marttians, history, 5 years ago, In English
FST on a test already had on pretest !!! I passed the pretest but got fst with the pretest again [submission:148588961] and got ac with the exactly that code in practice mode [submission:148606321]. Those codes are exactly same. Please, [user:MikeMirzayanov,2022-03-06] can you rejudge the submission. Thanks.
FST on a test already had on pretest !!!, I passed the pretest but got fst with the pretest again [submission:148588961] and got ac with the

Full text and comments »

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

81.
By GoneTomorrow, history, 4 years ago, In English
Probability based problems should not be in contests!! I have some reasons for that, if you have any doubts please comment below. Firstly, you can't be sure whether your current solution is correct or not. I mean, how can you know if a solution with AC probability of 0.12345.... is going to pass? How to know if that's the intended solution? And even **after** getting AC you'd still be worried that your solution might get **FST**, and the probability was not the "intended" one. Secondly, it does not measure the skill of an individual properly. For example, a middle rated participant (CM, Expert) would like to make the probability of AC as high as possible(to avoid FST), they might think that current probability is not high enough. So they spend more time looking for better one. While some low rated participant(pupil, specialist), wouldn't care about probability that much, because they don't have much rating to lose if it FSTs. They could write some solution which "somehow" gets AC, while that middle rated is still looking for better p...
**FST**, and the probability was not the "intended" one., **after** getting AC you'd still be worried that your solution might get **FST **, and the, participant (CM, Expert) would like to make the probability of AC as high as possible(to avoidFST

Full text and comments »

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

82.
By highonjuice, history, 5 years ago, In English
Depression Today was the day thought I would get specialist ![ ](/predownloaded/e2/b3/e2b324946df68402c8a0b529f4c4a5036174d787.png) I was almost there But FST happened ![ ](/predownloaded/4e/96/4e96eeb084b3603dbe9d95f751aef44cb96e847e.jpg) And I just got 1 point Oh well, at least I had fun. Either way, I'm doing tomorrow's contest baby!!!!!
/e2b324946df68402c8a0b529f4c4a5036174d787.png) I was almost there But FST happened ![ ](/predownloaded/4e/96, But FST happened

Full text and comments »

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

83.
By macaquedev, history, 2 years ago, In English
The contest of 855401101 I don't know what the significance of this number is, or why it's in about 300 submissions to yesterday's problem F which all either got hacked or FSTed... does anyone have any ideas what 855401101 stands for? [submission:279564452] [submission:279584685] [submission:279589992] what on earth is going on here

Full text and comments »

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

84.
By AmanAgr2509, history, 5 years ago, In English
2 simple ambiguous doubts... 1st: In yesterday's contest I got [FST](https://codeforces.me/contest/1546/submission/122102564) on B on T.C-11, and after I reviewed it I found out that I was mistakenly running loop till n where I should run it till n-1 only, but ironically pretests passed without RTE, so could anyone explain why RTE didn't occur... 2nd: As per the [blog](https://codeforces.me/blog/entry/70237) the comparator should return false, and as per my [code](https://pastebin.ubuntu.com/p/thF8DGdwqV/), it would be returning false, but doing this showed WA on CSES Projects DP question and as I entered (>=) it got AC. So, what's the logic behind this flaw, or is it due to my false understanding. Thanks for your help!
1st: In yesterday's contest I got [FST ](https://codeforces.me/contest/1546/submission/122102564

Full text and comments »

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

85.
By Fearless_cod, history, 5 years ago, In English
Peculiar behaviour of log2() function in C++. Hi reader. Coming straight to the point. The value of (1ll<<59) or 2^59 is 576460752303423488(say x).So if you do log2(x),the answer should come out to be 59.That's indeed the case. But here is the catch... .If you do log2(x-1) in C++ 14(not sure for other versions),it also gives 59 as output..(but actual answer is 58), which is wrong and that caused me a fst in recent Div 3 problem F. So, can anyone explain why is this happening and how to avoid these types of things. Thanks for spending your time in reading this blog.
..(but actual answer is 58), which is wrong and that caused me a fst in recent Div 3 problem F.

Full text and comments »

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

86.
By abs0lute, 13 months ago, In English
Weak pretests… I got two FSTs in last 3 rounds, cf don’t want me GM

Full text and comments »

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

87.
By jakubd, history, 5 years ago, In English
Weakeast pretests so far this year... people who competed in 2011 are laughing so hard now on >1900 rated people crying about FST on Div. 2 C lmao
people who competed in 2011 are laughing so hard now on >1900 rated people crying aboutFST on Div

Full text and comments »

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

88.
By marttians, history, 5 years ago, In English
What is the diffence between C++20, C++17 and C++14 Today in contest cf round 749, I have FST in problem C (WA on test 16 in C++20) [submission:132242048]. After contest I have no change in my code and I submit in C++17 (WA on test 19) [submission:132266690] and in C++14 and got accepted [submission:132266932]. What is the magic here ! Pls explain to me ! Thanks.
Today in contest cf round 749, I have FST in problem C (WA on test 16 in C++20) [submission

Full text and comments »

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

89.
By flamestorm, 4 years ago, In English
Every problem I ever made As you may [have seen](https://codeforces.me/contests/writer/flamestorm), I've written a lot of problems. In this post, I want to go over each of my problems and describe my thought process for how I created each problem. I got this idea from [user:antontrygubO_o,2023-01-21], but I was also inspired by [user:McDic,2023-01-21]'s editorials that included a "behind story" for each problem. Anyway, I thought it would be fun to give you all a glimpse into my thought process: where my ideas came from, the obstacles I encountered along the way, and any random tidbits that give a bit more pizzazz to the problems. I think it's important to remember that problem-writing is a creative endeavor, so I hope you'll enjoy reading about the making of my problems as much as I enjoyed creating them. And who knows, maybe you'll even be inspired to write some problems of your own. Also, spoilers for a lot of problems. Obviously. <table> <thead> <tr> <th>ID</th> <th>Problem</th> ...

Full text and comments »

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

90.
By rupinderg00, history, 5 years ago, In English
FST on the sample test case In [question C](https://codeforces.me/contest/1541/problem/C) of Codeforces round #728 Div 2, [my submission](https://codeforces.me/contest/1541/submission/120569275) passed the pretests but failed system tests on test case 11 which is same as the sample test case. How is this possible?
FST on the sample test case

Full text and comments »

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

91.
By graphisverybad, history, 3 years ago, In English
Suggest about hacking in Div2 So, contestants are divide into rooms because people can use alt(to getting hack to earn points). But what if we let people who are not contestants hack everyone. Then we can reduce FST(people can fix the code) and make sure people don't use alt to get points
). But what if we let people who are not contestants hack everyone. Then we can reduceFST(people, Then we can reduce FST(people can fix the code) and make sure people don't use alt to get points

Full text and comments »

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

92.
By NateRiverxkh, 13 years ago, In English
A very sad story today... My F fst because the array is not enough ... a silly mistake... and I had lost a chance to become IM ... so sad ... I don't want to say anything ..
My F fst because the array is not enough ... a silly mistake... and I had lost a chance to become

Full text and comments »

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

93.
By cheater___, history, 4 years ago, In English
BAN ALL DIV3 FST ON D'S PEOPLE! **THEY ARE CHEATERS! MIKE MUST BAN THEM! BECAUSE OF THESE PEOPLE SO I'VE BEEN STUCK AS A NEWBIE!!! THEY'RE SPOILERS!!! THEY MUST BE BANNED!!!** **I HAVE DETAILED EVIDENCE THAT I WILL GIVE IN A MOMENT!!!** **THEY ARE ALL CHEATERS! THEY DON'T DESERVE ALL THIS SCORING! THEIR D'S ARE COPIED, SO THE ABC'S ARE ALL COPIED!!!** https://codeforces.me/blog/entry/104369 **BAN THEM ALL! THEY EVEN ADVERTISE THEIR CHEATING GANGS ON CODEFORCES!** **THE WHISTLEBLOWER AND THE CHEATER ARE IN CAHOOTS!**
BAN ALL DIV3 FST ON D'S PEOPLE!

Full text and comments »

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

94.
By --oOoOoOoOoOoOo--, history, 6 years ago, In English
How many testers would take to create strong pretests? A request to all problemsetter, testers and anyone associated with a contest. Please create strong pretest. Problem A in Round 671 had such weak pretests. Same goes for D2 and C. and many people failed on other problems as well. I feel terrible right now... I got FST in A,C,D2 at the same contest.. this is ridiculous... Maybe spend sometime more on pretests next time.
many people failed on other problems as well. I feel terrible right now... I gotFST in A,C,D2 at, I feel terrible right now... I got FST in A,C,D2 at the same contest.. this is ridiculous... Maybe

Full text and comments »

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