Comments

You mom knows.

-130

MikeMirzayanov, this is my revenge for not answering me.

-157

1.When you will allow account deletion (I think privacy is major concern. Just like one can delete content on any website, it should be allowed here too) ?

2.What you think about Indians doing Competitive Programming solely for getting jobs ? Also about software companies asking CP problems (atleast in India, maybe due to huge number of applicants) even though it has no correlation with the job ?

3.What practical uses Competitive Programming has in your opinion ?

4.How much development knowledge you have ?

5.What are your hobbies ?

6.Any prediction if CP will exist (and in what form) after 50 years ?

7.Why CP is more popular in developing countries and not in developed countries (like west Europe/ north America) ?

8.Even though Russia is very good in Olympiads(thus bright minds), why it's lagging behind in tech and economy ?

9.Any personal opinion on Vladimir Putin ?

10.How software engineering will look like (like which technologies) after 20 years ?

Did you read all comments above ?

What if one decide to delete the account when the system test is going on, and what if he submit something at last minute and the system test are queue-ing it.

Two options :

Keep account in deactivated mode for 1 to 10 days. If user logins again then account doesn't get deleted else gets deleted.

or Prioritize system tests and after that execute the account deletion. Show user that "account has been deleted but some of the information might be visible for few days". There is concept of locks for it.

Don't allow to browse other comments by that user

This is very important point I think for maintaining privacy. I have messaged imachug. He also would be having creative ideas in such things.

Same problem is for codechef and atcoder. But they do it. Topcoder also allows deleting.

Replace that competitor by Anonymous. No need to re-calculate.

Definitely. But most website allow deletion of own content. On websites like stack overflow you can be anonymous after deleting the account. On codeforces people can still reach on based on your old user id, tags. There is no way one can go completely anonymous.

Account deletion is the only way.

It's interesting that codeforces allows blog deletion but not comment deletion.

People here have made multiple accounts. If there was account deletion, I am sure number of duplicate accounts would reduce since people can delete the other.

Because I felt being a programmer is cool

Why you feel sports programming is cool ?

when I watched icpc world finals videos in YouTube which motivated me a lot

I am sure you didn't jumped to world final videos straight away. You aren't telling the initial most motivation.

Why did you started with CP ? Please tell story behind it.

I sent you message. Previously I was not able to reply before 10 minutes.

-is-this-fft- I hope you haven't used blocking people below some rating feature. I wanted to discuss this with you. I can resend you incase of you have blocked.

This motivation will disappear after you get your first job.

0

lol haha lmao . rofl . so funny .

In the problem given, the max number is $$$1e5$$$, so its enough to represent every pair of integers in base $$$1e5+1$$$ where the first number is the tens digit and the second one is the units digit

counterexample: If input is $$$(1e5,1)$$$, then in base $$$1e5+1$$$ it would be $$$1e5*(1e5+1)+1$$$ i.e greater than $$$1e10$$$ and we can't store it in array. So I think your solution won't work for given constraints.

In worst case it can lead to $$$O(n)$$$ and unordered_map won't work for sure since it can be hacked i think.

On farmersrice → account deletion, 5 years ago
-32

thanks. Atleast we are free unlike you lol and not coward like you to not use name. Lol coward pig.

TigranMec Hey Pig, stop now lol. India doesn't need Pigs.

On farmersrice → account deletion, 5 years ago
-39

Ofcourse not. It's normal on this website. Seems you are new. By usual Russian behavior I meant that Russia is Dictatorial country and it's normal there.

On farmersrice → account deletion, 5 years ago
-46

forget about it man. He doesn't do what he says. He is implementing the feature from last 2 years lol. Almost all websites codechef, atcoder have it. Usual Russian behavior .

MikeMirzayanov please allow deletion. Please care of data privacy. One should be allowed to delete his content and account permanently.

Any neat solution for second problem ? It seems there are too many cases to be handled.

Don't waste your time in suggesting these people. They would just downvote and won't take feedback constructively. I mean just see in codeforces contest announcement comment section how much people dislike stories and useless statements. Still they ignored. Don't know which world they are living in.

If we see regionals mirror contests on codeforces we can see they have to the point and short statements.

I mean what orgasm on gets from writing Duc de Puce, Duc Beauregard, and Duc Truffe ?

...there has always been stories in the problems :) The feedback was always positive about those

From how many people you took/saw feedback from ? Tell the numbers and else these statements don't make sense. Also did you took feedback only from those who did very well or every section of ranklist ?

I know my responsibility

