Educational Codeforces Round 59 (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
1107 Educational Codeforces Round 59 (Rated for Div. 2) FINISHED False 7200 189008724 Jan. 26, 2019, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1083 ) G Vasya and Maximum Profit PROGRAMMING binary search constructive algorithms data structures dp ds 2400

B'Vasya got really tired of these credits (from problem F) and now wants to earn the money himself! He decided to make a contest to gain a profit. Vasya has n problems to choose from. They are numbered from 1 to n . The difficulty of the i -th problem is d_i . Moreover, the problems are given in the increasing order by their difficulties. The difficulties of all tasks are pairwise distinct. In order to add the i -th problem to the contest you need to pay c_i burles to its author. For each problem in the contest Vasya gets a burles. In order to create a contest he needs to choose a consecutive subsegment of tasks. So the total earnings for the contest are calculated as follows: Calculate the maximum profit that Vasya can earn by taking a consecutive segment of tasks. The first line contains two integers n and a ( 1 <= n <= 3 cdot 10^5 , 1 <= a <= 10^9 ) -- the number of proposed tasks and the profit for a single problem, respectively. Each of the next n lines contains two integers d_i and c_i ( 1 <= d_i, c_i <= 10^9, d_i < d_{i+1} ). Print one integer -- maximum amount of burles Vasya can earn. '...

Tutorials

