my code: https://codeforces.com/contest/1742/submission/203843549 can you send me the correct code?
Those who believe that these non-essentials are indispensable to attaining the ultimate goal of religion have not yet understood the basic principles of all religions; they do not know how to distinguish between what is essential and what is not; they lack the understanding that spiritual enlighten...
题目链接:https://codeforces.com/contest/1474/problem/E 开始以为答案是 \(1^2 + 2 ^ 2 + ... + (n - 1) ^ 2\) 看题解以后发现没有这么简单。。 因为每次交换必定会让一个位置还原,所以每个位置都要尽量和当前没有还原位置中的最
Ashot found for each Valerie's tooth its residual viability. Residual viability of a tooth is a value equal to the amount of crucians that Valerie can eat with this tooth. Every time Valerie eats a crucian, viability of all the teeth used for it will decrease by one. ...
简单构造,推了一会就推出来了,无法理解为啥有2500分,感觉还不如一些1900的题( #include <bits/stdc++.h>usingnamespacestd;intmain() {intt; scanf("%d", &t);while(t--) {intn; scanf("%d", &n);longlongans =0;for(inti =1; i <= (n +1) /2; i++) ...
传送门:https://codeforces.com/problemset/problem/1474/E 显然是道构造题 显然我们考虑反向 由一个 identity permutation 回推至最初的数列 考虑贡献 最大为 n-1 显然只能出现一次这样的操作 再考虑 n-2 发现至多两次 以此类推 就很好构造出一组解 #include <bits/stdc++.h> using namespace std; #define...
I'm new to Codeforces and have been looking code into submissions by others. I'm new to C++ as well and can't find any articles on what these snippets of code do. Can someone please explain? I understand that the code in If block gets executed when LOCAL is set. But what does the...
its a chinese algorithm competition website. just like codeforces :D →Reply ternary_tree 3 years ago,#| +11 luogu is an online judge platform which had been set up in 2013. It has a problem set, contests and a community. Just as similar as CodeForces, but the children and noobs there...
FeiWuLiuZiao→Is this LCT doable Ibrahimfostok→Becoming a Master naivedyam→Need help in Yesterday's E. What's the flaw in my approach? Intellegent→Codeforces Round 1005 (Div. 2) Editorial Rising-coder→Should I go back ? I_am_Invincible→Need some questions on Mo's algorithm and SQRT...
infinity_hsn→355B Example 1 is wrong. Bit_Slayer→Feature Request: Display performance rating alongside rating change Hany_Osama→Fun Blog djm03178→A simple poll about contest duration pouyan86→rated OI style contests in codeforces? melan_→Codeforces Submission Analyzer – Analyze Your Coding Per...