Found problem through gym contest: original contest reference?
source link: http://codeforces.com/blog/entry/109052
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Relatively classic problem:
You are given a graph on n vertices labeled from 1 through n, with m undirected edges. Two vertices u and v are called neighbors if there exists an edge connecting them.
Your task is to assign each vertex a positive integer value such that for all , the value of the ith vertex is strictly smaller than the sum of the values of its neighbors. If there does not exist such an assignment, then please report so.
and the output assignment .
1 2
2 3
3 4
4 2
Answer: 1 20 10 10
Recommend
-
48
README.md
-
6
The standard official code of COCI 2012-2013 Contest 4 Problem ESEJ is DEFINITELY WRONG!!! The standard...
-
2
too_shy_to_ask_with_real's blog ...
-
4
gym: HIAST Collegiate Programming Contest 2015 gym: HIAST Collegiate Programming Contest 2015 ...
-
8
Learner99's blog Gym Contest with E...
-
3
[Gym] Heltion Contest 1 24 hours ago,
-
2
Build a home gym around the original Peloton Bike at new low of $1,050 (Reg. $1,445) ...
-
4
Oleksandr Kulkov Contest 3 in gym + tutorial and comments Oleksandr Kulkov Contest 3 in gym + tutorial and comments
-
12
ahmad_alghadban's blog [GY...
-
2
Invitation to Gym Contest — Alpha IV (by AlgoRave) Invitation to Gym Contest — Alpha IV (by AlgoRave)
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK