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

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

Results

1.
By MikeMirzayanov, 3 years ago, In English
Please, read this Hello, Codeforces. Friends. I apologize, but today I will be a bit chaotic and mix personal with public. It just happened that way, I'm sorry. Today, my mother passed away. It's hard for me to write this. Even just seeing it in text makes it feel like something from a nightmare. She was extraordinary. It's difficult for me to articulate it right now, but take my word for it. It felt like all the best qualities one could imagine in a mother converged in her. I don't know any other people so kind, sincere, non-judgmental, capable of love, listening, befriending, supporting, and taking joy in the world around them, and bringing joy to their loved ones. Mom, it's already hard without you, it feels empty. She had glioblastoma. It's an aggressive brain cancer that affects only a few people out of 100,000. I believe, I hope, that science will soon be able to tackle this disease. But for now, this diagnosis is a death sentence. Maybe some of you are or will be associated with medic...
easier for me to get through all of this., like national/ethnic conflicts, politics, religion, sexual orientation, and gender identity,and any, refrain from publishing anything that is beyond or close to the boundary mentionedabove. By publishing, the community, develop and move it forward., tones. But here, on Codeforces, I'm not looking for answers to all questions. I hugall of you and, you, it feels empty. She had glioblastoma. It's an aggressive brain cancer that affects only a few, **UPD 1:** Friends, thank you very much for your attention. I read all the commentsand am grateful, . But this is how I feel today, and I ask for your understanding. I wish you peaceand love., . It felt like all the best qualities one could imagine in a mother converged in her. I don't knowany, I apologize, but today I will be a bit chaotic and mix personal with public. It just happened that, I want to enter another world. A world free from the insoluble problems of human ambition. A world, P.S. Please cherish your loved ones while they are with you. Give them your attention. Bring joy to, She had glioblastoma. It's an aggressive brain cancer that affects only a few people out of 100,000, Today, my mother passed away. It's hard for me to write this. Even just seeing it in text makes it, You may perceive this as a whim of mine, but now I don't want to see topics here thatare

Full text and comments »

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

2.
By YouKn0wWho, 5 years ago, In English
The Ultimate Topic List (with Resources, Problems and Templates) This post took $4$ years to make. And this is the most significant thing that I have ever shared in my whole life. #### Story Hi, I have been doing CP for like $4$ years and from the very beginning what I have been feeling is a need for a comprehensive topic list that will contain all sorts of topics from easy to advanced with corresponding tutorials, problem lists and templates so that I wouldn't have to look at different sites, from here to there. So what do you do when you think something is missing from the world? Yeah, you create that thing! So here I am, sharing the ultimate topic list that you will need in CP. When I say that it took me $4$ years to make it, I genuinely mean it. I have been collecting them from the inception of my CP journey and yesterday I thought that it got its almost complete shape. You may not imagine the sheer excitement hidden under each of the characters of this post. #### Payment You can pay me just by upvoting this blog and by being a bet...
The Ultimate Topic List (with Resources, Problems and Templates), been feeling is a need for a comprehensive topic list that will contain all sorts of topics from easy, better programmer and human being than what you are right now. #### About the Topic List I have, from the inception of my CP journey and yesterday I thought that it got its almost complete shape, that I am alive at this moment., understand what are the best topics for them. The distribution is as follows:, won't go in vain. I am waiting to see you at the top of the building that you made by the bricks of, #### About the Topic List I have added a few tutorials for each topic. You can also find more of, #### Contribute You can comment the topic names that you think are missing right nowand I am, #### Payment You can pay me just by upvoting this blog and by being a better programmerand human, **Upd (May 12, 2024):** the current and final version is deployed here: [smash me](https, /assets/emoji/8771_blobheart.png" width="16px" height="16px" alt="blobheart">a>., Added few problems for each topic. But you may notice that some of the topics don't haveany, I have attached my template for each topic. You may not call it a template because some of them, If you are a beginner then just learn basic topics and solve problems., This post took $4$ years to make. And this is the most significant thing that I have ever shared in

