Hello everyone!
It's time for the first round of the VK Cup 2012. Let me remind you that the registration for this round is also required and it's closed five minutes before the start.
The problemset has been developed by various authors from VK, Codeforces and Saratov State University. We worked hard to make this time interesting for competitors and to have the best ones in the next round.
This round will be run according to Codeforces rules: with room assignments, hacks and usual score decrease. It will be rated for you either if you participate in VK Cup or just solve it as a normal round.
Top 700 competitors will advance to the second round immediately. 50 more competitors will advance to the second round via the first unusual rules wildcard round on March 18.
There's one wish for everyone from Burunduk1: “Please, to make the round even more interesting for you, read the statements of ALL problems.”
Good luck and try to win!
Update: congratulations to all competitors with 1712 or higher score: you advance to the second round!
Update2: editorial is available: http://codeforces.me/blog/entry/4097
Update3: Several cheaters have been removed, the results now slightly differ. All participants with 1684 or higher score advance now to Round 2. Everyone else is invited now to the first wildcard round, the last chance to advance.
There’s also one wish from everyone to the Authors: "Please, Make the English Statment of the problems, good and correct!"
I guess authors will not change statements 5 minute before the contest:)
It was just a wish! :)
+5 mins. Maybe they are changing? D:
Good luck ALL :)
I cannot submit. (unofficials) why?
No submit option for competitors out of contest? It kind of spoils the "rated round" thing if you cannot submit.
I noticed that when I hit the register button, the front screen would still say that I was not registered, but when I went into the Friend Standings area, it displayed my name. (unofficial with the * by it)
EDIT: Did anyone else see this?
WTF??? I can't submit even though I am a registered user!
WTF??? I can’t submit even though I am a registered user! quick repair this thing
Hey, I can’t submit for the contest VK Round 1 even though I’m unofficially registered. Are we just not allowed?
i'm sure i registered the contest as an unofficially participant, but i can't submit my solution!
so it will be unrated for out-of-contest participants?
I'm sorry. Yes. It is just the result of wrong contest policy setup. It will not be such issue in the future. Sorry again.
It's so, so good for us, losers-morons :)
I think we (unofficials) can submit now, but is this unrated then?
it seems to be unrated. the official notice mentioned this.
I wish the system test to be fast !!! :D
Quickly-put comments about A,B and D Edit: And now C
It was a nice problem set, too bad we unofficials had that bug that made us unable to submit . I think it would have been a fun contest otherwise.
Anyone else got an O(n*k) solution to D that's timing out? (Slightly less than) 50,000,000 iterations isn't too much... I've tried it with C++ vectors and lists. Still too slow.
my O(nk) (c++ too) passed in 390ms without any optimisations. Seems, your solution isn't O(nk) or has very big constant factor
It is O(n*k), and I fixed it. First I reworked it to use just a regular array (no vectors no lists). That halved the times, but was still too slow.
Here's the real problem. Originally I had an array like this: unsigned long long PS[50005][505];
That one doesn't work. But this one does: unsigned long long PS[505][50005];
The problem with the first set up is that my main loop was skipping around the memory a lot. That change alone reduced the running time on my machine by about two thirds.
Lesson learned :)
Why did you use long long? I had an Array[1..50015, 0..515] of LongInt in my solution, because I stored numbers of vertices on a specified distance from a specified vertex in this array, so considering that N <= 50000, there was no point in using 64-bit integers. Or did you store something else in this array?
PS[k][i] = DP[k][i] + DP[k-2][i] +..., where DP[k][i] is the number of vertices whose distance from vertex 'i' is exactly 'k'. (Note that I'm only storing PS, not DP). By the way, I'm not using DFS. Just a loop.
My solution is based on the following relation: DP[k][i] = Sum_{j is a neighbor of i} {DP[k-1][j] — DP[k-2][i] + DP[k-3][j]- DP[k-4][i] +...}
Basically a principle of inclusion/exclusion solution.
My careful O(nk) passed in 190 ms. O(nk)s differ :)
My O(nk) solution in Pascal passed in 410 ms.
A dfs for each node times out when the graph is dense.....
dfs for each node passed system test...
My O(nk*log(n)) solution passed system tests)
It will be good to show the position of the submission in the queue near '?' sign during testing.
+1
and points that you will get if it'll pass
maybe it would be better to see the place which you would take (in that context) if the solution passed. Because points don't tell much (at least for me)
Congratulations to RAVEman!! Results aren't official yet but as he won't be removed from the contest as he's obviously not a cheater I think we can consider him the winner of the first round ever of the VK Cup! Great job RAVEman!
Why can't I view the test data?
Still no test cases?
Sorry tourist, meret got the second place because he hacked me...
Very funny comment :)
I love this comment :)
Yes, I think it's the best I've ever seen :)
this round will be unrated?
ok...rating updated at last..
It will be unrated only for the "unofficial" contestants.
Problem C's name was very interesting for me. it reminded me "Avada Kedavra" which is the killing curse in "Harry Potter" :D
actually it was an incantation in the Middle Age. http://en.wikipedia.org/wiki/Abracadabra
By the way, to rate an event that is not opened to everyone kind of diminishes the rating's value. I mean, the rating is designed to compare coders, how can it be just if part of the coders weren't given the chance to excel (or not) in some of the competitions, but others were?
In most tournaments the contestants either decide not to participate or get eliminated or miss registration, but the fault for not getting a spot in the match(es) is their own. In this case you are just saying "Well, some of you can enter, the others cannot." It will be rated for those who WE decide can enter.
The same goes for TopCoder during the TCO round(s), excluding top participants from the Qual round and under 18 participants from the TCO itself. Actually, I find CodeForces being more accurate and fair in that direction, making Qual rounds non-rated and doing parallel, rated rounds with the other rated tournament matches. I do understand that you had all good intentions to allow parallel participation of all coders, wishing to take part of the contest, however due to some problems it didn't turn out as intended.
Last, I do not ask for the official round to become unrated, neither the other one to become rated. Nor I'm criticizing the CF system or problems — I like them and I appreciate the time and effort you guys are putting into that. I'm just pointing out a problem with the rating systems (both CF and TC) that has been bothering me for some time.
Also, it may be good to give ability to everyone to register either as rated or unrated. So in that case if someone thinks that current round may affect his rating in a not too fair way, then he can choose "unrated" option during registration.
what is the point of this action? increasing a load on servers, which is very important for users who want to get honest results?
if you don't want to change your rate you can always get in a "virtual contest" later. it even supports real-time results.
In the case when someone is willing to participate in VK Cup Round 1 and pass to VK Cup Round 2, but he doesn't want to participate as rated.
I don't see the point here. It seems to me that rating is important because it reflexes my performance. Hence, the more unrated rounds you participate in, the less significant your rating is.
Just for fun, what will happen if your idea is applied? Well, I will try my best to become red, then choose "unrated" for all the following contests =)
Both TC and CF's rating formulas are able to correctly update rating in contests that have rating distributions different than average. As they are based in expected position and all that stuff.
I don't really think this is a problem. You could use roughly the same argument against certain time slots that are popular in some continents while it is 3:00 AM in other places. No competition is truly open to everyone.
CF didn't rate the qualification round because of its structure that allowed tons of ties and it would have really caused fun rating outputs.
Round was supposed to be rated for everyone, but technical mistake in round setup spoiled this
even i'am a official register for the round... why my login is access denied during the first hour of the round
Rules say that most rounds will be open for rated participation to out-of-championship participants, but can those participants who have already advanced to round 2 participate in Wild-card round 1 as rated?
As I understand, Wildcard rounds will not be rated
Hii,
Can anyone suggest me why my O(nk) solution is giving me a TLE?? i'm just doing 'n' times DFS with a Depth bound of 'k'.
You can find my submission here.
Thank you