Комментарии
На HolkinPVCodeforces Beta Round #72, 12 месяцев назад
0
Hi, I was looking at some of the solutions for 83C Track.  There were two very fast solutions (runtime ~ 50ms).  I checked them out and they seems to be doing fairly straight forward path search.  Any ideas on why they are so much faster than the other solutions (which are also ding path search)?
На Nedy88Codeforces Beta Round #26 (Codeforces format), 21 месяц назад
0
Interesting.  Why does this approach always gives a solution whenever possible?
На Nedy88Codeforces Beta Round #26 (Codeforces format), 21 месяц назад
0
This helps. Thanks.
На Nedy88Codeforces Beta Round #26 (Codeforces format), 21 месяц назад
+5
Can someone throw some light on how to work out D. Tickets?  I see from ACed solution that the formula is 1.0 - (n! m!)/((m-k-1)! (n+k+1)!).  But, why?
На Nedy88Codeforces Beta Round #26 (Codeforces format), 21 месяц назад
+12
I believe the answer to that will be "Yes".  See Codeforces format description 8:
You may resubmit the solution at any moment, but it may reduce your score. It happens if resubmission is successful (i.e. passes all the pretests + previous hacking attempts). In this case, the previous successful attempt would be considered as a reason for penalty (see item 3).


На ShtrixCodeForces Beta Round #15, 2 года назад
+4
Anyone having trouble connecting to CodeForces during the match?  My keep getting cut off from the site.
На KADRCodeforces Beta Round #13, 2 года назад
0
OK, I found a counter example:
10
1 2 3 4 5 6 5 4 3 2
 =(
На KADRCodeforces Beta Round #13, 2 года назад
0
Hmm...the answer for that is 4, no?

First it let M = 1, then r = 2, k = 2 and T = 1.  Next, M = 5, r = 2, k = 0, T = 3.  It will then change everything in [0, r] = [0, 2] to 5, or just change 1 to 5.
На KADRCodeforces Beta Round #13, 2 года назад
0
Sorry for double post.  This seems to be a problem of CodeForces?
На KADRCodeforces Beta Round #13, 2 года назад
0
Can you tell me why the following gets Wrong Answer?

Let v[0..n-1] be the input sequence.

1. Let x = 0, cost = 0.
2. If x >= n, output cost and exit.
3. Let M be the minimum of v[x .. n-1].
4. Let r be the largest index in [x, n-1] such that v[r] <= M.
5. Let k be the number of indexes i in [x, r] with v[i] > v[r], and T be the number of indexes with v[i] <= v[r].
   Note that k + T = (r - x + 1).
6. If k > T, then let M be the next larger element in v[x .. n-1] and goto step 4.
   If k <= T, then change all values in v[x .. r] to M, record the cost.  Let x = r + 1 and goto step 2.


Thanks.
На KADRCodeforces Beta Round #13, 2 года назад
0
Can you tell me why the following gets Wrong Answer?

Let v[0..n-1] be the input sequence.

1. Let x = 0, cost = 0.
2. If x >= n, output cost and exit.
3. Let M be the minimum of v[x .. n-1].
4. Let r be the largest index in [x, n-1] such that v[r] <= M.
5. Let k be the number of indexes i in [x, r] with v[i] > v[r], and T be the number of indexes with v[i] <= v[r].
   Note that k + T = (r - x + 1).
6. If k > T, then let M be the next larger element in v[x .. n-1] and goto step 4.
   If k <= T, then change all values in v[x .. r] to M, record the cost.  Let x = r + 1 and goto step 2.


Thanks.
На KADRCodeforces Beta Round #13, 2 года назад
0
Can you post Test Case 8 of Problem C?  Thanks.
На meretCodeforces Beta Round #11, 2 года назад
0
can you give some insight for how to solve E?  Thanks.
На meretCodeforces Beta Round #11, 2 года назад
0
Same problem here.  But I guess that doesn't really make a big difference.
На NerevarCodeforces Beta Round #10, 2 года назад
0
Just looking at the abstract, the algorithm requires O(r) time, where r is the number of tuples where the sequences match, and that is one big number, right?
На NerevarCodeforces Beta Round #10, 2 года назад
0
I think he means, in American English, brute force, or enumerate.
На NerevarCodeforces Beta Round #10, 2 года назад
0
I still cannot see why the relationship between the minimum counter example w and a[i-1] - 1 is intuitive or obvious.  Any insight into this?  May be I am just stupid.
На NerevarCodeforces Beta Round #10, 2 года назад
0
Not sure who David Pearson is, but that was one good paper.  I recommend it to everyone!
На NerevarCodeforces Beta Round #10, 2 года назад
0
Wow, that's like the exact thing.  Did you know this before the contest?  I guess I don't read enough.
На NerevarCodeforces Beta Round #10, 2 года назад
0
Thanks for the reference ;)
На NerevarCodeforces Beta Round #10, 2 года назад
0
Can someone show me how problem E works?
На NerevarCodeforces Beta Round #10, 2 года назад
+1
How come we cannot view code of other people's submissions?
На MikeMirzayanovTutorials crowdsourcing, 2 года назад
0
Having things split up has another fundamental advantage: Newcomers may want to contribute, but find it hard to understand/solve the harder problems.  More seasoned coder may want to contribution, but do not want to waste time on the easier/boring tasks.  So, with the split, newcomers will write about the easier tasks, while more seasoned coders can focus on the more difficult problems.


