# | User | Rating |
---|---|---|
1 | ecnerwala | 3648 |
2 | Benq | 3580 |
3 | orzdevinwang | 3570 |
4 | cnnfls_csy | 3569 |
5 | Geothermal | 3568 |
6 | tourist | 3565 |
7 | maroonrk | 3530 |
8 | Radewoosh | 3520 |
9 | Um_nik | 3481 |
10 | jiangly | 3467 |
# | User | Contrib. |
---|---|---|
1 | maomao90 | 174 |
2 | adamant | 164 |
2 | awoo | 164 |
4 | TheScrasse | 160 |
5 | nor | 159 |
6 | maroonrk | 156 |
7 | -is-this-fft- | 150 |
8 | SecondThread | 147 |
9 | orz | 146 |
10 | pajenegod | 145 |
+71
"Let It Rot" will win everything! |
+60
When are you writing a top tree tutorial? |
+54
here we go again: separate pages: |
+39
It's a very common question, that has already appeared multiple times in Codeforces blogs. unordered_map gives you O(1) complexity on average, while map gives O(logn). Seems that unordered_map is better in such case, but at what cost does it provide such complexity? Try to think about it by yourself Hashing. What's the problem about hashing? Once again Hashing leads to collision. Yes, when data is random probability of collision is very small ($$$2^{-n}$$$, where n is the length of the hash when it's a binary number), but when your solution can be viewed by everyone there is a really large change that some enthusiast will appear that knows some cryptography and will find an input that leads to hash collision in no time, what leads to O(n) complexity instead of O(1). How to prevent this? Everything described here. And the same thing works for unordered_set and similar data structures as well. As a rule of thumb, if you don't know how to prevent your solution from getting hacked using unstable data structures — use their stable analogues, but not them. |
+36
ordered_set and just set are different data structures from STL, don't confuse them with each other. Solution with set has got TLE because, once again, on random data unstable structures as unordered_set give better performance, but it applies only and only on tasks with closed solutions. If solutions are opened — wait for successful hack. Very often when your solution can't pass because of the additional logn it's either because your idea is inefficient or because your implementation is inefficient. It's very rare when task requires to use unstable data structures with no alternatives to them |
+35
|
+33
I won two TON coins in CodeTON Round 8, but now I don't know how I can receive them. I have a TON account and also I updated my wallet before April 16 UTC. What can I do beside just waiting? |
+33
Will be there any live contest mirror? Can you please share the link? |
+32
47th mipt |
+30
But what the OP said here is the other way around, Unordered got accepted and ordered got TLE |
+26
On their main website icpc.global, they have a link to an online mirror: https://onlinejudge.icpc.global/. The icpc.global website top-left menu has pretty useful links :). |
+26
why not spbsu |
+25
why skipped, cheater? 256497006 Are you a narcissist? Always commenting for your friend (or maybe your main?) absolute-mess. Two comments in screenshot below. Upping his blog in the comment above too besallthe819 = absolute-mess ? In div2-939, bestallthe819 solves C first at 16:05 UTC, and locks the problem. Then, comes absolute-mess to solve C at 16:11 UTC |
+25
Thank you! Also, I guess, at https://www.youtube.com/watch?v=wJRh62s5frE there should be an opportunity to look at our screen, and at https://www.youtube.com/watch?v=an5sBhtktaE there should be a stream. |
+25
Either MIT or Peking U will win the 46th Either Peking U or Harbour Space will win the 47th |
+25
2x Jagiellonian |
+24
I'm in Egypt right now and I didn't bring my laptop there, so I can't update the blog until I get back. I'll probably do a final update when I get back to my country. Good luck to all the teams! |
+22
Dont worry, i am in the same boat |
On
Fremder →
[Invitation, Prizes!] CodeRed and Humblefool Cup 2024 by IIIT Allahabad, 21 hour(s) ago
+22
When can we expect the prize money ? |
+19
Unfortunately there seems to be a bug in the generator of this problem. It is not deterministic (produces different tests for the same command line arguments), and Codeforces is not able to put up with this fact. The best thing to do could probably be to contact the authors of this problem and ask to fix it, but unfortunately the problem is so old that it is unlikely that something will be done. So, unfortunately, better just try to find some newer problems. |
+18
Yeah, I certainly consider this algorithm as from The Book. In purely aesthetical measure, there are very few algorithms with higher beauty. While I do see the intuition of this "level" structure, I also fully agree that the invariants are very delicate. I just regard the top tree as a good abstraction of a dynamic tree scheme, but here, it's important to note that vanilla LCT would not work. If you try to implement the |
+18
But a mirror's supposed to be a live contest? |
+17
You're welcome! I think you may get a medal in few hours. I'm a big fan of your casts and rounds' explanations wow |
+17
no Spoiler Free Palestine |
+16
BigBadBully is now higher rated than you :o Spoiler I always believed in the Balkan power :o |
On
Pols_Agyi_Pols →
Invitation to CodeChef Starters 130 (Rated till 6-Stars) — 17th April, 23 hours ago
+15
Enjoyed every problem, thanks to CodeChef. |
+15
you won't |
+14
I personally believe it is vice versa — use Yes, there is a danger of hacks, but, firstly, the cure is not very complicated (one of the commenters already gave a link to a comprehensive material), secondly, I suppose the problem is maybe exaggerated. I believe I don't even have an anti-anti-hash test protection in my template, but I still have never been hacked this way. For me personally a logical line of behavior looks like this: just use If you want to be secure and prefer to put on an extra layer of protection, better read https://codeforces.com/blog/entry/62393, add some needed lines to your code and never remember again about |
On
brave-kid →
Overkilling!!But not Necessarily with complex ds-algos,just by too naive thought process, 19 hours ago
+14
Bro, you need to train |
On
brave-kid →
Overkilling!!But not Necessarily with complex ds-algos,just by too naive thought process, 19 hours ago
+14
Skill issue, the blog is also long, uninteresting, and you should provide a tldr; |
+13
This is a really nice comment |
+13
|
+13
Hangzhou Dianzi U |
+13
Looks like the intersection of the problemsets is 5 problems. Shame. Now for training purposes you have to choose one or the other. |
+12
Many people do not know who Shayan actually is, he's done much valuable efforts in INOI and has been a great idol and teacher for Iranian students, ask him about INOI, the efforts he's done, team selection test,... |
+12
I won't |
On
Pols_Agyi_Pols →
Invitation to CodeChef Starters 130 (Rated till 6-Stars) — 17th April, 22 hours ago
+11
feeling so dumb after reading editorial for append array :( |
+11
Why is the Mirror linking to tourist's twitch? |
+11
all the best, you are gonna have a blast tomorrow :) |
+11
around $$$10^4$$$ dollars for the first place |
On
mahin661 →
2 years of my coding journey and still thinking solving approach in noob way!!, 6 hours ago
+11
|
+10
I meant the regular set. Got your point thanks, but what do you say about using custom hash functions ? |
+10
Using custom hash functions allows you to modify unordered_set hashing so that it's less likely to be hacked. Here's my template:
Please note that not everything is able to be given a hash, so only stick to basic data types such as int, string etc. |
+10
why you always say sir sir sir |
+10
What about you, will you take the place? |
+10
Star button does not appear if you are logged out |
+10
you are the kind of guy to shit talk blogs that are useless yet posting the most useless shit ever |
+9
Nice set of problems,although E was easy for its place. |
+9
then we will be together even in our failure uwu |
+9
|
+8
i can't find it is solving from ladders good or the problemset is better |
+8
wasted 1.5 hr on this and finally quit the contest |
+8
In normal case, if u can solve 50% of a set of problems then it's suitable for u. So I suggest u keep practising and move on when u can solve it easily. But problem rating is not an accurate thing so I suggest u practising problems in a rating range rather than a number(for example,me 2100~2400). Good luck! |
+8
who else wants him back to competitive programming? |
+8
Best of luck! May your teamwork, skills, and determination lead you to success. |
+8
wow the script still works! |
On
antontrygubO_o →
[FOUR DAYS LEFT] MIT Informatics Tournament 2024 Spring Invitational, 14 hours ago
+8
looking forward to the excellent problems and exciting contest :D |
On
antontrygubO_o →
[FOUR DAYS LEFT] MIT Informatics Tournament 2024 Spring Invitational, 14 hours ago
+8
0, most don't have cf accounts |
On
antontrygubO_o →
[FOUR DAYS LEFT] MIT Informatics Tournament 2024 Spring Invitational, 11 hours ago
+8
Does being a grad student count as being in college? |
+8
Best of luck ! "May the algorithms be with you! Your problem-solving skills are legendary, use them to conquer the World Finals!" |
+8
Definitely, NO. You can notice the different solve counts on 46th and 47th scoreboards even problems letters A->K 47 P->Z 46 But there might be some intersections |
+8
Valuable insights. Thank you, but i think not all gym contests can be cloned. |
+7
How Grandmaster manages his/her time during a coding competition, Asking about specific time management techniques, such as how they prioritize problems, allocate time for each problem, and handle unexpected challenges or bugs efficiently, could provide valuable insights for other participants looking to improve their competition performance. Wish you all the best in ICPC. |
+7
I cheer for SPbSU, but I believe the probability of HSE winning is Higher (and, to be honest, I cheer for them not less). |
+7
As a problem setter, I highly recommend participating in this contest... |
+7
|
+6
Well said, When I was pupil I spent months trying nonstop to reach specialist and get into new topics, For the topics I tried to learn I didn't get most of it and for the rate it dropped to newbie, I took a little rest and I went from newbie to pupil in a matter of days. |
+5
Sorry for necroposting. I was solving problem E and got ml14 then I did some optimizations and got AC. After that, I looked for the editorial and author's code. The code was the same with my solution that got ml14. So I copied it and submitted it in C++ 20 (GCC 13-64) and surprisingly this got ml14 too. Then I resubmitted it in C++ 17 and got AC. Why it could get ml? |
+5
If you're using unordered_map or unordered_set you MUST have them anyway. I've already gave a link to the blog that gives comprehensive information about which exactly function you should use, so I won't duplicate it. About what orz said: I completely agree with him in terms of competitive programming. When you have the prewritten protection code then it's much better to use unordered_map or unordered_set if you only don't need the sorted elements in these structures. Also, most of the time, you really don't need anti-anti-hack protection, because it's very rare now that someone will try to fetch the random and write the test based on it, because it's enormously time consuming and it doesn't cost it. If you look in my solutions, then you will see that it's very rare when I'm using such structures, and I have an explanation for this as well. Actually, I've a couple of reasons:
|
+5
On the homepage, icpc.global there is a menu in the topleft, it contains two items which are both "Online Judge" :). One leads to a dead link, one leads to https://onlinejudge.icpc.global/register, which looks like an online mirror of both world finals. It seems to start one hour after the start of onsite the contest. Edit: It seems that after I looked at the site earlier today, they have changed it to only one working "Online Judge" link. |
+5
ahhh icpc... never change :) |
+5
And i give up after 1 or 2 submissions ;( |
On
tofael1104 →
Anyone COMMENT with the university name from which you want to see a team, 7 hours ago
+5
Either MIT or Peking U will win the 46th Either Peking U or Harbour Space will win the 47th |
On
mahin661 →
2 years of my coding journey and still thinking solving approach in noob way!!, 3 hours ago
+5
650 problems solved, of these 650, 350 are for beginners 800 |
+4
Yes, exactly. You could even find the optimal solution in $$$O(N^3)$$$ or even better in $$$O(N^2)$$$ using $$$DP$$$. |
+4
Really the 3rd question was too bad |
+4
What do you mean by “You can't use random hashing in real programming”? |
+4
meme |
+3
Most of the problems in this round had pretty much similar difficulty levels, as our more difficult problems were used up in CodeRed Finals :-) |
On
kuldeep_devulapally →
How should we decide the complexity of the code based on input description given?, 24 hours ago
+3
The line |
On
kuldeep_devulapally →
How should we decide the complexity of the code based on input description given?, 24 hours ago
+3
So basically the complexity will be O(T+n) not O(t*n) |
On
Pols_Agyi_Pols →
Invitation to CodeChef Starters 130 (Rated till 6-Stars) — 17th April, 22 hours ago
+3
Am I the only fool in the planet who solved Good Binary String Problem through Dp? |
On
Pols_Agyi_Pols →
Invitation to CodeChef Starters 130 (Rated till 6-Stars) — 17th April, 22 hours ago
+3
Thrill_Forces |
On
Pols_Agyi_Pols →
Invitation to CodeChef Starters 130 (Rated till 6-Stars) — 17th April, 22 hours ago
+3
Love it |
On
Pols_Agyi_Pols →
Invitation to CodeChef Starters 130 (Rated till 6-Stars) — 17th April, 21 hour(s) ago
+3
code
|
On
Pols_Agyi_Pols →
Invitation to CodeChef Starters 130 (Rated till 6-Stars) — 17th April, 21 hour(s) ago
+3
vectordp(N,INF); dp[0]=0; int mn=INF; for(int i = 1 ; i < n ;i++) dp[i]=min( dp[i-1] + a[i] , a[i -1] + a[i] ); mn =min (mn , dp[i] ); |
On
antontrygubO_o →
[FOUR DAYS LEFT] MIT Informatics Tournament 2024 Spring Invitational, 15 hours ago
+3
As a tester, problems are very interesting and definitely not NP-complete. |
+3
|
+3
Thank you and same to you! |
+2
Worst Contest Ever. People get codes accepted by hard coding test case. Test cases were also wrong in this contest Question 3 should be removed from contest. |
+2
NGL cash is much needed right now |
+2
46th nru hse |
+2
Due to Covid ICPC WF Moscow was rescheduled to October 2021. In Luxor are hosted both ICPC Finals of 46 and 47 seasons (2021-2022 regionals and 2022-2023). |
+2
evenvalue orz pls bless me with good luck |
+1
dont learn any algos / ds until u encounter them in more than (5 — 10)% of the problems u are solving , and also u can try solving really hard problems for you for example problems 600-800 above your rating u'll most likely see the tutorial for more than 90% of them but it builds strong intuition and gives many ideas to start thinking from also it kills the fear u have and simplifies everything for you |
+1
|
+1
got AC, thanks dude :D |
+1
ok but i perfer sort(v.rbegin(), v.rend()); |
+1
What an inspiring story... |
Name |
---|