It's good if you don't have to be reminded of that. We payed money for it, prepare for years. It's not like that it's your platform hence you will do what you want.

Yes, I read you whole comment.

I heard that long statements were used because thats similar in style to ICPC World Finals

If it's not rule then there is no reason to follow it if it does not cater majority. ICPC World Finals should also use short statements but if they are not mature enough and still want to irritate participants then it doesn't mean Amritapuri will also do the same.

Personally I always like good story based problems

When you are creating contest you should think from majority perspective. Most people like short and to the point statements. There are better things to read compared to Duc de Puce, Duc Beauregard, and Duc Truffe.

It's contest organizer/setter responsibility to talk with lot of people and read comments on competitive programming platforms to know what people like and not just enforce your own thoughts.

Seems some people are jealous how newbie qualified. lmao. lol. rofl.

Will it show how many teams solved a particular problem ?

Thanks! Very good solution.

seems interesting. Kind of hard to come up with counter-example, still trying. Can you justify your solution ?

can you please take an example to illustrate your solution ?

can you please provide code for this ? I am not able to get how to handle cycle in this case also ?

I think it can be also solved by dp[N][M][K], since maximum number of cells covered would be around 105 (due to constraint on k) and each cell can have answer for 12 states.

agarus and landour, thanks for counter example. When it's forming cycle then it's not working. While solving I didn't thought of cycle. Sorry.

as the robot can clean cells while returning to (0,0)

It has to return to (0,0) even it keeps moving in one direction. And number of times it will move = 2*number of new cells visited.

Note that example given in GFG, using queue the path will be (0,0)->(0,1)->(0,2)->(0,1)->(0,0)->(1,0)->(0,0). Note that here it visited (0,0) 2 times but still only took 6 moves. If you still didn't get something I can try to elaborate more.

Can you give one counter example ?

Second question is related to binary search over rope size from 1 till maximum rope length.

Suppose in final answer, starting number is $$$A$$$, then last number must be $$$A+N-1$$$ where $$$N$$$ is length of input array. Then answer for it will be $$$N-L$$$, where $$$L$$$ is length of segment such that all elements in it are unique and are between A and A+N. It can be found using binary search on sorted array with unique elements. So like this you can do binary search over all elements and take minimum. Time complexity O(nlogn)

You can solve it by using BFS. Starting location will be (0,0). For each location you reach in queue, check if 2<=k, if yes then you can subtract 2 from k.

