0
Yes it is 
Created or updated the text 
0
TMKC 
Created or updated the text 
0
I don't even understand the problem. Could you help me? 
On
Endagorion →
Codeforces Round #513 by Barcelona Bootcamp (rated, Div. 1 + Div. 2), 31 hour(s) ago
6
Here is a clean implementation of this approach. 
On
Endagorion →
Codeforces Round #513 by Barcelona Bootcamp (rated, Div. 1 + Div. 2), 31 hour(s) ago
Created or updated the text

0
same problem 
0
for the same code once gave wa on test case 8 and next time gave runtime error on test case 1? whats the problem with the online judge? 
0
Is this camp same with https://itedu.mipt.ru/en/acmmenu/aboutworkshops/springtraining2019? 
0
Someone please help me with problem C. I couldn't understand the problem. 
0
I tried to solve problem C with Binary Search but failed.. whats wrong with my algorithm? thx :) here is my submission 46606310 
0
LooOoLOoOoOooOoLoooOooOoOL. LMAO. ROFL. Might as well don't post your solution here if you are going to post code without any explanation. 
0
python 6lines AC solution to problem B

+5
Educational system is a modification to icpc system, not the cf one. Over there all the submissions after AC don't count, the same is here. 
0
Auto comment: topic has been updated by PikMike (previous revision, new revision, compare). 
0
That's odd though. On "normal" codeforces rounds, only the LAST submission to pass the pretests in judged on systests and that one submission will matter towards your score. How come it's different for "educational" rounds? 
+38
(I will use N to denote size of a trie) Don't know about intended; I did following DP: [subtree that we have to solve (N)][Depth of the first taken vertex on path from subtree root to the overall root(N)][how many vertices do we want to take in this subtree(K)]. So I have N * N * K states, and in order to solve the state I'm running knapsack over all sons of the vertex. Adding up those knapsacks for all vertices, we'll get N * K * K over whole tree (each vertex is a son of exactly one other vertex, and it will be considered in K * K possible transitions in knapsack), plus we have to run it N * K times for all possible combinations on two other dimensions of DP, which leads to the bound of N^{2} * K^{3} with a really low constant. 
+26
When will tutorial be available? 
0
I see, that makes a lot of sense! 
0
hi there i have a problem. recently, i got a message that said your round is going to be skipped. bu at the end, it said that if you think there is a problem, you can send a message here. i was getting +98 from this contest, so i think there was no reason to skip this round by my self. thanks. 
0
Intended solution for F? I can only bound my solution with , where S is the sum of lengths of all strings (that also may be slightly wrong, to the better or worse), but the constant is incredibly low and I can't come up with a worstcase. It passed with 233ms or so. 
0
I'm still sort of confused about the Educational rounds. Will there be a system test phase after the open hacking phase? Or the contest just finishes once the open hacking phase finishes? 
0
In Educational rounds the systest consists of the hack inputs used during the open hacking phase. If the input needed to hack the code is very specific, it's possible that it passes the other hacking inputs and thus the systests. 
0
Shit just got real...System testing is just lit this time... 
0
Would that really matter though? There will be system test to eliminate those wrong answers if nobody hacked them anyway right? 
0
Ok. Understand it. Thank you! 
+5
Yes, you will. 
0
That's sounds reasonable. Moreover, if the first one failed the systests while the second one passed, will I get penalty for the first one? 
+1

9
No one cares. 
+5
The earliest submitted solution to get AC on systests will be considered. 
0
Ohh, sorry. Thank :3 
+5
dp[x][j — 1] = ind; > dp[x][j — 1] = lower_bound(g[x].begin(), g[x].end(), ind) — g[x].begin(); FeelsBadMan 
+29
I can help you with that :P. In fact, the book "Algorithm Design" by Jon Kleinberg, Eva Tardos can be truly revealing about that. Go to page 396(Chapter 7 Network Flow). This problem is known in the literature as "Project Selection". Enjoy. PD: The book i pointed to you is amazing, there are other non straight forward applications. My suggestion: Read other chapters as well. 
+5
Think of it like this. Initially we have taken all "edges" to form our subgraph. If we cut an edge connecting source to "edge" it means we don't take the "edge" in our subgraph, similarly if we cut an edge from vertex to sink we don't take the vertex in our subgraph. If an edge is present in our subgraph then the 2 vertices it connects must be in our subgraph too. If an edge is not present in our subgraph then atleast 1 of the 2 vertices it connects must be out of our subgraph. In this network any cut will fullfill these rules(try to see why this is true) and to maximize the answer we just need to find the mincut. 
0
Thank You 
0
In my defence, however weak it might sound, I primarily code in Python. Which still is not a reason to miss semicolon. 
0
r always must be < g[a[i]].size(), because g[a[i]].push_back(i) and r = lower_bound => r always < g[a[i]].size() why UB??? 
0
and...??? why is it wrong??? 
+5
r = g[a[i]][r]; //UB 
0
oh ;; thanks! 
+1
I think the function is not strictly increasing 
+10
Can someone elaborate why this works and what's the intuition behind it? 
+3
For problem C I wrote code in c++ in ideone it ran for sample test cases well.But on submitting it is giving runtime error with "Exit Code is 1073741819" for the very first test case I don't know what the exit code means? Can anyone explain why and when that exit code occurs? 
0
Why does Binarysearch WA for C? 
+2
Just check your IF statement carefully. you put a ';' just after the if (i < matrix[j].size()) statement which caused the wrong answer. 
18
Hello! idk if this is intended but I found out I could submit for practice before contest ended, this seemed really cool however when I get wrong answer I can see the test data!!! which means I can hack any code I want that gives Wrong Answer, is this the intention for the educational CF? 
16
Another HackerForces contest!!! 
0
Many thanks~ However, I think I should go to bed now because it is already 1: 30 in China now... 
0
thanks~ 
+6
You can indirectly get an extra bonus: if you hack someone that is higher than you in standings and he falls below you, you get a better position in final standings and a bit more rank. 
+3
Can anyone tell me why this code has been blowing up with undefined behaviour on Codefroces servers ?. It works fine on my machine and ideone.com . My Submission 
17
HELP ME PLS!!! PROBLEM E This submission 46340090 Wrong answer on test 11, but on any other compiler 11 test — ok (and on my local machine). I do not understand why and I think that the problem is in the cf compiler, help pls. //11 test// input: 18 1 3 3 1 3 1 1 3 4 2 2 2 1 2 1 4 1 4 3 ans: 9 
0
And what if I hack successfully? Will I get a extra bonus or only the one who is hacked will lose his "accepted"? 
0
Thanks... 
+5
No. 
+15
Maybe this will help https://codeforces.com/blog/entry/55902 It says that "Diagnostics~" issue might be due to undefined behavior. Make sure that you never try to access index 1 of an array or something like that. 
+1

