Educational Codeforces Round 45 (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
990 Educational Codeforces Round 45 (Rated for Div. 2) FINISHED False 7200 208814087 June 10, 2018, 10:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 924 ) F Flow Control PROGRAMMING dfs and similar dp greedy trees 2500

B"You have to handle a very complex water distribution system. The system consists of n junctions and m pipes, i -th pipe connects junctions x_i and y_i . The only thing you can do is adjusting the pipes. You have to choose m integer numbers f_1 , f_2 , ..., f_m and use them as pipe settings. i -th pipe will distribute f_i units of water per second from junction x_i to junction y_i (if f_i is negative, then the pipe will distribute |f_i| units of water per second from junction y_i to junction x_i ). It is allowed to set f_i to any integer from -2 cdot 10^9 to 2 cdot 10^9 . In order for the system to work properly, there are some constraints: for every i in [1, n] , i -th junction has a number s_i associated with it meaning that the difference between incoming and outcoming flow for i -th junction must be exactly s_i (if s_i is not negative, then i -th junction must receive s_i units of water per second; if it is negative, then i -th junction must transfer |s_i| units of water per second to other junctions). Can you choose the integers f_1 , f_2 , ..., f_m in such a way that all requirements on incoming and outcoming flows are satisfied? The first line contains an integer n ( 1 <= n <= 2 cdot 10^5 ) -- the number of junctions. The second line contains n integers s_1, s_2, ... , s_n ( -10^4 <= s_i <= 10^4 ) -- constraints for the junctions. The third line contains an integer m ( 0 <= m <= 2 cdot 10^5 ) -- the number of pipes. i -th of the next m lines contains two integers x_i and y_i ( 1 <= x_i, y_i <= n , x_i ne y_i ) -- the description of i -th pipe. It is guaranteed that each unordered pair (x, y) will appear no more than once in the input (it means that there won't be any pairs "...

Tutorials

