Codeforces Round 719 (Div. 3)

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
1520 Codeforces Round 719 (Div. 3) FINISHED False 7200 116954663 May 5, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3788 ) G To Go Or Not To Go? PROGRAMMING dfs and similar graphs greedy shortest paths

B'Dima overslept the alarm clock, which was supposed to raise him to school. Dima wonders if he will have time to come to the first lesson. To do this, he needs to know the minimum time it will take him to get from home to school. The city where Dima lives is a rectangular field of n x m size. Each cell (i, j) on this field is denoted by one number a_{ij} : From any portal, Dima can go to any other portal, while the time of moving from the portal (i, j) to the portal (x, y) corresponds to the sum of their costs a_{ij} + a_{xy} . In addition to moving between portals, Dima can also move between unoccupied cells adjacent to one side in time w . In particular, he can enter a cell with a portal and not use it. Initially, Dima is in the upper-left cell (1, 1) , and the school is in the lower right cell (n, m) . The first line contains three integers n , m and w ( 2 <= n, m <= 2 cdot 10^3 , 1 <= w <= 10^9 ), where n and m are city size, w is time during which Dima moves between unoccupied cells. The next n lines each contain m numbers ( -1 <= a_{ij} <= 10^9 ) -- descriptions of cells. It is guaranteed that the cells (1, 1) and (n, m) are free. Output the minimum time it will take for Dima to get to school. If he cannot get to school at all, then output "-1". Explanation for the first sample: '...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
115372199 CCoolGuang G May 6, 2021, 3:33 a.m. OK GNU C++11 TESTS 154 483 100556800
115379524 CunFu_ZhuGe G May 6, 2021, 5:16 a.m. OK GNU C++11 TESTS 154 639 68710400
115363474 gary88 G May 6, 2021, 12:08 a.m. OK GNU C++11 TESTS 154 935 84172800
115381635 afkk G May 6, 2021, 5:38 a.m. OK GNU C++11 TESTS 154 951 373248000
115380631 afkk G May 6, 2021, 5:28 a.m. OK GNU C++11 TESTS 154 1045 457318400
115372627 Ripiaun G May 6, 2021, 3:39 a.m. OK GNU C++11 TESTS 154 1107 84480000
115349729 AVM.Martin G May 5, 2021, 7:14 p.m. OK GNU C++11 TESTS 130 1185 52428800
115365279 UpMing G May 6, 2021, 1:05 a.m. OK GNU C++11 TESTS 154 1325 197632000
115366312 Zzzsy G May 6, 2021, 1:34 a.m. OK GNU C++11 TESTS 154 1341 100659200
115378075 hero_zl G May 6, 2021, 4:58 a.m. OK GNU C++11 TESTS 154 1435 153190400
115371172 Ripiaun G May 6, 2021, 3:16 a.m. OK GNU C++14 TESTS 154 436 70656000
115368367 buriXzura G May 6, 2021, 2:24 a.m. OK GNU C++14 TESTS 154 1200 24064000
115363558 Vectors_Master G May 6, 2021, 12:10 a.m. OK GNU C++14 TESTS 154 1216 40140800
115364396 CherryGS G May 6, 2021, 12:37 a.m. OK GNU C++14 TESTS 154 1232 56115200
115370957 Ripiaun G May 6, 2021, 3:12 a.m. OK GNU C++14 TESTS 154 1279 53862400
115382220 cwc-cwc G May 6, 2021, 5:44 a.m. OK GNU C++14 TESTS 154 1294 52940800
115345409 _bom_bom_ G May 5, 2021, 6:27 p.m. OK GNU C++14 TESTS 130 1326 88473600
115372656 Ripiaun G May 6, 2021, 3:40 a.m. OK GNU C++14 TESTS 154 1341 84480000
115349945 ___HeiSenBerG___ G May 5, 2021, 7:17 p.m. OK GNU C++14 TESTS 130 1357 106496000
115365372 t98slider G May 6, 2021, 1:07 a.m. OK GNU C++14 TESTS 154 1372 86220800

remove filters

Back to search problems