Educational Codeforces Round 98 (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
1452 Educational Codeforces Round 98 (Rated for Div. 2) FINISHED False 7200 131469863 Nov. 19, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1575 ) E Two Editorials PROGRAMMING brute force data structures greedy implementation

B"Berland regional ICPC contest has just ended. There were m participants numbered from 1 to m , who competed on a problemset of n problems numbered from 1 to n . Now the editorial is about to take place. There are two problem authors, each of them is going to tell the tutorial to exactly k consecutive tasks of the problemset. The authors choose the segment of k consecutive tasks for themselves independently of each other. The segments can coincide, intersect or not intersect at all. The i -th participant is interested in listening to the tutorial of all consecutive tasks from l_i to r_i . Each participant always chooses to listen to only the problem author that tells the tutorials to the maximum number of tasks he is interested in. Let this maximum number be a_i . No participant can listen to both of the authors, even if their segments don't intersect. The authors want to choose the segments of k consecutive tasks for themselves in such a way that the sum of a_i over all participants is maximized. The first line contains three integers n, m and k ( 1 <= n, m <= 2000 , 1 <= k <= n ) -- the number of problems, the number of participants and the length of the segment of tasks each of the problem authors plans to tell the tutorial to. The i -th of the next m lines contains two integers l_i and r_i ( 1 <= l_i <= r_i <= n ) -- the segment of tasks the i -th participant is interested in listening to the tutorial to. Print a single integer -- the maximum sum of a_i over all participants. In the first example the first author can tell the tutorial to problems from 1 to 3 and the second one -- from 6 to 8 . That way the sequence of a_i will be [3, 2, 3, 3, 3] . Notice that the last participant can't listen to both author, he only chooses the one that tells the maximum number of probl"...

Tutorials