+4
First, if sum(a)<2*(n1) then you can't build a connected graph at all. Otherwise you need to build a tree that is maximally close to just a path. My approach was like this: first, build a path from vertices with degree 2+, then add a vertex with degree 1 (if there are any) to the first and last vertices of that path. Add other leaves anywhere respecting degree constraints. 
0
how to solve C?? 
+6
Fix the two vertices with lowest a as the ends of the diameter. Put all vertices with a >= 2 between them. Then check if you can put the remaining vertices (they have degree 1) on them. 
8
No 
0
could anyone please tell me what is this hell > Diagnostics detected issues [cpp.clang++diagnose]? only due to this i could not submit my B problem. although my code is working fine on my system. 
0
Will I get a penalty if I hack unsuccessfully? 
+10
How to solve D? 
10
If the first passes it will be considered. Else the second 
0
The last submission will be judged 
0
yeah tricky with false test explaining 
+23
Make a flow network and represent each edge as a vertex. Connect each "edge" to the source with capcacity the weight of the edge. Connect every vertex V of the graph to the sink with capacity a[V]. Finally connect each "edge" with the 2 vertices it connects with capacity Infinity. The answer is sum of weights of all edges — min cut in this network. 
0
Is Dinic's algorithm enough for Problem G? It seems that the complexity is something like O(n^{3}). By the way, I got accepted with Dinic's after I got accepted with FordFulkerson. Would someone tell me which submission the system will use to judge? 
+21
Make a flow network and represent each edge as a vertex. Connect each "edge" to the source with capcacity the weight of the edge. Connect every vertex V of the graph to the sink with capacity a[V]. Finally connect each "edge" with the 2 vertices it connects with capacity Infinity. The answer is sum of weights of all edges — min cut in this network. 
0
Really good contest, tricky A though :D Can anyone share their approach for G? I saw G started getting accepted solutions much before E and F started getting accepted. 
+3
that's not fair I actually wasted 15 min on A because i cant understand the second test case until the Global announcement.... maybe I would have solved C I'm just putting final touches on my solution 
+7
halyavin is here. 
+5
How to solve G?? 
0
challenging problems are today. 
+5
Auto comment: topic has been updated by PikMike (previous revision, new revision, compare). 
+30
Clashes with Carlsen vs Caruana tiebreak 
+11
"Is it rated?" Life Hack: Read the title! 
0
ceil? 
0
Yoo!! Another contest by Pik Mike How To lomk Him ? we Didint have Div3 For Long Time And Is It Rated ? that isn’t something to be happy about 
+3
sorry xD 
0
Everytime I said "Hope we all have a good rank and I want to become expert"then got a bad rank,so I say hope everyone enjoy this contest this time :D 
24
We haven't seen div3 for long time. 
0
I apologise, I missed that too. Good luck for the contest! 
0
Oh, I missed that. Then it's a long time before Mail.Ru round 3. 
+40
Mike was problemsetter at Mail.Ru round 3, which was on Sunday. Idk if 3 days are so long 
+30
(int) Round 55 Div. 2 = 28 November :D 
0
Good 
+37
Can something be done please to avoid clashing with the SRM? 
0
except for div.3, yeah! :) 
0
It's been so long since MikeMirzayanov appeared as a problem setter(except div. 3) :) 
+62
Yoo!! Another comment by HARRYPOTTER0 
37
Yoo!! Another contest by PikMike 
Created or updated the text 
Created or updated the text 
Created or updated the text 
Created or updated the text 
On
MikeMirzayanov →
Harbour.Space University and Remy Robotics: Master's in Robotics programme scholarship, 2 months ago
Created or updated the text

Name 