Educational Codeforces Round 45 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
39190579 SovietPower F June 12, 2018, 11:59 a.m. OK GNU C++ TESTS 37 124 12800000 2500
39121181 Nokto F June 10, 2018, 12:57 p.m. OK GNU C++ TESTS 37 124 16179200 2500
39118429 zsyzsy F June 10, 2018, 12:08 p.m. OK GNU C++ TESTS 37 124 19046400 2500
39119808 yashen F June 10, 2018, 12:26 p.m. OK GNU C++ TESTS 37 124 19251200 2500
39117332 yybyyb F June 10, 2018, 12:02 p.m. OK GNU C++ TESTS 37 124 21913600 2500
39112055 l1ll5 F June 10, 2018, 11:37 a.m. OK GNU C++ TESTS 37 124 30412800 2500
39123186 H2SH2SO4O4O4 F June 10, 2018, 2:02 p.m. OK GNU C++ TESTS 37 140 19968000 2500
39139507 luogu_bot2 F June 11, 2018, 7:24 a.m. OK GNU C++ TESTS 37 140 21913600 2500
39110262 alex_china F June 10, 2018, 11:28 a.m. OK GNU C++ TESTS 37 171 14438400 2500
40622005 luogu_bot1 F July 22, 2018, 2:33 a.m. OK GNU C++ TESTS 37 171 14950400 2500
67919724 rainboy F Dec. 29, 2019, 4:10 p.m. OK GNU C11 TESTS 37 764 9830400 2500
44578331 luogu_bot5 F Oct. 20, 2018, 7:44 a.m. OK GNU C++11 TESTS 37 62 34508800 2500
46702815 Dilute F Dec. 7, 2018, 4:36 a.m. OK GNU C++11 TESTS 37 93 13619200 2500
46702823 Dilute F Dec. 7, 2018, 4:37 a.m. OK GNU C++11 TESTS 37 93 13619200 2500
45170074 luogu_bot5 F Nov. 1, 2018, 12:32 p.m. OK GNU C++11 TESTS 37 93 15974400 2500
44578187 luogu_bot1 F Oct. 20, 2018, 7:41 a.m. OK GNU C++11 TESTS 37 93 16076800 2500
44578238 luogu_bot2 F Oct. 20, 2018, 7:42 a.m. OK GNU C++11 TESTS 37 93 16076800 2500
44576626 zhouliancheng F Oct. 20, 2018, 7:22 a.m. OK GNU C++11 TESTS 37 93 16486400 2500
49822428 luogu_bot4 F Feb. 12, 2019, 9:37 a.m. OK GNU C++11 TESTS 37 93 17817600 2500
48491381 _CZH F Jan. 17, 2019, 11:04 a.m. OK GNU C++11 TESTS 37 93 23449600 2500
45432974 luositing F Nov. 8, 2018, 5:50 a.m. OK GNU C++11 TESTS 37 93 27238400 2500
46051075 vjudge5 F Nov. 22, 2018, 7:29 a.m. OK GNU C++14 TESTS 37 186 13619200 2500
39115414 interestingLSY F June 10, 2018, 11:53 a.m. OK GNU C++14 TESTS 37 186 24268800 2500
39346466 massimodong F June 18, 2018, 3:40 a.m. OK GNU C++14 TESTS 37 187 16998400 2500
39264320 wcy1122 F June 15, 2018, 11:13 a.m. OK GNU C++14 TESTS 37 202 15257600 2500
39246415 lllllllllllllllllllllll F June 14, 2018, 2:02 p.m. OK GNU C++14 TESTS 37 217 19251200 2500
39269597 NiroBC F June 15, 2018, 3:05 p.m. OK GNU C++14 TESTS 37 218 9113600 2500
39135225 Elegia F June 11, 2018, 3:11 a.m. OK GNU C++14 TESTS 37 218 13824000 2500
39126091 bibibibi F June 10, 2018, 4:01 p.m. OK GNU C++14 TESTS 37 218 14643200 2500
39508389 NotNight F June 22, 2018, 7:12 a.m. OK GNU C++14 TESTS 37 218 17817600 2500
39125498 xyj F June 10, 2018, 3:35 p.m. OK GNU C++14 TESTS 37 218 19251200 2500
40977237 ReaLNero1 F July 30, 2018, 4:06 p.m. OK GNU C++17 TESTS 37 93 20377600 2500
40931957 ReaLNero1 F July 30, 2018, 1:28 a.m. OK GNU C++17 TESTS 37 93 20377600 2500
40675950 Trisolaris F July 23, 2018, 3:28 p.m. OK GNU C++17 TESTS 37 93 20377600 2500
39182059 liyuwang F June 12, 2018, 6:18 a.m. OK GNU C++17 TESTS 37 217 12800000 2500
39185541 adoubiq F June 12, 2018, 8:50 a.m. OK GNU C++17 TESTS 37 217 16179200 2500
39180802 OYMiss F June 12, 2018, 5:11 a.m. OK GNU C++17 TESTS 37 217 18432000 2500
39178237 hmc F June 12, 2018, 2:10 a.m. OK GNU C++17 TESTS 37 217 18636800 2500
39205053 lintoto F June 13, 2018, 3:08 a.m. OK GNU C++17 TESTS 37 218 16179200 2500
55083883 ivan100sic F June 4, 2019, 11:49 a.m. OK GNU C++17 TESTS 37 218 20992000 2500
41983155 Dance_Of_Faith F Aug. 23, 2018, 3:40 a.m. OK GNU C++17 TESTS 37 233 14336000 2500
67919723 Dukkha F Dec. 29, 2019, 4:10 p.m. OK Java 11 TESTS 37 904 6758400 2500
39110208 uwi F June 10, 2018, 11:28 a.m. OK Java 8 TESTS 37 436 30924800 2500
39174523 RussianBot F June 11, 2018, 8:24 p.m. OK Java 8 TESTS 37 530 53452800 2500
39119220 Wavator F June 10, 2018, 12:18 p.m. OK Java 8 TESTS 37 560 54681600 2500
39543693 tookunn F June 23, 2018, 2:25 p.m. OK Java 8 TESTS 37 577 79462400 2500
39534807 tookunn F June 23, 2018, 7:25 a.m. OK Java 8 TESTS 37 592 79462400 2500
39118505 wawawa1998 F June 10, 2018, 12:09 p.m. OK Java 8 TESTS 37 607 54272000 2500
39498211 Jeel_Vaishnav F June 21, 2018, 6:45 p.m. OK Java 8 TESTS 37 607 64921600 2500
39135547 dalt F June 11, 2018, 3:33 a.m. OK Java 8 TESTS 37 608 59596800 2500
39256899 Taran_1407 F June 15, 2018, 4:13 a.m. OK Java 8 TESTS 37 639 57753600 2500
39178398 hiThere23 F June 12, 2018, 2:22 a.m. OK Java 8 TESTS 37 701 47616000 2500
44760768 vjudge4 F Oct. 24, 2018, 6:59 a.m. OK MS C++ TESTS 37 233 17817600 2500
39209830 ien49fh F June 13, 2018, 8:07 a.m. OK PyPy 3 TESTS 37 1481 89292800 2500
39209731 ien49fh F June 13, 2018, 8:03 a.m. OK Python 3 TESTS 37 1387 81100800 2500
39209819 ien49fh F June 13, 2018, 8:07 a.m. OK Python 3 TESTS 37 1388 80486400 2500

remove filters

Back to search problems