| # | User | Rating |
|---|---|---|
| 1 | Benq | 3857 |
| 2 | jiangly | 3810 |
| 3 | maroonrk | 3534 |
| 4 | tourist | 3528 |
| 5 | Kevin114514 | 3510 |
| 6 | turmax | 3411 |
| 7 | Um_nik | 3387 |
| 8 | Radewoosh | 3367 |
| 9 | heuristica | 3322 |
| 10 | strapple | 3317 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 158 |
| 2 | maspy | 150 |
| 3 | Um_nik | 146 |
| 4 | Errichto | 139 |
| 5 | adamant | 136 |
| 6 | maroonrk | 134 |
| 7 | DNR | 133 |
| 8 | nik_exists | 131 |
| 8 | Dominater069 | 131 |
| 10 | Proof_by_QED | 130 |
|
0
Wowwww!! This is super explanation!! Really Helpful. Thank you and keep it up! |
|
0
I have a Nice Solution for 2026B - Black Cells: case 1: when n = 1, we can choose a[0]-1 or a[0]+1 as the optional white cell to paired up. Thus the answer is 1: case 2: when n is even there is no need to use any extra white cell as there is already a perfect pairing exist. Hence the answer is the maximum difference between adjacent indices: (a1, a2) (a3, a4) and so on... case3: n is odd is the only tricky case where we must have to use the extra white cell to make up balanced pair. Now look at the even indices, do they have to pair up with the extra cell we are going to add? No! Because then paring imbalance happens on both side of the even indices we choose. So, only odd indices can pair up with the extra white cell (though we really don't have to add it, just have to imagine we add the cell next to it). Now the answer is minimum of [maximum pair difference on both side] of all possible odd indices we choose. Here is my solution: 298661203 Time complexity: O(n^2) However, we can do it in O(n) by using prefix and suffix max pair difference array. |
|
0
O(m^2) solution is going to give you TLE as m<=3e5 |
|
0
bro It's div (1 + 2) |
|
0
YES!! I also enjoyed Problem D |
|
+4
Special Thanks to cmk666 for the nice problem 2048D - Kevin and Competition Memories |
|
0
No need take inverse modulo of 2, Yes you can, n or n-1 is even hence it's divisible by 2!! just take inverse mod of (n * (n-1)/2) % mod And it works!! |
|
0
I have slightly different solution for 2008B - Квадрат или нет than the solution given by authors: It's clearly mention that the string s is derived from a beautiful matrix, so if it has to be squared two conditions are suffices: Initially we count how many ones and zeros are present in the mentioned beautiful matrix, It's pretty easy, right? Number of ones = r + r + c-2 + c-2
And It works!! Here is my submission: 279088062 |
|
0
In editorial of G2 , if a < x <= b, area should be a * (b + 1) but given (a+1) * b. May be it's a Typo SlavicG |
|
0
Hints for 104493K - Sam-Oh, the funny coach: As the given string are sorted so, we can just store the starting and ending position of each 26(a to z) character for every string. Now for each query just go through the stored index of each 26 character add the length of intersection of both string and finally print it (note: Try to store index in light structure otherwise there will be MLE or TLE)! |
|
-6
Just apply the operation on 2 x 2 submatrix! (It would better if you have a look at the solution of 1119C - Ramesses and Corner Inversion) |
|
0
1983B - Corner Twist is almost coincide with 1119C - Ramesses and Corner Inversion and required same technique to solve MrSavageVS! |
|
0
In case of minimization, it's always correct. Because the intuition behind is that You never want to multiply number that gives greater result than just adding those two numbers. And that's what asked in the problem statement. |
|
0
I didn't able to guess it at the contest time! Sad Life! |
|
0
Problem 1986D - Mathematical Problem solution: Key observation: As we can use only n-2 sign (+, x), so there must be at least one two-digit number. Then just find the minimum answer as asked. -Time Complexity O(n ^ 2) |
|
+1
High Quality tasks!!! |
|
+3
1927D - Find the Different Ones! is required almost similar thought as 622C - Not Equal on a Segment. |
|
0
Great problem Indeed!! Enjoyed very much..should have able to solve C and D. I even calculate the suffix array for C and still not able find suf[i]>0 contribute in the answer..Very frustrating! |
|
0
OH sorry! |
|
0
Problem D is the best one with little bit of geometrical thinking and number theory. Love this one Ashutosh.Singh |
|
0
Problem 1895C - Torn Lucky Ticket is a fantastic Problem!! Thank you for this problem.. |
|
0
May be there is a misunderstanding. How the complexity is O(qlogn)? ..ans every query by binary search and inside every transition of binary search finding "AND" of (l to mid) take O( q* (log(n) )^2) |
|
0
I think, my solution can be optimized a little bit to gain expected complexity. |
|
0
Would you mind giving me the code? |
|
0
NOP! It cause TLE. It is because the complexity will be O(q * n * log(n)), but expected is O(q*log(n)) or O(q * (log(n))^2) |
|
0
Here it is: 225454109 |
|
0
I think the most easier way (I mean no need handle bit by bit) to do 1878E - Iva & Pav is to use seg tree. Here is my solution: 225454109 |
|
+6
Man.. I just started last div3 contest in virtual mode, did A, then going to open Problem B...And BOOOOOM.. |
|
0
Did the same 219648940 but got WA on 60! |
|
0
problem F is reversed of an ABC problem, where author asked to maximized diameter. |
|
0
Agree! Statement is foggy! |
|
0
Hey CristianoPenaldo, first one to solve div2 B. I love to mention your name for no reason!! |
|
0
For Round 3: Problem->G:Cantor Expansion |
|
0
Agreed!! |
|
0
In Problem E solution. The Function is_parent() is actually checking if a is anchestor of b, not only direct parent. Correct me if I'm wrong. And I didn't get the u = Lca(u, lvl[u]-lv[v]-1) part.. Please help...Alfeh |
|
+22
In Problem 'A' solution , sum(ai) < sum(bi) , then anser is Tenzing...typing mistake in tutorial(sorry for bad English).platelet |
|
0
Very nice problemset (though more than expected tree problems) & perfectly balanced contest..Author should get ++.....+INF contribution. |
|
0
I have exactly the same idea, but i was unable to implement the solution..very sad |
|
0
When it is possible to add a path from s -> t , where distance = dis[s->t]+1?? it is only possible when for any two adjacent node are at the same distance from 's', and dis[s->u] + dis[t->v] + (u->v or v->u) = dis[s->t]+1. (here u, v are two adjacent node) That's it! |
|
+3
This is really great!! |
|
0
Very Sad!! |
|
+14
LOL...n = 1 is even in the sample test!! |
|
On
Badry →
[Gym Contest] Egyptian Collegiate Programming Contest (ECPC 2018) online mirror, 3 years ago
0
my idea for H ( but get WA2):
Pls help! |
|
On
i_am_bug →
Please please can someone tell me -{Be careful: the problem requires input/output via file(s)} what does it mean?, 3 years ago
0
Great! |
|
On
i_am_bug →
Please please can someone tell me -{Be careful: the problem requires input/output via file(s)} what does it mean?, 3 years ago
0
lets say the problem has input file as input : path.in output: standard output then how I will modify your ans?? |
|
+3
Problems are seems harder than usual div3...though they are fantastic.. |
|
0
Consider the subtree containing node 1,2,3,4(for node 1) |
|
0
|
|
0
NOP...It's scam! |
|
0
How on earth Yodasen made possible to write solution and submit within the time interval of 5 second (solution A(3 min 53s) & D(3 min 48s)) and 21 second (solution C(7 min 30s) & G1(7 min 9s)) second! Is this real?? |
|
0
I love them very much...Last few days (3 to 5) I solved more than 10 interactive problem and enjoyed those problem very much.. And finally today I was able to decipher the given one!! YOWWWWWWW |
|
0
Wow!!! Super excited to participate in another Bangladeshi Round after a long time.. Orz adnan_toky & Shefin_ |
|
+1
First of all I didn't participate the contest...After the end of the contest I was searching for solution of problem C..And Youtube suggest(As you know) some of the related vedios...after clicking the vedio I saw the uploading time was in the middle of the contest .. Note: You can Check |
|
0
This youtube channel upload vedio on problem A & B solution at contest time.. report this channel.. |
|
0
In the previous contest (Round 822), I also comment (reason: as you did today) about this guy. Sir MikeMirzayanov please have a look at it! |
|
0
First of all thanks for nice hints! Note: Number of Council is atleast 1 as k <= n and all group (1 to n) consists atleast a student. |
|
On
MikeMirzayanov →
2019-2020 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules, Teams Preferred), 4 years ago
0
So, if just wrote those line like: ans += (ar[i] + rem )/c; rem = ar[i] % c will it work??It should be as your explanation because I didn't accumulate rem. but unfortunately I got 8 times WA by using those line.. |
|
+8
I love to see code of Farhod , peti1234 , QAQAutoMaton, Petr & Um_nik as they write very neat and understandable solution. I'm trying to learn as much as I can from their code( for me it's may be A, B or C). |
|
0
yes! got AC...a little bit sad for that silly mistake..however!Now I get relife that my idea wasn't wrong. |
|
0
oo..thanks! |
|
0
I got wrong on TC2 on C (my submission).... Please help! |
|
0
Is anyone facing long queue while submitting solution(in practice mode)?. |
|
0
us.....! |
|
0
Best contest I've ever participated. Problem statement was so clear and look like easy pessy but too much tricky.I wish I will solve at least two problem in the next contest in future by this author YouKn0wWho |
|
0
Editorial Please.... How long we, the noobs have to wait.... |
|
0
Thank you bro... actually I used a = n-1 for the array bound, but I didn't thought it that if (n-1) isn't a power of 2 then using ( if ) statement instead of ( while ) will give an error.... Thank you again for giving your time... |
|
0
This Code Work Perfectly:: int main(){ IOS; int t; cin >> t; while(t--){ int n, target;
cin >> n >> target;
vctr v(n);
Trav(x, v) cin >> x;
SRT(v);
if(v[n-1] < target || v[0] > target)
cout <<target<< " is Out of Range\n";
else{
int pos = 0;
for(int a = n-1; a > 0; a/=2){
//while(pos+a < n and v[pos+a] <= target) pos+=a;
if(pos+a < n and v[pos+a] <= target) pos+=a;
}
if(v[pos]==target)
cout << target <<" is present in the array at index "<<pos+1<<"\n";
else
cout <<"Opps! "<< target <<" is not found in the array\n";
}} return 0; } Input:: 4 5 5 1 2 3 4 5 5 4 1 2 3 4 5 5 1 1 2 3 4 5 5 100 1 2 3 4 5 Output:: 5 is present in the array at index 5 4 is present in the array at index 4 1 is present in the array at index 1 100 is Out of Range ===== Used: 0 ms, 4 KB |
|
0
while is needed, because the steps are not always powers of 2. ****If not ,Then please let me learn how the run time could be log2(n)??? |
|
0
May be the best movie I've ever seen.(apart 'Parasite') |
| Name |
|---|