На MikeMirzayanovTutorials crowdsourcing, 2 года назад
+1
Yes.  The idea of having to submit hints should work quite well.  Here is another system came to my mind.

1.  For each contest (after actual contest), there is a page linked from the contest page to a tutorial / summary page.

2. There is a short match summary - I assume Mike or some other admins can write a little bit about it, then other statistical information can be automated.

3.  For each problem, there are tutorial(s), written by different authors / volunteers.  On the page itself only one is shown: the one with the most +, breaking tie by contest rating of author.  But, there is an option to see other tutorials (for the same problem, by a different author, sorted by +, breaking tie by rating of author).  A reader can then rate the tutorials with +/- (similar to #4 above).

4. An author can write at most one tutorial (post) for each problem/language combination.  He/She can, however, always edit and improve his current version, and previous version are also available to readers (like TopCoder Forum).  This is to prevent information overflow or having to look through chains of posts for information.

5. Tutorials for a different language (Russian, Chinese, etc.) can also be posted, in which case readers seeking help in a different language can get it.

6.  Readers can post comments for each tutorial, suggest improvement, but only the original author can make changes to it.

OK, let's see some use cases.

1. Code Forces Round 8 occurs.

2. I almost got problem D, but not yet, so I spent some more time playing with it.  Finally I solved it a few hours after contest and decided I want to write about I find out.

3. I write a tutorial about it.  At that time other people might have written tutorials for this problem, in which case I may decide not to spend extra effort.  Otherwise, what I wrote will be the first to appear for everyone else. (I can also choose to write short hints for different problems, and they will appear as tutorials written by me).

4.  Someone reads my tutorial, are unclear about certain explanation, found some typos.  He post a comment on this tutorial, and I got a notification.  

5.  I decided to make changes and improve my writeup for the problem.

6. Another reader reads my tutorial, and decides to write/translate it in his own language (Russian, Chinese, etc.)  Now, there are tutorials in multiple languages.  Since all posts and edits are time-stamped, the original write can always claim authorship (and the other becomes a translation).

7.  Anyone can write for any problem at any time after contest, things will increase and improve, and everything for one problem is located at one place.

It doesn't seem to be too much work on the infrastructure - just need a specific page for tutorials for each contest, and each piece of tutorial can be considered as similar to a post, with addition restriction that each author/problem/language combination only exists once, and with a different +/- system. 

As for reward, the number of +'s received on tutorials and number of first place tutorials can be a statistic on the author's page (may be even with ranking, not sure if too much ranking is a good thing).
На MikeMirzayanovCodeforces Beta Round #8, 2 года назад
0
I am not sure.  It shows up on my Calendar on Wednesday, but it is on Thursday.  My time zone is synchronized with TopCoder so I am fairly confident.


На MikeMirzayanovTutorials crowdsourcing, 2 года назад
0
It seems there isn't an easy way to edit a tutorial, there is only a way to write a whole one.  For example, if I want to write the tutorial, what do I have to do?  For now, it seems first I have to solve all the problems in the contest, then I have to write out solution to each one, explain them and submit it to MikeMirzayanov.  However, that is a lot of effort.  What if I am only interested in writing the solution for one problem?  Sometimes I want to write a tutorial for only one or two problems, but not all 5.  What if I can write something , but not necessarily right away (like in a few weeks)?   There is no Wiki-style template set up where people can edit things right away.  At the same time, if there is we will have a problem with quality control.  This can be solved by some sort of evaluation system, but it doesn't exist at the moment.  I really like CodeForces style contest, but it needs more infrastructure for some things.  For one, may be we can have a more elaborate searchable Forum, then Wiki Pages for problem tutorials (but each user's contribution ought to be separated), and then may be even a way for problem setters to submit problems, if that ever becomes a need.  In general, there should be better ways to locate information.

All of the above is easy to say, but I know for a fact it means work for the administrators to implement things.  At the moment, CodeForces is pretty good and functional, so may be improvements can be made slowly for the future.


На MikeMirzayanovCodeforces Beta Round #8, 2 года назад
0
Well, for one thing, TopCoder SRM 467 is marked on the wrong date, as far as I can tell.
На MikeMirzayanovCodeforces Beta Round #8, 2 года назад
0
This works, but will it be updated at all times permanently? (i.e., whoever is maintaining that Calendar may get busy in life and stop updating.)


На MikeMirzayanovCodeforces Beta Round #8, 2 года назад
+6
Hi.  Is it possible to have a public Google Calendar with the match times updated on it?  This saves me trouble of converting between Moscow and New York time all the time ;)
На MikeMirzayanovMistake in email notification, 2 года назад
0
I see.  Thanks!
На MikeMirzayanovMistake in email notification, 2 года назад
0
It says 15:00 in my e-mail.