Educational Codeforces Round 96 (Rated for Div. 2)

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
1430 Educational Codeforces Round 96 (Rated for Div. 2) FINISHED False 7200 134772863 Oct. 11, 2020, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 734 ) G Yet Another DAG Problem PROGRAMMING bitmasks dp flows math

B'You are given a directed acyclic graph (a directed graph that does not contain cycles) of n vertices and m arcs. The i -th arc leads from the vertex x_i to the vertex y_i and has the weight w_i . Your task is to select an integer a_v for each vertex v , and then write a number b_i on each arcs i such that b_i = a_{x_i} - a_{y_i} . You must select the numbers so that: It can be shown that for any directed acyclic graph with non-negative w_i , such a way to choose numbers exists. The first line contains two integers n and m ( 2 <= n <= 18 ; 0 <= m <= dfrac{n(n - 1)}{2} ). Then m lines follow, the i -th of them contains three integers x_i , y_i and w_i ( 1 <= x_i, y_i <= n , 1 <= w_i <= 10^5 , x_i ne y_i ) -- the description of the i -th arc. It is guaranteed that the lines describe m arcs of a directed acyclic graph without multiple arcs between the same pair of vertices. Print n integers a_1 , a_2 , ..., a_n ( 0 <= a_v <= 10^9 ), which must be written on the vertices so that all b_i are positive, and the value of the expression sum limits_{i = 1}^{m} w_i b_i is the lowest possible. If there are several answers, print any of them. It can be shown that the answer always exists, and at least one of the optimal answers satisfies the constraints 0 <= a_v <= 10^9 . '...

Tutorials

Educational Codeforces Round 96 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
95302113 rainboy G Oct. 11, 2020, 10:13 p.m. OK GNU C11 TESTS 87 358 3174400
95280669 rainboy G Oct. 11, 2020, 3:48 p.m. OK GNU C11 TESTS 87 358 3174400
95289457 2yearsman G Oct. 11, 2020, 5:33 p.m. OK GNU C11 TESTS 87 358 3174400
95305065 gzhffIThh G Oct. 12, 2020, 12:41 a.m. OK GNU C++11 TESTS 87 31 12083200
95307224 2018liuzhiyuan G Oct. 12, 2020, 2:13 a.m. OK GNU C++11 TESTS 87 358 3174400
95269378 lijyya G Oct. 11, 2020, 2:12 p.m. OK GNU C++11 TESTS 87 389 16793600
95268963 Lu_Anlai G Oct. 11, 2020, 2:06 p.m. OK GNU C++11 TESTS 87 390 3276800
95268749 Lu_Anlai G Oct. 11, 2020, 2:03 p.m. OK GNU C++11 TESTS 87 390 3276800
95268898 Lu_Anlai G Oct. 11, 2020, 2:05 p.m. OK GNU C++11 TESTS 87 436 3276800
95268834 Lu_Anlai G Oct. 11, 2020, 2:05 p.m. OK GNU C++11 TESTS 87 452 3276800
95283467 georgerapeanu G Oct. 11, 2020, 4:24 p.m. OK GNU C++11 TESTS 87 577 3174400
95283808 RoadToCM G Oct. 11, 2020, 4:28 p.m. OK GNU C++11 TESTS 87 577 3174400
95256464 cwcszzh G Oct. 11, 2020, 11:40 a.m. OK GNU C++11 TESTS 87 608 10547200
95310433 Bhj2001 G Oct. 12, 2020, 3:47 a.m. OK GNU C++14 TESTS 87 31 204800
95304574 Devil G Oct. 12, 2020, 12:15 a.m. OK GNU C++14 TESTS 87 31 409600
95304595 Devil G Oct. 12, 2020, 12:17 a.m. OK GNU C++14 TESTS 87 31 409600
95306900 jakedavis G Oct. 12, 2020, 2 a.m. OK GNU C++14 TESTS 87 264 216883200
95302121 rainboy G Oct. 11, 2020, 10:13 p.m. OK GNU C++14 TESTS 87 389 3174400
95315836 Even_Bao G Oct. 12, 2020, 5:52 a.m. OK GNU C++14 TESTS 87 686 25190400
95247982 I_love_Imakf G Oct. 11, 2020, 10:55 a.m. OK GNU C++14 TESTS 87 904 8806400
95259936 sshwyR G Oct. 11, 2020, 12:18 p.m. OK GNU C++14 TESTS 87 1731 10547200
95261644 boleyn.su G Oct. 11, 2020, 12:38 p.m. OK GNU C++17 TESTS 87 46 8089600
95303013 Medeowex G Oct. 11, 2020, 10:51 p.m. OK GNU C++17 TESTS 87 124 209203200
95253858 shnirelman G Oct. 11, 2020, 11:18 a.m. OK GNU C++17 TESTS 87 187 8601600
95269181 Bizuki G Oct. 11, 2020, 2:09 p.m. OK GNU C++17 TESTS 87 265 3276800
95257898 MrGary G Oct. 11, 2020, 11:56 a.m. OK GNU C++17 TESTS 87 311 42188800
95268842 Muhammad_Hokimiyon G Oct. 11, 2020, 2:05 p.m. OK GNU C++17 TESTS 87 436 2252800
95305326 THKevin846754497_1 G Oct. 12, 2020, 12:55 a.m. OK GNU C++17 TESTS 87 451 3174400
95252584 Bugman G Oct. 11, 2020, 11:09 a.m. OK GNU C++17 TESTS 87 592 3481600
95312570 HanaYukii G Oct. 12, 2020, 4:45 a.m. OK GNU C++17 TESTS 87 623 5632000
95270975 1_16 G Oct. 11, 2020, 2:32 p.m. OK GNU C++17 TESTS 87 624 12595200
95287878 kal013 G Oct. 11, 2020, 5:09 p.m. OK GNU C++17 (64) TESTS 87 30 102400
95257790 hitonanode G Oct. 11, 2020, 11:54 a.m. OK GNU C++17 (64) TESTS 87 31 102400
95307311 tyler G Oct. 12, 2020, 2:16 a.m. OK GNU C++17 (64) TESTS 87 31 102400
95291054 rivalq G Oct. 11, 2020, 5:59 p.m. OK GNU C++17 (64) TESTS 87 31 102400
95289399 MarcosK G Oct. 11, 2020, 5:33 p.m. OK GNU C++17 (64) TESTS 87 31 102400
95278968 sheaf G Oct. 11, 2020, 3:26 p.m. OK GNU C++17 (64) TESTS 87 31 102400
95257189 hitonanode G Oct. 11, 2020, 11:48 a.m. OK GNU C++17 (64) TESTS 87 31 102400
95281351 David_Garcia G Oct. 11, 2020, 3:57 p.m. OK GNU C++17 (64) TESTS 87 31 204800
95260205 wlzhouzhuan G Oct. 11, 2020, 12:21 p.m. OK GNU C++17 (64) TESTS 87 31 2662400
95307522 QAQAutoMaton G Oct. 12, 2020, 2:23 a.m. OK GNU C++17 (64) TESTS 87 31 38707200
95247689 SecondThread G Oct. 11, 2020, 10:55 a.m. OK Java 8 TESTS 87 109 0

remove filters

Back to search problems