84847

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
98978467 rainboy E Nov. 19, 2020, 6:05 p.m. OK GNU C11 TESTS 48 62 0
98986592 Java E Nov. 19, 2020, 9:07 p.m. OK GNU C11 TESTS 48 1216 0
98948348 hmf123 E Nov. 19, 2020, 4:49 p.m. OK GNU C++11 TESTS 48 31 7270400
98992631 fishcathu. E Nov. 20, 2020, 1:57 a.m. OK GNU C++11 TESTS 70 46 0
98991891 fishcathu. E Nov. 20, 2020, 1:24 a.m. OK GNU C++11 TESTS 70 46 0
98991415 fishcathu. E Nov. 20, 2020, 1:02 a.m. OK GNU C++11 TESTS 70 46 0
98939238 yan_qiu_ynlchrz E Nov. 19, 2020, 4:11 p.m. OK GNU C++11 TESTS 48 46 0
98992768 fishcathu. E Nov. 20, 2020, 2:04 a.m. OK GNU C++11 TESTS 70 46 0
98944864 caidongxiao E Nov. 19, 2020, 4:31 p.m. OK GNU C++11 TESTS 48 46 102400
98995070 sunzihao E Nov. 20, 2020, 3:20 a.m. OK GNU C++11 TESTS 70 46 102400
98954284 loenvom E Nov. 19, 2020, 5:05 p.m. OK GNU C++11 TESTS 48 61 0
98994665 mohei0 E Nov. 20, 2020, 3:10 a.m. OK GNU C++11 TESTS 70 61 0
98948621 cycl E Nov. 19, 2020, 4:52 p.m. OK GNU C++14 TESTS 48 46 0
98997317 Paradox512 E Nov. 20, 2020, 4:19 a.m. OK GNU C++14 TESTS 70 46 102400
98979228 Potassium E Nov. 19, 2020, 6:19 p.m. OK GNU C++14 TESTS 48 46 102400
98979184 O_Iq E Nov. 19, 2020, 6:18 p.m. OK GNU C++14 TESTS 48 46 102400
98949571 MaddyBeltran E Nov. 19, 2020, 4:56 p.m. OK GNU C++14 TESTS 48 46 102400
98999785 cheissmart E Nov. 20, 2020, 5:14 a.m. OK GNU C++14 TESTS 70 46 102400
98960608 z7vahein7z E Nov. 19, 2020, 5:08 p.m. OK GNU C++14 TESTS 48 46 204800
98943776 danya090699 E Nov. 19, 2020, 4:27 p.m. OK GNU C++14 TESTS 48 61 0
98939315 0wuming0 E Nov. 19, 2020, 4:11 p.m. OK GNU C++14 TESTS 48 61 0
98945791 xingmo E Nov. 19, 2020, 4:33 p.m. OK GNU C++14 TESTS 48 61 0
98993875 hank55663 E Nov. 20, 2020, 2:46 a.m. OK GNU C++17 TESTS 70 46 0
98991566 tzaph_ E Nov. 20, 2020, 1:11 a.m. OK GNU C++17 TESTS 70 46 0
98988140 firecookie E Nov. 19, 2020, 10:05 p.m. OK GNU C++17 TESTS 48 46 0
98980989 Zweib E Nov. 19, 2020, 6:50 p.m. OK GNU C++17 TESTS 48 46 0
98950006 Turkey E Nov. 19, 2020, 5:01 p.m. OK GNU C++17 TESTS 48 46 0
98949816 Turkey E Nov. 19, 2020, 4:59 p.m. OK GNU C++17 TESTS 48 46 0
98939998 BpeMeHHa91_TryDHocTb E Nov. 19, 2020, 4:13 p.m. OK GNU C++17 TESTS 48 46 0
98995831 uryuuu E Nov. 20, 2020, 3:42 a.m. OK GNU C++17 TESTS 70 46 0
98980964 dvyn01 E Nov. 19, 2020, 6:49 p.m. OK GNU C++17 TESTS 48 46 102400
98980942 dvyn01 E Nov. 19, 2020, 6:49 p.m. OK GNU C++17 TESTS 48 46 102400
98981534 knshnb E Nov. 19, 2020, 7 p.m. OK GNU C++17 (64) TESTS 48 31 102400
98948989 rniya E Nov. 19, 2020, 4:55 p.m. OK GNU C++17 (64) TESTS 48 46 0
98945489 oleh1421 E Nov. 19, 2020, 4:33 p.m. OK GNU C++17 (64) TESTS 48 46 0
98981054 kotatsugame E Nov. 19, 2020, 6:51 p.m. OK GNU C++17 (64) TESTS 48 46 0
98982798 MahdiGMK E Nov. 19, 2020, 7:27 p.m. OK GNU C++17 (64) TESTS 48 46 102400
98982611 jupiro E Nov. 19, 2020, 7:23 p.m. OK GNU C++17 (64) TESTS 48 46 102400
98982453 jupiro E Nov. 19, 2020, 7:20 p.m. OK GNU C++17 (64) TESTS 48 46 102400
98962430 kiyoshi0205 E Nov. 19, 2020, 5:15 p.m. OK GNU C++17 (64) TESTS 48 46 102400
98940757 Bazoka13 E Nov. 19, 2020, 4:16 p.m. OK GNU C++17 (64) TESTS 48 46 102400
98998461 Asriel_Dreemurr E Nov. 20, 2020, 4:46 a.m. OK GNU C++17 (64) TESTS 70 46 102400
98983298 Dukkha E Nov. 19, 2020, 7:37 p.m. OK Java 11 TESTS 48 265 0
98987069 polyakoff E Nov. 19, 2020, 9:23 p.m. OK Java 8 TESTS 48 155 0
98939971 ijxjdjd E Nov. 19, 2020, 4:13 p.m. OK Java 8 TESTS 48 171 0
98946160 MagentaCobra E Nov. 19, 2020, 4:34 p.m. OK Java 8 TESTS 48 1996 16998400
98977597 MagentaCobra E Nov. 19, 2020, 5:51 p.m. OK Java 8 TESTS 48 1996 17305600
98944894 AryssonFigueiredo E Nov. 19, 2020, 4:31 p.m. OK Kotlin TESTS 48 249 0
98939928 tarattata1 E Nov. 19, 2020, 4:13 p.m. OK MS C++ 2017 TESTS 48 78 64409600
98985320 fgwiebfaoish E Nov. 19, 2020, 8:30 p.m. OK .NET Core C# TESTS 48 155 33792000
98984781 gintoki_s E Nov. 19, 2020, 8:15 p.m. OK PyPy 3 TESTS 48 264 7372800
98980577 sh1194 E Nov. 19, 2020, 6:43 p.m. OK PyPy 3 TESTS 48 295 5632000
98939514 Gleefre E Nov. 19, 2020, 4:12 p.m. OK PyPy 3 TESTS 48 295 6041600
98980709 sh1194 E Nov. 19, 2020, 6:45 p.m. OK PyPy 3 TESTS 48 296 6144000
98978823 jimm89 E Nov. 19, 2020, 6:12 p.m. OK PyPy 3 TESTS 48 342 5324800
98978970 silvertint E Nov. 19, 2020, 6:14 p.m. OK PyPy 3 TESTS 48 373 22220800
98944650 chinerist E Nov. 19, 2020, 4:30 p.m. OK PyPy 3 TESTS 48 421 9523200
98996682 Mixi E Nov. 20, 2020, 4:02 a.m. OK PyPy 3 TESTS 70 670 12083200
98947535 marroncastle E Nov. 19, 2020, 4:43 p.m. OK PyPy 3 TESTS 48 1325 58572800

remove filters

Back to search problems