| # | User | Rating |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3603 |
| 4 | jiangly | 3583 |
| 5 | turmax | 3559 |
| 6 | tourist | 3541 |
| 7 | strapple | 3515 |
| 8 | ksun48 | 3461 |
| 9 | dXqwq | 3436 |
| 10 | Otomachi_Una | 3413 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 157 |
| 2 | adamant | 153 |
| 3 | Um_nik | 147 |
| 4 | Proof_by_QED | 146 |
| 5 | Dominater069 | 145 |
| 6 | errorgorn | 142 |
| 7 | cry | 139 |
| 8 | YuukiS | 135 |
| 9 | TheScrasse | 134 |
| 10 | chromate00 | 133 |
|
+38
Because Alice and Bob always play games. |
|
+13
log2 function limitations!!! be careful with this function The comment section of these blogs will answer your question. |
|
+18
You can copy 'p' from here and paste it. |
|
On
antonis.white →
Codeforces Round #759 (Div. 2, based on Technocup 2022 Elimination Round 3) Editorial, 4 years ago
+6
Basically, here I'm checking whether a permutation is even or not? Firstly, you need to know about The Number of Transpositions in a Permutation and Even and Odd Permutations and their theorems. In the second link, you'll find a theorem. Theorem If P1 and P2 are permutations, then (a) P1P2 is even provided P1 and P2 are either both even or both odd. (b) P1P2 is odd provided one of P1 and P2 is odd and the other even. (like if we have a and b then a+b is even if both are even or both are odd and a+b is odd if either a or b is odd, this is also true for a permutation) From the first link, you'll know that number of transpositions from a cycle = length of the cycle – 1. So if a cycle's length is odd means the number of transpositions from it is even. Similarly, if a cycle's length is even means the number of transpositions from it is odd. Now, in order to be an even permutation, a permutation must have the odd number transpositions cycle even number of times. (as mentioned in the theorem) So, a permutation is even if it has odd number transpositions cycle even number of times means the even length cycles must be present even number of times. (I hope I didn't make it complicated.) I don't think it's a very well-known concept. I learned it yesterday. A large number of participants solved it using inversion count. |
|
On
antonis.white →
Codeforces Round #759 (Div. 2, based on Technocup 2022 Elimination Round 3) Editorial, 4 years ago
+5
Also, you can solve this using DFS. Suppose we have a permutation -> 2 3 1 5 4 -> 1 2 3 4 5 (index) If you create a graph you'll find some cycles. Here we have 2 cycles. 2-> 1 -> 3 -> 2 and 5 -> 4 -> 5 Here the first cycle has length 3 and the second cycle has length 2. We can always sort any cycles having odd lengths using the operation described in the problem. So the number of cycles having odd lengths doesn't matter. On the other hand, If the number of cycles having even length is even then we can sort them otherwise we can't. So if we have an even number of even length cycles then the answer is yes otherwise no. You can find the length of a cycle using dfs. |
|
0
The duration of this contest was 135 minutes initially. The author accidentally wrote 150 minutes in the blog. (later it was changed into 150 minutes) |
|
+102
|
|
0
My bad. Thanks :)) |
|
+66
28/07 -> July Cook-Off 2021 29/07 -> Codeforces Round #735 30/07 -> 31/07 -> 31/07 -> 01/08 -> 01/08 -> Raining Contests |
|
+4
|
|
+18
Only $$$13$$$ testers! Here's a list of 40 testers. |
|
+1
Have a look at this. |
|
+25
|
|
On
ch_egor →
Codeforces Round #707 (Div.1, Div.2, based on Moscow Open Olympiad in Informatics, rated), 5 years ago
0
$$$1 \lt = a_i \lt = 2.5*10^6$$$
This means there are at most $$$5*10^6$$$ possible sums.
|
|
+28
Attention! Unusual start time |
|
+11
Google it and learn details. |
|
+2
My sister brought a fried chicken for me at 8:30. I said I'll eat this after 10:35. Thanks for the delay |
|
+1
If it takes so much time to reload use m1.codeforces.com , m2.codeforces.com or m3.codeforces.com. |
|
0
I don't know the source but it works. I found this so many days ago here. |
|
+47
|
|
0
StopStalk. A tool to analyze and improve your Competitive Programming Progress. See DETAILS |
|
0
If b divides a, then we can write (a/b) % p = a%(p*b) / b . Since we have to mod the floor value, we can ignore the condition above( b|a ). I used big mod to calculate a%(p*b) My submission |
|
-26
But not a wonderful author. |
|
+4
When we'll get another Ashishgup round? |
|
0
Check this out ll nCr(ll n , ll r) { if(n<r)return 0;
if(n==r)return 1;
ll ans=1;
for(ll k=n,p=1;k>(n-r);k--)
{
ans *= k;
if(p<=r)
{
ans/=p;
p++;
}
}
return ans;} |
|
0
Your mistake int a[n]={}; cin>>n; Here you should read n first then declare array a. |
|
0
Test Case 2 828374536691952768 75 348970515787375312 29 |
|
0
What's the most useless talent you have? |
|
0
Got it! Made a simple mistake. |
|
0
I was unable to find out the reason behind MLE on test case 2 of this submission of problem 1382C1 - Prefix Flip (Easy Version). I've tried for a long to find out this. Can someone please tell me what is wrong with the code? My Submission -> 87609365 |
| Name |
|---|


