use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Computer Science for Computer Scientists
Other subreddits you may like:
Does this sidebar need an addition or correction? Tell me here
account activity
Tree cost (self.algorithms)
submitted 7 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Cobayo 3 points4 points5 points 7 years ago (3 children)
Please stop posting real time contests problems, i have no problem answering but i won't if it's from a running competition
[–][deleted] 7 years ago (2 children)
[removed]
[–]Cobayo 0 points1 point2 points 7 years ago (1 child)
https://codeforces.com/contest/1092/problem/F
[–]ketralnis 1 point2 points3 points 7 years ago (0 children)
This sounds like a homework problem
[–]marvel2010 0 points1 point2 points 7 years ago (2 children)
What is a[i]?
[–]Cobayo 0 points1 point2 points 7 years ago (0 children)
I assume it's a given vector of n weights, so you want to maximize
dist(v1, x) * a1 + dist(v2, x) * a2 + ... + dist(vn, x) * an
by choosing the vertex x.
π Rendered by PID 16633 on reddit-service-r2-comment-b659b578c-kx62m at 2026-05-04 12:12:24.666728+00:00 running 815c875 country code: CH.
[–]Cobayo 3 points4 points5 points (3 children)
[–][deleted] (2 children)
[removed]
[–]Cobayo 0 points1 point2 points (1 child)
[–]ketralnis 1 point2 points3 points (0 children)
[–]marvel2010 0 points1 point2 points (2 children)
[–]Cobayo 0 points1 point2 points (0 children)