Full text and comments »

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

3.
By MikeMirzayanov, history, 2 years ago, In English
Congratulations: Tourist has reached a rating of 4000! Hello, As you may have already noticed, [user:tourist,2024-08-31] has reached the symbolic milestone of 4000 rating points. This is the first time in the history of competitive programming. I, personally, and the entire Codeforces team, congratulate Gennady [user:tourist,2024-08-31] Korotkevich on this incredible achievement! Right now, we have assigned a new rank “Tourist” to the 4+ rating. This highlights the uniqueness of the moment! However, in the future, I would like to change this name to something a bit more neutral (or leave it Tourist?). Would you help me with this? I’d appreciate your cool suggestions in the comments! Here are a few options from me. Please, vote: - Epic Grandmaster - Ultimate Grandmaster - Godlike Grandmaster - Tourist - 4K Grandmaster - Grandmaster 4K - Legendary Grandmaster 4K - Joke option: Ultra HD Grandmaster - from [user:Tlatoani,2024-08-30]: Champ...
Congratulations: Tourist has reached a rating of 4000!, on this incredible achievement! Right now, we have assigned a new rank “Tourist” to the 4+ rating, As you may have already noticed, [user:tourist,2024-08-31] has reached the symbolic milestone of, Feel free to propose your own options and add <a href="/blog/entry/98347">(likes:n)a> (use square, Here are a few options from me. Please, vote:, However, in the future, I would like to change this name to something a bit more neutral (or leave, I’d appreciate your cool suggestions in the comments!, Right now, we have assigned a new rank “Tourist” to the 4+ rating. This highlights the uniqueness

Full text and comments »

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

4.
By rng_58, history, 6 years ago, In English
Retiring from competitive competitive programming Recently, I feel I've passed my peak as a competitive programmer, and ran out of sufficient energy/motivation to keep the top form and be prepared to win the next contest. I think I've done everything I can do as a competitive programmer, and now it's time to end my career as a professional (mind) sport player. It was a great experience. I'd like to thank everyone involved in the community, especially: - Competitors. It was always nice to compete against you all! - Problem writers who gave great problems to the community. I started my career as a competitive math-puzzle solver in 1999. The first contest was a local one named "junior sansu (arithmetic) olympiad". Since then, I enjoyed this sport a lot for 21 years. In 2007, I started TopCoder, and it changed my life. The problems were great, and every single match of SRM felt like a once-in-a-life event. A lot of legends were competing there &mdash; [user:Petr,2020-12-31], [user:tomek,2020-12-31], [user:ACRush,2020-12...
join them one day, and always stayed on practice rooms on TopCoder Arena and tried to improve, legends, and competed with them at the same stage! Then I became an admin, firstat TopCoder, then, - Competitors. It was always nice to compete against you all! - Problem writers who gave great, For now, I'll get some rest for a while, live a calm, non-competitive life, and gradually think, Good bye, and good luck to the community in the future!, I started my career as a competitive math-puzzle solver in 1999. The first contest wasa local one, It was a great experience. I'd like to thank everyone involved in the community, especially:, Recently, I feel I've passed my peak as a competitive programmer, and ran out of sufficient energy, Then I became an admin, first at TopCoder, then at AtCoder. Especially in AtCoder, I had a right

Full text and comments »

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

5.
By tourist, history, 7 years ago, translation, In English
Codeforces Global Round 5 <img src="/predownloaded/2e/e2/2ee2f0f95f05aae6ca6f47812dae2dc2aabf277b.png" style="width:200px; float:right; margin: 0 1em 1em 1em"/> Hey! On [contest_time:1237] we will host [contest:1237]. It is the fifth round of a new series of [Codeforces Global Rounds](https://codeforces.me/blog/entry/65002) supported by XTX Markets. The rounds are open for everybody, the rating will be updated for everybody. The round will last for 2 hours 30 minutes, 8 problems are waiting for you, and one of them will be proposed in two versions. Scoring distribution: **500 &mdash; 750 &mdash; (750 + 750) &mdash; 2000 &mdash; 2500 &mdash; 3000 &mdash; 3750 &mdash; 4000** The prizes for this round: - 30 best participants get a t-shirt. - 20 t-shirts are randomly distributed among those with ranks between 31 and 500, inclusive. The prizes for the 6-round series in 2019: - In each round top-100 participants get points according to the [table](https://pastebin.com/QT5sXEaT). - The fi...
round: - 30 best participants get a t-shirt. - 20 t-shirts are randomly distributedamong those with, - 30 best participants get a t-shirt. - 20 t-shirts are randomly distributed among those with, - In each round top-100 participants get points according to the [table](https://pastebin.com, Coincidentally, this is also the list of people I'm thankful to for making this round what it is., It is the fifth round of a new series of [Codeforces Global Rounds](https://codeforces.me/blog, The problems of this round were developed by me, and here is the list of people who can't take part, The round will be perfectly balanced. As all things should be., The round will last for 2 hours 30 minutes, 8 problems are waiting for you, and one of them will be

Full text and comments »

Announcement of Codeforces Global Round 5
  • Vote: I like it
  • +3664
  • Vote: I do not like it

6.
By dario2994, history, 4 years ago, In English
About div1E (round #810) I am the coordinator of Round #810. I will be brief and clear. The div1E problem was copied by one of the two authors, it was not a coincidence. For this reason, the **div1 part of the round is unrated**. Div2 stays rated. Sometimes known problems appear in a contest, it happened to me as an author and to any problem setter who has organized many contests. This is never a reason to make a round unrated. Today something different happened, the problem was deliberately copied and the author did not tell anything to anybody (not even to the other author). Codeforces (and me personally) condemns this behavior. A final personal remark: I feel sad. Please future authors: do not copy problems. It's a waste of everyone's time.
About div1E (round #810), A final personal remark: I feel sad. Please future authors: do not copy problems. It'sa waste of, I am the coordinator of Round #810. I will be brief and clear., Sometimes known problems appear in a contest, it happened to me as an author and toany problem, The div1E problem was copied by one of the two authors, it was not a coincidence., an author and to any problem setter who has organized many contests. This is nevera reason to make

Full text and comments »

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

7.
By YouKn0wWho, 5 years ago, In English
Codeforces Round #752 #### UPD: (28 April, 2022) <spoiler summary="Donated Finally"> Details: [here](https://codeforces.me/blog/entry/96333?#comment-907470) </spoiler> আবার চলে এসেছি! (That's Bengali for "I am back! (in Terminator mode)") I am super excited to invite you to participate in [contest:1603] and [contest:1604] which will be held on [contest_time:1604]. This round is rated for both divisions. You will be given $6$ problems in each division and $2$ hours to solve them. All the problems are authored and prepared by me. I would like to thank - - [user:antontrygubO_o,2021-10-26] for his breathtaking(<strike>literally</strike>) coordination of the round. <i style="color:White;"> no funny text this time</i> - [user:Alpha_Q,2021-10-26], [user:Anachor,2021-10-26] and [user:antontrygubO_o,2021-10-26] for putting up with my dumb ranting and helping with the problems. - [user:Um_nik,2021-10-26], [user:gamegame,2021-10-26], [user:kefaa2,2021-10-26], [user:dorijanlendvaj,2021-10-26], [u...
make it more by just solving more problems!). I am a student, so pardon me if that's too little., me at all times., solutions from getting AC. - The great [user:MikeMirzayanov,2021-07-20] for the amazing Codeforces and, ~~~~ Div2A - 0.005 USD Div2B - 0.006 USD Div2C/Div1A, #### UPD: (28 April, 2022), **Solve problems and help the poor!** Yes, you heard it right, this time you can help the world by, **UPD:** Here is how the donation amount looks like:, /assets/emoji/8771_blobheart.png" width="16px" height="16px" alt="blobheart">a>., Also, did you know that you can still upvote my [The Ultimate Topic List](https://codeforces.com, Also, thanks for being a part of this. You have just helped someone who is in need (I meanafter I, FYI I will get 400 USD for this contest. So the donation amount is indeed half of thisas I have, I am super excited to invite you to participate in [contest:1603] and [contest:1604] which will be, I will update you again when I get the money from Codeforces, more likely after a few months as I, The statements are short and directly ask you what to do and I have tried to make the pretests, You will be given $6$ problems in each division and $2$ hours to solve them. All the problemsare, accurate. I will update you again when I get the money from Codeforces, more likelyafter a few

Full text and comments »

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

8.
By MikeMirzayanov, 7 years ago, translation, In English
About the Failed Round 591/Technocup 2020 — Elimination Round 1 Hi Codeforces! Unfortunately, ill-wishers thwarted the round by making DDOS on our infrastructure. Neither the coordinator nor the writers of the round are subjects to blame for the failure. Please do not downvote the announcement of the round. I think that this situation is an additional reason to support the writers. They worked hard and prepared good problems! Apparently, such an attack should be regarded as a symptom of the fact that Codeforces outgrew the youth phase and entered serious adult life. Of course, we will respond with adequate measures to protect ourselves from such incidents. Fortunately, for almost 10 years of work, a large community has formed around those who care about Codeforces. We are not worried about possible additional expenses or efforts. We can do this. The rounds must go on. &mdash; [user:MikeMirzayanov,2019-10-06] **UPD 1:** All three of today's rounds will be unrated. **UPD 2:** Hooray! Today we've survived another DDOS attack. The round ...
About the Failed Round 591/Technocup 2020 — Elimination Round 1, the announcement of the round. I think that this situation is an additional reason to support the, to support the writers. They worked hard and prepared good problems! Apparently , suchan attack, **UPD 1:** All three of today's rounds will be unrated., **UPD 2:** Hooray! Today we've survived another DDOS attack. The round was not perfect, but it was, Apparently, such an attack should be regarded as a symptom of the fact that Codeforces outgrew the

Full text and comments »

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

9.
By MikeMirzayanov, 4 years ago, In English
In Problems Statements, Example Inputs Are Now Highlighted if Test Cases Are Used <img src="/predownloaded/c1/64/c164a37e70461b3b6a0236b7e72c81c7f9b47d8d.png" style="width: 200px; float: right; margin: 1em 0 0 0;"/> Hello, Codeforces. Look what an interesting thing I've been working on the last few days. Now, if a problem uses test cases and its validator is written in the recommended way (using setTestCase), then the example inputs are displayed using different colors. Just follow the link and see how beautiful it turned out: <a href="https://codeforces.me/contest/1714/problems">https://codeforces.me/contest/1714/problems</a>! So far I have enabled this only for the last few rounds, but if everything works as intended, I will enable it for more rounds. In order to support this, I had to tinker a lot. I made changes to [testlib.h](https://github.com/MikeMirzayanov/testlib) so that the validator can return test markup. Support for this markup required changes in various system services. But I think it's worth it! The coolest thing is that it wa...
In Problems Statements, Example Inputs Are Now Highlighted if Test Cases Are Used, checkers are often used, in which information about test cases is lost. Perhaps I'llapply some, working on the last few days. Now, if a problem uses test cases and its validator is written in, . If a validator is used using the `setTestCase` feature, then this improvement can beapplied to, In order to support this, I had to tinker a lot. I made changes to [testlib.h](https://github.com, Just follow the link and see how beautiful it turned out: <a href="https://codeforces.me/contest, Look what an interesting thing I've been working on the last few days. Now, if a problem uses test, So far I have enabled this only for the last few rounds, but if everything works as intended, I

Full text and comments »

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

10.
By Rhodoks, history, 4 years ago, In English
Codeforces Round #810 Editorial Sorry for the late editorial. May this editorial help you. If you have questions, feel free to ask. [problem:1711A] <spoiler summary="hint1."> The minimal weight is at least $1$ since $1$ divides any integer (so $1$ divides $p_1$). </spoiler> <spoiler summary="solution"> Since $k+1$ does not divide $k$, a permutation with weight equal to $1$ is: $[n,1,2,\cdots,n-1]$. </spoiler> <spoiler summary="code"> ~~~~~ #include <bits/stdc++.h> using namespace std; void work() { int n; cin>>n; cout<<n<<' '; for (int i=1;i<n;i++) cout<<i<<' '; cout<<endl; } int main() { int casenum=1; cin>>casenum; for (int testcase=1;testcase<=casenum;testcase++) work(); return 0; } ~~~~~ </spoiler> [problem:1711B] <spoiler summary="hint1."> See the party as a graph. </spoiler> <spoiler summary="hint2."> Divide the vertices into two categories according to their degrees' parity. </spoiler> <spoiler summary="solution"> Let's consider ...
$I$. Since the cell is always black, it is quite easy., $a\bigoplus b \leq a+b$ , $a_i$ is a piecewise linear function and the slope of $a_i$ will only, Consider enumerating good intervals according to their length, Consider the same bit of three integers at the same time. , Define $cnt_{i_1 i_2 i_3}$ as:, Divide the vertices into two categories according to their degrees, If interval $A,B$ are all good and $A \cap B \neq \emptyset$, then $A, If the result is $x$, then Alice will end the game when Bob moves to a, Let $ans[x][y]$ be if interval $[x,y]$ is good as the input data demands., Let's call position $j$ a key position if it is the center position, See the party as a graph. , Since $k+1$ does not divide $k$, a permutation with weight equal to, Since they are very smart, they know the result of the game at the, Supposing you know an invalid position $j$ where $a_j>m$, what are the, The maximum can always be achieved in the center position of one day's, The minimal weight is at least $1$ since $1$ divides any integer (so $1, The picture must consist of some stripes with at least $2$ rows or at, Thus, Alice can only move to a certain subset of cells, and the same, When $n$ is odd and all $\lfloor \frac{a_i}{m} \rfloor=2$, we cannot, both endpoints are deleted. In particular, there must be at least two adjacent vertices deleted with, call it $I$), so does a row. Let's call a column white if only white cells of itare in $I$, otherwise, columns as $i$, and try to find a $j$ that maximizes $|I|$. If we make an array $da[i]$ satisfying $a_i, draw a beautiful picture using such algorithm:, edges and cells form a bipartite graph., large) and add the edge one by one., m)$, where $A$ is the maximum value of the arrays $a$ and $b$., make an array $da[i]$ satisfying $a_i+b_{da[i]}\leq Z$ and $a_i + b_{da[i]+1} > Z$,and a similar, neighbor unmatched in a certain matching $M$, we find an augmenting path and a matching $M'$ that, on the answer $Z$, which is less than $a_1+b_1$, or Alice can end the game immediately to get $a_1, play optimally, the first player wins iff the starting vertex belongs to all possible maximum, the answer is $0$., vertex. Note our algorithm will guarantee that at every moment every connected component's indices, $a=cnt_{100}+cnt_{101}+cnt_{110}+cnt_{111}$, $a\bigoplus b + a\bigoplus c > b \bigoplus c \iff cnt_{011}+cnt_{100}>0$, $a\bigoplus b = cnt_{010}+cnt_{011}+cnt_{100}+cnt_{101}$, $a\bigoplus c = cnt_{001}+cnt_{011}+cnt_{100}+cnt_{110}$, $j$th bit of $cnt_{i_1 i_2 i_3}$ is $1$ iif $i_1=a_j,i_2=b_j,i_3=c_j$, * Sort $a_i$ from large to small., . And if you erase all vertices in the minimum vertex cover, you get an independent set, which is the, ; int n; char good[MAXN][MAXN]; int lv[MAXN],rv[MAXN]; vector ans;, ;i++) if (degree[i]%2==1) ans=min(ans,a[i]); for (int i=1;i<=m;i++) if (degree[x[i]]%2, =0,d=0; LL lst=0; for (auto p:diff) { if (p.first!=lst) { a=a+(p.first-lst)*d, Assume that the intervals we have considered are consistent with the input and weare considering, Assume that we are processing the interval $[x, y]$ and up to now we did not createan invalid, Assume that you delete $x$ vertices with even degrees and $y$ vertices with odd degrees., Case1: $I$ does not contain $x$ or does not contain $y$, and at least one of $a ,b$ is in $(R_x,L_y)$., Check if one can draw a beautiful picture with row stripes only or with column stripes only. We, Consider the game on the bipartite graph. Initially, we are at cell $(1,1)$. Alice moves first, Each cell can be visited at most $1000$ times, whoever cannot move loses., Enumerate $a_j b_j c_j$ for $j$ from $|n|-1$ to $0$ and make transition., Finally, you will get a valid tree., First, calculate the maximum matching. Then we erase the starting vertex and calculate the maximum, If $[a,b]$ becomes connected after the linking, since we only add edges in $[x,y]$, $[a,x]$ and $[y, If $[x,y]$ is good and $x$ and $y$ are in the same connected component, then we do nothing., If $[x,y]$ is good and $x$ and $y$ are not in the same connected component, we can merge $[L_x,R_y, If $n$ is even, then such a condition is enough., If $y \geq 1$, then only deleting one vertex with an odd degree would lead to a not worseanswer, If Alice wins, then the answer is no greater than $Z$, otherwise, the answer is greater than $Z$., If interval $x,y$ are in different connected components when $[x,y]$ is enumerated., If interval $x,y$ are in the same connected components when $[x,y]$ is enumerated., If it is possible, then $\sum_{a_i \geq 2m} \lfloor \frac{a_i}{m} \rfloor \geq n$ must hold., If there is a pair of toroidal neighbors with different colors. For example, $col_{x,y}=a$ and, It turns out that the condition is exactly the same even if each vertex can be visitedat most, It's easy to see that $da[i]$ and $db[i]$ are non-increasing, so they can be calculated in $O(n+m, Let $I=[a,b]$ not be connected before performing the operation on $[x, y]$ and become connected, Let $d^{1}_{j}=a_{j}-a_{j-1}$, $d^{2}_{j}=d^{1}_{j}-d^{1}_{j-1}$, then the $i$-th day's rain will, Let $res[x][y]$ be if interval $[x,y]$ is good in our answer tree., Let us sort $a_i$ and $b_i$ (notice that reordering rows and columns do not change the gameat all, Let's color white all the cells with $a_r+b_c \leq Z$, and black all the cells with $a_r+b_c > Z$., Let's then prove if $ans[x][y]=0$ then $res[x][y]=0$., Now, consider an invalid position $j$; erasing the $i$-th day's rain will make it valid ifand only, Now, we know that if we copy a cell $1000$ times and copy the edges as well, this problem is, One can check that the region of $(x, p)$ satisfying such an inequality is a quadrant rotated $45, One can iterate over all possible solutions with such a structure and take the optimal one., Otherwise, we add a vertex $P$ with the only edge $(P,H)$, move the initial cell to $P$, swap the, Similar, the boundaries can be vertical lines, but horizontal lines and vertical lines can not, Since $[a,x],[x,y],[y,b]$ are all good, $[a,b]$ is good and we are happy., Since $[x,y]$ has been merged into a larger connected component, then there must bea series of, So the pattern should be row stripes all with at least $2$ rows or column stripesall with at least, So you can maintain all positive changes of $|I|$, just decrease the $j$ with $i$ decreasing. Now, So, if we erase one vertex and $|M|$ remains unchanged, then $|I|$ must be changedand vice versa., So, we have shifted the problem to see if the initial cell belongs to all matchings., Sorry for the late editorial. May this editorial help you. If you have questions, feel free toask., The edge-link method will ensure $[x,y]$ is good in our answer tree., The proof is rather long and hard, and if you have some better ideas please share them., Then according to hint1, all $J_i$ is good. $J_{i+1} \cap J_i \neq \emptyset, \cup J_i =[x,y]$, Thus, an optimal solution either has $(x, y) = (0, 1)$ or $(x, y) = (2, 0)$ and the two vertices, We say that a position $j$ is valid if $a_j\le m$., What is the maximum size of $I$, when we must have $i$ white columns and $j$ white rows? Theanswer, When $a,b$ are in different CC, $I$ does not contain both of $x$ and $y$ while theyare the key, When $a,b$ are in the same CC, the link will have no influence on its connectivity., You can calculate $a_j$ for all key positions $j$ using the difference array., \textbf{Lemma}: The first player can win if and only if all possible maximum matchings include the, ][tmpmask2]+=dp[i][mask1][mask2]; } } LL ans=0; for (int i=0;i<8;i++) ans +=dp[s.size()][7, bool check(int x){ ll sm=0,f1=0,f2=0; for(int j=m,i=0;j>=1;--j){ while(ia [i+1]+b[j]<=x, case3: $b \leq R_x$ or $a \geq L_y$., e.g. $a=(10)_2,b=(11)_2,c=(01)_2$ then $cnt_{110}=(10)_2,cnt_{011}=(01)_2$, other $cnt$ is 0., int n,m,va,vb; int a[N],b[N]; int da[N],db[N];, template void ckmx(T &A,T B){ AA=B:B; }, void Main(){ cin>>n>>m; for(int i=1;i<=n;++i) cin>>a[i]; for(int j=1;j<=m;++j) cin>>b[j, void work() { ans.clear(); cin>>n; for (int i=1;i<=n;i++) { lv[i]=rv[i]=i; cin, ~~~~~ #include using namespace std; #define MAXN 100010 int n,m,k; int a[MAXN

Full text and comments »

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

11.
By Ari, 6 years ago, In English
Codeforces Global Round 9 <img src="/predownloaded/2e/e2/2ee2f0f95f05aae6ca6f47812dae2dc2aabf277b.png" style="width:200px; float:right; margin: 0 1em 1em 1em"/> Hi! On [contest_time:1375] we will host [contest:1375]. It is the third round of a 2020 series of [Codeforces Global Rounds](/blog/entry/65002). The rounds are open and rated for everybody. The prizes for this round: - 30 best participants get a t-shirt. - 20 t-shirts are randomly distributed among those with ranks between 31 and 500, inclusive. The prizes for the 6-round series in 2020: - In each round top-100 participants get points according to the table. - The final result for each participant is equal to the sum of points he gets in the four rounds he placed the highest. - The best 20 participants over all series get sweatshirts and place certificates. Thanks to XTX, which in 2020 supported the global rounds initiative! The problems of this round were prepared by a team of authors: [user:adamant,2020-07-01], [user:anto...
Ari, best 20 participants over all series get sweatshirts and place certificates., - 30 best participants get a t-shirt. - 20 t-shirts are randomly distributed among those with, The problems of this round were prepared by a team of authors: [user:adamant,2020-07-01, are open and rated for everybody.

Full text and comments »

Announcement of Codeforces Global Round 9
  • Vote: I like it
  • +2693
  • Vote: I do not like it