Yes I now realise that it was an overkill :(

What is better approach ?

Thanks! Understood.

Even coders like bohdan pryshchenko and errichto say the same.

No relation. Human intelligence is not binary (means if you aren't good at something then it does not implies you are dumb).

Mark Zuckerberg was just green on topcoder (link) but is in no way less smart than red coders here.

Another example is Prof. Danny.

Thank you.

Underrated comment. Thanks. May i ask you why you are stuck on expert ? In lot of contests you do very well but then you lose rating in some. It seems lack of consistency is reason.

My situation is similar to yours so i think if you share your reasons it might help me also.

Thanks

manpreet.singh I have already filled all the fields with asterisk at http://icpc.global/private/profile. But still it's showing pending. Do we need to fill some other information at somewhere else? Balajiganapathi could you help here.

Does anyone else thinks editorial for problem F2 has not been explained properly ? Comments have better explanation than that. Could someone explain the editorial of F2 ?

why downvote ? Just asking for suggestion :( You can downvote this one also but please tell

If i solved 4 problems, should i solve 5th problem . For improvement i should solve one problem more than what i solved during contest but mostly red coders have solve problem E and my real rating is well below red so i might spend 1 to 2 days up-solving it.

why status is showing pending even though our coach has registered us and i have filled all required information with asterisk . Do i need to do something else ? Balajiganapathi or someone else please tell.

thanks a lot Balajiganapathi for changing the date. Whole country is suffering from pandemic. Me and my family is suffering too. I thank you for your decision.

On hmehta → TCO21 Round 1A, 6 years ago
-13

If you remove your glasses you will notice the correct time in bottom. Why you are trolling him like that ?

On Ari → Codeforces Round #715 Editorial, 6 years ago
0

Could someone please explain how they approached (thought process) problem C in DIV 2 during the contest. How they arrived at greedy idea that it's always better to place the smallest/largest value in the end in DP transition.

On Kuroni → Codeforces Round #715, 6 years ago
-6

I want to remain invisible. I don't want to discuss from my regular rated account and don't want any attention in it. This account is for sharing ideas.

I know making 2 account is bad, but i am not using it for any bad purpose.

On Kuroni → Codeforces Round #715, 6 years ago
0

Thanks, Now i think i really complicated it.

On Kuroni → Codeforces Round #715, 6 years ago
+2

No, but we can give few minutes to think if this problem can be solved by DP or brute force.

On Kuroni → Codeforces Round #715, 6 years ago
+3

Thanks, I will follow him. I also think that removing fear from mind that "i cannot solve D if i can't solve C" is also very important. If i would have read D well before time i would have got positive delta.

On Kuroni → Codeforces Round #715, 6 years ago
0

How to solve B ? I took lot of time coming up with right solution. I want to know if there is some better method.

On Kuroni → Codeforces Round #715, 6 years ago
+2

I don't think that figuring out that it was dp was the hardest part since it was somehow obvious from constraint. Figuring out how to do the transitions was hardest.

On Kuroni → Codeforces Round #715, 6 years ago
+6

Suppose there are two strings $$$a$$$,$$$b$$$ such that number of zeros in $$$a$$$ and $$$b$$$ are greater than $$$50$$$%. Then we can choose string $$$a$$$ and insert number of $$$1$$$'s in string $$$b$$$ in string $$$a$$$ such that $$$b$$$ is substring of whole string.

Same case when number of $$$1$$$'s in $$$a$$$ and $$$b$$$ are greater than $$$50$$$%.

When both $$$1$$$ and $$$0$$$ are equal to $$$50$$$% in both $$$a$$$ and $$$b$$$ then also it can be solved with same logic.

Let say $$$a=11111100,b=11110000$$$ then final string will be $$$111100001100$$$

On Kuroni → Codeforces Round #715, 6 years ago
+4

Was DIV2 D much easier than DIV2 C ? It was just case analysis right ? If we have two strings with 50% 0 and 50% 1 then we are done . Or else if we have two strings with number of 0 greater than 50% then also we can combine them.

I read it in last moment and found that implementation was bit difficult else it was easier than DIV2 C.

How to solve sorted xor problem ? Do we need to do binary search ?

It was joke comment.

thanks . It's especially happening in chromium browser with me but working fine in Firefox . However this is happening only from past 2 days. tagging mike (MikeMirzayanov) to look into it because it seems some changes has happened on cf in past few days.

+4

Thanks very useful response .

traveling sales man problem is NP hard so how it's possible to solve problem DIV2 E or DIV 1 C for given constraints ?

why you require people having prior knowledge if this course is from zero to hero ?

Thanks but i am happy with content of Errichto and demoralizer

It seems wiiliam has changed last problem a bit to make it impossible .

thanks so my brute force was wrong . I don't think answer for this problem exist .

tmwilliamlin168 last problem still not working even if one stone is left

last 3 questions are impossible to ace due to bugs in 6 and 8 , giving Wrong answer intentionally (or doesn't have any answer) in problem 7.

In problem 7 i am getting 1,3 from brute forces but still it's giving WA .

Probably April fool :) Others can save their 30 minutes .

I forgot to thank you. Thanks for this wonderful and easy to understand explanation. We need more such similar types of explanation in editorials so that people who tried can understand fast if they failed to do by themselves.

On Ebiarat → Acm-style rated contest?, 6 years ago
0

I don't know why there is no comment on it . I think it will be great idea since in all of the contest we already know on codeforces are sorted in order of difficulty .

I think it will be good if we hold contest in format similar to icpc and we do one extra thing : not showing number of people who solved the problem during the contest . This will make us more smarter.

tagging MikeMirzayanov for his views on this blog or comments .

How to solve Tree Parenthesis ? Is there any editorial for the contest ?

On eatmore → Google Code Jam 2021, 6 years ago
0

yeah true binary search is passing . Earlier when median was not the required number i shifted r = m and l = m+1 . I modified it to r = m-1 , l = m+1 and checked corner case and it passed .

On eatmore → Google Code Jam 2021, 6 years ago
0

Thanks for your code , could you please write in words how you modified the binary search ? It's little hard to read the code directly without any written info .

On eatmore → Google Code Jam 2021, 6 years ago
0

gaurav,Geothermal,Kognition log2(n) didn't worked :( . But i understood the log3(n) part .thanks i understood that i should have queried at points l + (r-l)/2 , r — (r-l)/2 for getting 1/3 of length in each iteration .

On eatmore → Google Code Jam 2021, 6 years ago
0

How to solve problem D for hidden test case ?

I used binary search and number of iterations will be around $$$log2(3)+log2(4).....+log2(50)$$$ in worst case which is >200 but since data in input are randomly made , I think average could be less and thus it might pass the hidden test case .

Also when hidden test case verdict will be out ?

Also please don't change contest duration inbetween the contest . It completely ruins the plan ahead and other commitments .

On eatmore → Google Code Jam 2021, 6 years ago
-39

Thanks

To all others commenting or downvoting , we are not doing anything against the rules of codeforces or google codejam qualification round.

Before starting competitive programming have enough logical brain to understand what is right or wrong.

On eatmore → Google Code Jam 2021, 6 years ago
-79

Any hints on how to approach for reverse sort for full points ? I am trying to observe the pattern after doing brute force for n=6,n=7 .

n=6

We can clearly see pattern till cost=10 for n=6 but after that i cannot see any pattern.

Since we are permitted to discuss for qualification round i don't think asking this unfair in any way.

Don't know why your comment is downvoted ,but tbh it's more funnier that Monogon comment below.

I have found that these kind of distraction occur when we procrastinate a lot or we are in stress or don't talk to others and remain isolated most of the time.

It's well said controlling mind is hardest thing.

On hmehta → Topcoder SRM 802, 6 years ago
+28

man go and fix your website first .Arena never works and today applet is not opening and saying "cannot verify ....." .

I mean what is problem in having simple website on which we can read the problem and submit instead of getting thrash hacker like feeling in applet ?

Quality of problems are already lowest among all CP websites (don't know about today though) and probably interface too .

Time limit in problem D . I can't imagine number of people getting fst tomorrow .

tbh post deserves downvote . You just get -100 because they didn't set proper time limit .

On shishyando → Codeforces Round #708, 6 years ago
+6

I just laugh over codechef, in jan lunch time their website didn't worked for half time still they made it rated.

On shishyando → Codeforces Round #708, 6 years ago
+9

Round should be unrated . CF ranking is based on how fast we solve , extending round is not solution . For being fair it should be unrated .

Also i was not able to open m3,m1 too . m2 opened after sometime. I think contest admins are sensible enough to make this unrated .

Vichitr and Balajiganapathi Instead of resolving so many issues mentioned in above comments , why not hold icpc on codeforces ? I have seen lot other countries icpc related contest on codeforces . MikeMirzayanov I know it will be not good idea to say this to you , but could you please reach Indian regional directors and offer them to hold ICPC on codeforces . It will be blessing for whole Indian CP community . You can ask little registration fees for that.

can some high rated codeforces user also communicate to regional directors regarding this ?

A suggestion : -Platform was not loading properly in first few minutes , remember that in actual competition number will be a lot more.

-Please make contest in format similar to icpc (same duration and around same number of problems with difficulty).

don't know why but i feel lot of fst in problem C

so true

have other regionals decided anything on when to keep the contest ?

Doesn't it reduces energy and mental power for next 2 to 3 days ?

My question isn't only for high rated coders . It's open to everyone . Yes i also think those crap short videos reduces iq . I never used Tiktok but i have seen in ads people doing weird acting in it.

How to overcome pain in ass when you keep getting WA on test 2 after implementing for almost 2 hours ?

*painful problems. Especially D and E .

All Hail our emperor Mike.

+16

Is that sarcasm ? Or they were really strong ? Above i see lot of people got hacked.

thanks for your reply.

When we pop a guard from queue , then we check all of it's neighboring cells or you want to say for each guard popped we will check for each cell in the grid (in that case it will give TLE) ?

can you please elaborate your "queue" approach ?

Do you want to say that we fill all guards based on their "d" (distance till which they can guard) value in queue , then we pop the guard from queue which has biggest "d" value .

The whole point is to not mark cells multiple times which can be reached by multiple guards to avoid TLE .

Are you saying we need to do BFS ( from each guard in the queue ) ? I guess that would work

Please help . Thanks

+4

problem C wasn't world class too . It was also just mess implementation .

Yeah , and similarly you can see that not all blogs are related to necroposting in recent action . Also what is problem if someone has doubt in some old blog ?

A blog for reporting all such matters are already made here but then also -is-this-fft- made a blog instead of posting there . He is teaching beginners to how to behave and he himself doesn't go through all blogs.

Some times beginners also have astonishing ideas . It would just be unfair and will contribute more to ratism . every one should have equal rights here. Punish them for wrong but don't take away for rights.

On rgrg4 → Let's spread some positivity, 6 years ago
0

No flex . He is really good . He achieved red in 2 years which most people achieve in 4-6 years . Don't be jealous of him . Most of the comments in this blog aren't funny tbh and this blog title and description don't align .