Educational Codeforces Round 59 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
49019239 rainboy G Jan. 26, 2019, 5:23 p.m. OK GNU C11 TESTS 48 202 13209600 2400
60250781 CreeperLordVader G Sept. 8, 2019, 6:38 a.m. OK GNU C++11 TESTS 48 62 12083200 2400
60250818 luogu_bot2 G Sept. 8, 2019, 6:39 a.m. OK GNU C++11 TESTS 48 62 12083200 2400
68390239 poaspoas G Jan. 8, 2020, 8:17 a.m. OK GNU C++11 TESTS 48 62 14438400 2400
50492936 luogu_bot5 G Feb. 25, 2019, 2:01 p.m. OK GNU C++11 TESTS 48 62 16691200 2400
50493101 p_b_p_b G Feb. 25, 2019, 2:04 p.m. OK GNU C++11 TESTS 48 62 16691200 2400
50493057 luogu_bot1 G Feb. 25, 2019, 2:03 p.m. OK GNU C++11 TESTS 48 77 16691200 2400
49529927 XueWh G Feb. 6, 2019, 1:22 p.m. OK GNU C++11 TESTS 48 78 4812800 2400
49972581 Althen G Feb. 16, 2019, 3:32 a.m. OK GNU C++11 TESTS 48 93 7270400 2400
49972614 luogu_bot3 G Feb. 16, 2019, 3:33 a.m. OK GNU C++11 TESTS 48 93 7270400 2400
49081949 ccosi G Jan. 28, 2019, 6:23 a.m. OK GNU C++11 TESTS 48 93 32460800 2400
49555710 tokitsukaze G Feb. 7, 2019, 9:29 a.m. OK GNU C++14 TESTS 48 124 28364800 2400
49020211 hank55663 G Jan. 26, 2019, 5:28 p.m. OK GNU C++14 TESTS 48 171 3584000 2400
49036704 hank55663 G Jan. 27, 2019, 3:52 a.m. OK GNU C++14 TESTS 48 186 3584000 2400
49297840 sunnylancoder G Feb. 1, 2019, 12:26 a.m. OK GNU C++14 TESTS 48 187 0 2400
49039937 Origenes G Jan. 27, 2019, 6:02 a.m. OK GNU C++14 TESTS 48 187 5017600 2400
57080725 gs15120 G July 15, 2019, 7:08 a.m. OK GNU C++14 TESTS 48 187 38912000 2400
49017125 Hasan0540 G Jan. 26, 2019, 5:11 p.m. OK GNU C++14 TESTS 48 187 43315200 2400
49297866 sunnylancoder G Feb. 1, 2019, 12:28 a.m. OK GNU C++14 TESTS 48 202 0 2400
49050264 FlyWhite G Jan. 27, 2019, 10:43 a.m. OK GNU C++14 TESTS 48 202 4915200 2400
49108281 _Solenya_ G Jan. 28, 2019, 1:57 p.m. OK GNU C++14 TESTS 48 202 7270400 2400
49045808 TrivialMan G Jan. 27, 2019, 8:43 a.m. OK GNU C++17 TESTS 48 155 9830400 2400
49057643 kongroo G Jan. 27, 2019, 2 p.m. OK GNU C++17 TESTS 48 156 8704000 2400
49236095 Silly_Bee G Jan. 31, 2019, 8:06 a.m. OK GNU C++17 TESTS 48 156 16281600 2400
51919213 cjc G March 28, 2019, 2:22 a.m. OK GNU C++17 TESTS 48 187 24064000 2400
49051335 pranet G Jan. 27, 2019, 11:13 a.m. OK GNU C++17 TESTS 48 202 9830400 2400
49035759 Elegia G Jan. 27, 2019, 3:06 a.m. OK GNU C++17 TESTS 48 202 13516800 2400
49350522 cjnwq G Feb. 2, 2019, 8:14 a.m. OK GNU C++17 TESTS 48 202 17100800 2400
49127464 endereye G Jan. 29, 2019, 12:58 a.m. OK GNU C++17 TESTS 48 202 43520000 2400
50779314 Lxyzzz G March 4, 2019, 10:33 a.m. OK GNU C++17 TESTS 48 202 46899200 2400
49055652 bitetheDDDDt G Jan. 27, 2019, 1:11 p.m. OK GNU C++17 TESTS 48 202 48332800 2400
66457551 dalt G Dec. 7, 2019, 1:41 p.m. OK Java 8 TESTS 48 280 19148800 2400
49113877 xodiac G Jan. 28, 2019, 4:07 p.m. OK Java 8 TESTS 48 452 81612800 2400
60746067 beginner1010 G Sept. 18, 2019, 1:43 a.m. OK Java 8 TESTS 48 468 24166400 2400
49024500 Dukkha G Jan. 26, 2019, 6:25 p.m. OK Java 8 TESTS 48 483 16384000 2400
49174150 Ahmad G Jan. 29, 2019, 7:28 p.m. OK Java 8 TESTS 48 904 260608000 2400
49047439 mbrc G Jan. 27, 2019, 9:30 a.m. OK Java 8 TESTS 48 966 56422400 2400
49021667 LockHeart G Jan. 26, 2019, 5:43 p.m. OK Java 8 TESTS 48 1045 0 2400
50919502 aminul G March 7, 2019, 8:24 a.m. OK Java 8 TESTS 48 1747 37171200 2400
50919418 aminul G March 7, 2019, 8:21 a.m. OK Java 8 TESTS 48 1840 56422400 2400
49388040 selpo G Feb. 3, 2019, 8:08 a.m. OK Mono C# TESTS 48 561 34611200 2400
49387811 selpo G Feb. 3, 2019, 8:01 a.m. OK Mono C# TESTS 48 561 34611200 2400
49053981 Kirundel G Jan. 27, 2019, 12:27 p.m. OK Mono C# TESTS 48 1122 36044800 2400
49039327 Kirundel G Jan. 27, 2019, 5:45 a.m. OK Mono C# TESTS 48 1154 35942400 2400
61805664 j2v G Oct. 3, 2019, 9:20 p.m. OK MS C++ 2017 TESTS 48 218 14438400 2400
49099448 DavitMarg G Jan. 28, 2019, 10:52 a.m. OK MS C++ 2017 TESTS 48 577 86835200 2400
49023239 pajenegod G Jan. 26, 2019, 6:02 p.m. OK PyPy 2 TESTS 48 2511 94310400 2400
49225444 meooow G Jan. 30, 2019, 10:22 p.m. OK PyPy 3 TESTS 48 3463 105062400 2400
63674572 sansen G Oct. 28, 2019, 5:59 p.m. OK Rust TESTS 48 311 29900800 2400

remove filters

Back to search problems