- VK Cup 2017 - Round 3
- VK Cup 2017 - Wild Card Round 2
- VK Cup 2017 - Round 2
- VK Cup 2017 - Wild Card Round 1
- VK Cup 2017 - Round 1
- Codeforces Round #405 (rated, Div. 1, based on VK Cup 2017 Round 1)
- Codeforces Round #405 (rated, Div. 2, based on VK Cup 2017 Round 1)
- VK Cup 2017 - Qualification 2
- VK Cup 2017 - Qualification 1

Recent actions

0
Problem B 63ms solution :) In each group of friends,if the group is legal,all points should be connected directly between any pair, so just check if the power of point is equal to the groupsize-1 You may form groups by using union-find set Here's my c++ solution qwq http://codeforces.com/contest/791/submission/25794980 |

0
so good |

0
Got it. There was a mistake in DFS. Accepted Python code: http://codeforces.com/contest/791/submission/25642361 |

0
hey folks.... i attended VK cup Round 1 div 2 contest.... before contest my rating was 713 and after the contest i gained +134 Rating Points... and my new rating should be 847 but in my profile it is not shown 847 but shown my previous rating 713... :( :( so i want to why this is happened please someone explain please.... |

+8
g++ -E and C++ online code formatter to attack it! |

0
I think it's fine. If I thought it's unprofessional, I wouldn't prepare such a problem. |

0
I solved 1 problem in this contest and in my "contests" section it's showing +68 and new rating 1034. But in my profile it's showing my previous rating, 966 :( |

0
Errichto Do you really think it's unprofessional to mention the sponsor name in the statement or that's just to match the problem requirments? If yes, why? |

+5
What is your CD logic? |

+1
Why is it that the graph and the max ratings have been updated but the present rating has not yet been updated? |

+5
It's a bit like saying that 771D - Bear and Company was about strings — there was a string on the input but it doesn't mean much. I would say that the Tree Jumps is a dp + number theory problem. Btw. you're saying that almost everybody solved at most 3 problems, so for them 2/3 tasks were about graphs. It would be true if they solved exactly 3 problems, not "at most 3". |

0
771A - Bear and Friendship Condition and 771C - Bear and Tree Jumps? It was about 24 teams than solved more than 3 tasks on VK Cup 2017 - Round 1. So, for most of participants 2/3 tasks was graphs. |

+6
It seems, that Div2C has some duplicate tests in the final test set, most likely due to multiple hacks with same values or something similar. More exactly, tests #41 and #55 as well as #42 and #45 are the same. I guess this is some sort of bug? Probably not only for this problem? |

0
wasn't there only one graph problem (Friendship Condition)? |

0
Thank you |

0
Thank you |

0
Ahhhhh finally pass problem E. Just a tiny bug in my reference of Half Plane Intersection, which has been used to solve ten or more problems. TAT.... |

0
I got it, what has happened is, that after the overflow the value has become equals to m. I thought probablity of this is too less. My bad luck. :( |

+26
It seems like the max rating and the rating graph has been updated, but the actual rating shown in the profile has not. |

0
for ans to be "YES" there should be (x*(x-1))/2 edges, which would be of the order 10^10 but m < 150000 hence the ans will be "NO" |

0
But why? |

+2
Most likely, you were disqualified. |

0
Hello.All my submissions are not evaluated yet. They are showing 'skipped' in my profile. Can I get to know the reason behind this? |

0
@Errichto This question is regarding problem B of div 2. This code in Python generated TLE while the same logic implemented in C++ passed all testcases. Python: http://codeforces.com/contest/791/submission/25622032 C++: http://codeforces.com/contest/791/submission/25628098 Can anyone help me with this? |

0
Why ? take the example of a tree with 10^5 vertices . Therefore edges are 10^5 — 1 |

+17
Someone is cheating by using that as second account. Edit: Obviously this guy: http://codeforces.com/contest/791/submission/25623078 http://codeforces.com/contest/791/submission/25623055 Compare the tokens used. |

0
but then the number of edges required would be > 150000 so the ans anyway has to be "NO" |

0
actually the number of nodes present in a connected component can be of the order 10^5. So if x=10^5 and it is int then (x*(x-1))/2 will overflow. This is the reason why u got WA |

0
HOW could someone do that !!! |

0
In Div 2 B, I used the fact that each in each connected component there should be an edge between each pair of vertices. Hence the number of edges given should be equal to — summation x*(x-1)/2 for each connected component, where x = size of the connected component. I used int and got a WA and when I replaced it with long long it got Accepted. Now my question is if the answer has to be "YES " then sum should be <= 150000 (since that is the range of M in the question) so int should suffice then why did I get a WA? |

0
It also can be solved using centroid decomposition. |

+8
look through defines |

0
Yep that was the problem.. Python recursion stack size is small.. |

+3
Sorry my bad.. will take it out.. |

+3
Ahh yes your right! Python stack depth is only around 1000. The correct answer here offers a lot of light. Thanks a lot!.. |

+16
wtf is it machine link? |

+4
Happiness is getting into the darker shade of blue:) |

Created or updated the text |

+13
What a pleasure to solve some really original and less typing problems. |

+1
Maybe stack overflow? |

+3
А попроще? |

+4
Buggy Div2.D !! :D |

+1
python stack size of quite less. RE is because of Recursion depth limit reach.Similar BFS solution will pass. |

+3
Dont paste full code in comments, instead paste link to the code |

+3
Но. если у кого то место<=400 , определяется плагиаризм тебе повезло! |

-7
Could some good soul who knows python please explain why this code gave runtime error in pretest 11 which has n=m=150000?. This isn't the first I've got such an error doing DFS in python. I really want to know as I'm finding it impossible to figure out on my own. |

+11
Hah, I wouldn't ever think that there is ambiguity in my comment =) I see what's the problem — in different browsers these stars look differently. |

0
Just go on updating the parent node from it's children node. All the nodes in children's subtree will reach parent node in just prevDistance+1. |

0
As it turns out, I screwed up in the same place
¯_(ツ)_/¯ |

+3
no |

+4
He meant 5 star rating I guess. |

+1
Well, I had some frustrating bugs. |

+3
If I took 401 place but 399 place was taken by two people, will I participate in the 2 round? |

+14
Tnx for the When are we able to solve the problems on problemset? |

+1
Watch out for Aaaaaaaaaaa, which is 11 characters, any name longer than 10 character is not allowed. I got WA on first try because of this. also your output on the judge is A A A A A A Aa Aa |

0
I was doing this, but I couldnt figure out how to get the distances for the paths that go through the father node. |

-23
its* |

+31
It seems that there is more than one |

+8
You basically root the tree in any node and do two DP/DFS passes: First, compute the solution for all subtrees — you can easily do that by storing number of nodes in distance In the second pass, you just need to compute remaining distances using DP values in parent of every node: sum of distances above the node = sum of distances above its parent + sum of distances in all parent's children except for the current node + the same trick with modulo (index hell inc.) |

+67
On task D, div 1, my solution in An example on which I get TLE: |

0
Yep, or n = 92684 and m = 148290... System test 29 |-( |

0
When the system testing begins? |

+1
Your solution gives this output "A A A A Aa Aaa Aaaa Aaaa" on my computer which is wrong |

0
Nothing is wrong. |

+17
"rated"? EDIT: If you didn't like problems, I will be glad to hear what exactly was bad for you. Maybe I can avoid it in the future. |

+38
Its too vulgar :-P.. |

+7
I don't know about |

0
No |

+2
what's wrong with this output A A A Aa Aaa Aaaa Aaaaa Aaaaa in pretest 1 problem c Div2 |

0
How to solve div2 C? |

+12
But the fact is that There were those who used |

+7
The editorial is ready but it will be imported only after the system testing. Sorry for the inconvenience. And I'm glad you liked the problems. |

0
No, it was just a dp on tree problem. For a node add the answer for its subtree and then add answer for all its siblings. For this you just need to store at each node frequency of nodes in subtree with distance%5. |

+17
hack test for problem A (VK Cup): n = 65538 m = 98305 and any edges which unite all 65536 vertices in one component. let x be number of vertices in component let y be number of edges in component Who wrote |

0
Oops. |

+25
IMO the problems are a little harder than usual, but are very nice. How to solve Div1 D? |

+11
Usually after the system tests. |

0
What is the answer for this test case? |

+3
¯_(ツ)_/¯ |

0
Is div 2 D supposed to be a lazy propagation segment tree after doing dfs ordering? |

0
When will be rating updated ? |

-18
When u have coded the solution to easy problem in a contest and the computer crashes and never reloads till the end of the contest. |

0
I guess he meant div1C. |

0
Div1D pretest 9? |

0
Edit: I see, you were asking about a different problem. |

+19
Centroid decomposition is overkill. Just do extremely tedious subtree DP. |

0
Still don't understand. Could you elaborate, please? |

-20
I am the god of hacking (Problem A in VK Cup) |

0
I had 3 successful hacks on DIV 2B
answer is NO |

0
Tried using centroid decomposition.... Still got a TLE on pretest 9... I guess I need some optimization |

+6
Agreed. |

+30
Suspicious |

0
You should solve problem for one vertex and solve for other vertexes using answer of a parent. |

0
Div 2 Problem D is a nice Problem :D Someone explain his solution please :D |

0
Do you know how to solve it? |

+1
submit C 10 seconds before the end of the contest, waiting.. waiting... Contest is over !! submission not there good job servers, this website is so laggy these days |

+2
RIP RATINGS... |

+31
My brain after solving Div1-B. |

+5
How to solve Div 1 C. (unofficial) ? |

0
That's frustrating... a lot of solutions for B in my room were wrong -- mine included -- and I couldn't hack anything at the end of the contest =| |

Codeforces (c) Copyright 2010-2017 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Mar/26/2017 06:20:39 (p1).

Desktop version, switch to mobile version.
User lists

Name |
---|