Codeforces Round 595 (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
1249 Codeforces Round 595 (Div. 3) FINISHED False 8100 165684287 Oct. 22, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5357 ) D2 Too Many Segments (hard version) PROGRAMMING data structures greedy sortings 2000

B'The only difference between easy and hard versions is constraints. You are given n segments on the coordinate axis OX . Segments can intersect, lie inside each other and even coincide. The i -th segment is [l_i; r_i] ( l_i <= r_i ) and it covers all integer points j such that l_i <= j <= r_i . The integer point is called bad if it is covered by strictly more than k segments. Your task is to remove the minimum number of segments so that there are no bad points at all. The first line of the input contains two integers n and k ( 1 <= k <= n <= 2 cdot 10^5 ) -- the number of segments and the maximum number of segments by which each integer point can be covered. The next n lines contain segments. The i -th line contains two integers l_i and r_i ( 1 <= l_i <= r_i <= 2 cdot 10^5 ) -- the endpoints of the i -th segment. In the first line print one integer m ( 0 <= m <= n ) -- the minimum number of segments you need to remove so that there are no bad points. In the second line print m distinct integers p_1, p_2, ... , p_m ( 1 <= p_i <= n ) -- indices of segments you remove in any order. If there are multiple answers, you can print any of them. '...

Tutorials

Codeforces Round #595 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
63288254 Jhamra D2 Oct. 24, 2019, 11:01 a.m. OK Clang++17 Diagnostics TESTS 73 1465 42598400 2000
66081870 rr_ D2 Dec. 1, 2019, 12:41 a.m. OK D TESTS 73 296 22732800 2000
66081882 rr_ D2 Dec. 1, 2019, 12:41 a.m. OK D TESTS 73 296 22732800 2000
66081860 rr_ D2 Dec. 1, 2019, 12:40 a.m. OK D TESTS 73 327 22732800 2000
66081841 rr_ D2 Dec. 1, 2019, 12:38 a.m. OK D TESTS 73 373 22732800 2000
63215805 YOK D2 Oct. 23, 2019, 6:04 a.m. OK GNU C11 TESTS 73 748 16076800 2000
63687541 Fubuki D2 Oct. 28, 2019, 11:49 p.m. OK GNU C++11 TESTS 73 93 7065600 2000
64205412 zxynothing D2 Nov. 4, 2019, 12:44 p.m. OK GNU C++11 TESTS 73 93 10649600 2000
63277642 eatingmore D2 Oct. 24, 2019, 7:31 a.m. OK GNU C++11 TESTS 73 93 10956800 2000
66568749 yuzhechuan D2 Dec. 10, 2019, 2:06 a.m. OK GNU C++11 TESTS 73 93 10956800 2000
64697482 lalalafloat D2 Nov. 11, 2019, 1:46 p.m. OK GNU C++11 TESTS 73 93 12800000 2000
63207480 _violet D2 Oct. 23, 2019, 1:10 a.m. OK GNU C++11 TESTS 73 93 50278400 2000
63356041 nchu-18204226 D2 Oct. 25, 2019, 2:41 a.m. OK GNU C++11 TESTS 73 108 8704000 2000
63206221 Binary_Search_Tree D2 Oct. 23, 2019, 12:09 a.m. OK GNU C++11 TESTS 73 108 24780800 2000
63356133 nchu-18204226 D2 Oct. 25, 2019, 2:45 a.m. OK GNU C++11 TESTS 73 109 8704000 2000
63733413 Dream-chasing_Juvenile D2 Oct. 29, 2019, 2:39 p.m. OK GNU C++11 TESTS 73 109 8704000 2000
63251931 BeNoble D2 Oct. 23, 2019, 4:21 p.m. OK GNU C++14 TESTS 73 124 15052800 2000
64502407 HouZAJ D2 Nov. 8, 2019, 5:04 a.m. OK GNU C++14 TESTS 73 155 6553600 2000
63266346 xufour D2 Oct. 24, 2019, 12:29 a.m. OK GNU C++14 TESTS 73 155 6758400 2000
63266377 xufour D2 Oct. 24, 2019, 12:30 a.m. OK GNU C++14 TESTS 73 155 6758400 2000
63206804 Trys_Like_Buffalo D2 Oct. 23, 2019, 12:36 a.m. OK GNU C++14 TESTS 73 155 8192000 2000
63222510 Anterior D2 Oct. 23, 2019, 8:18 a.m. OK GNU C++14 TESTS 73 155 10035200 2000
66473420 hemant1729 D2 Dec. 7, 2019, 7:26 p.m. OK GNU C++14 TESTS 73 155 10649600 2000
63344986 naeeem D2 Oct. 24, 2019, 6:55 p.m. OK GNU C++14 TESTS 73 155 10649600 2000
63691778 imulan D2 Oct. 29, 2019, 3:06 a.m. OK GNU C++14 TESTS 73 155 11571200 2000
69604107 shadesOfRed D2 Jan. 27, 2020, 9:03 a.m. OK GNU C++14 TESTS 73 155 13209600 2000
65727073 interestingLSY D2 Nov. 26, 2019, 12:51 a.m. OK GNU C++17 TESTS 73 109 12902400 2000
65727058 HatsuneMikuo D2 Nov. 26, 2019, 12:50 a.m. OK GNU C++17 TESTS 73 109 12902400 2000
63238179 ORZZZQTXDY D2 Oct. 23, 2019, 12:48 p.m. OK GNU C++17 TESTS 73 109 18534400 2000
63698975 Jyqjyq1 D2 Oct. 29, 2019, 6:37 a.m. OK GNU C++17 TESTS 73 155 7168000 2000
63241324 Star-Platinum D2 Oct. 23, 2019, 1:32 p.m. OK GNU C++17 TESTS 73 155 8499200 2000
64528539 thtsshz_bgwrswh D2 Nov. 8, 2019, 2:35 p.m. OK GNU C++17 TESTS 73 155 9728000 2000
63568838 soumik33 D2 Oct. 27, 2019, 3:48 p.m. OK GNU C++17 TESTS 73 155 10752000 2000
63631787 udashi D2 Oct. 28, 2019, 6:40 a.m. OK GNU C++17 TESTS 73 155 11571200 2000
67434153 JeremyMo D2 Dec. 22, 2019, 4:25 p.m. OK GNU C++17 TESTS 73 155 11571200 2000
63269605 Dicer_ D2 Oct. 24, 2019, 3:05 a.m. OK GNU C++17 TESTS 73 155 11571200 2000
63301359 reanimatorzon D2 Oct. 24, 2019, 2:23 p.m. OK Go TESTS 73 311 18739200 2000
63695272 p_unit D2 Oct. 29, 2019, 5:09 a.m. OK Java 11 TESTS 73 514 73318400 2000
63452201 tapanr97 D2 Oct. 26, 2019, 11:25 a.m. OK Java 11 TESTS 73 654 45363200 2000
63741786 IslamTalipovTop D2 Oct. 29, 2019, 5:13 p.m. OK Java 11 TESTS 73 670 27033600 2000
64748315 potatmen D2 Nov. 12, 2019, 2:19 p.m. OK Java 11 TESTS 73 1481 65638400 2000
68063114 amolpratap007 D2 Jan. 2, 2020, 5:55 a.m. OK Java 8 TESTS 73 311 18227200 2000
63235511 derrick20 D2 Oct. 23, 2019, 12:10 p.m. OK Java 8 TESTS 73 327 6553600 2000
63258064 derrick20 D2 Oct. 23, 2019, 6:59 p.m. OK Java 8 TESTS 73 342 11673600 2000
63248858 shaurya_singh D2 Oct. 23, 2019, 3:25 p.m. OK Java 8 TESTS 73 374 23859200 2000
63371983 mufaddalnaya D2 Oct. 25, 2019, 9:41 a.m. OK Java 8 TESTS 73 389 18534400 2000
63371913 mufaddalnaya D2 Oct. 25, 2019, 9:40 a.m. OK Java 8 TESTS 73 389 18534400 2000
63264347 WashRoom D2 Oct. 23, 2019, 10:32 p.m. OK Java 8 TESTS 73 404 17408000 2000
64181979 NormalGeek D2 Nov. 4, 2019, 1:43 a.m. OK Java 8 TESTS 73 404 17612800 2000
63349160 lzhang D2 Oct. 24, 2019, 8:44 p.m. OK Java 8 TESTS 73 421 12595200 2000
63204636 martins D2 Oct. 22, 2019, 10:47 p.m. OK Java 8 TESTS 73 436 25702400 2000
63403514 walborn D2 Oct. 25, 2019, 7:17 p.m. OK JavaScript TESTS 73 592 65536000 2000
63258894 walborn D2 Oct. 23, 2019, 7:19 p.m. OK JavaScript TESTS 73 717 45875200 2000
63402574 walborn D2 Oct. 25, 2019, 6:56 p.m. OK JavaScript TESTS 73 919 76288000 2000
63401987 walborn D2 Oct. 25, 2019, 6:43 p.m. OK JavaScript TESTS 73 1092 74547200 2000
63225345 Spheniscine D2 Oct. 23, 2019, 9:07 a.m. OK Kotlin TESTS 73 436 15052800 2000
63225521 Spheniscine D2 Oct. 23, 2019, 9:11 a.m. OK Kotlin TESTS 73 468 15052800 2000
63225105 Spheniscine D2 Oct. 23, 2019, 9:03 a.m. OK Kotlin TESTS 73 623 15974400 2000
63212868 Spheniscine D2 Oct. 23, 2019, 4:49 a.m. OK Kotlin TESTS 73 732 16076800 2000
66145016 hyper_sinnniy D2 Dec. 1, 2019, 4:10 p.m. OK Kotlin TESTS 73 1404 39116800 2000
63294804 m1_k3 D2 Oct. 24, 2019, 12:42 p.m. OK Mono C# TESTS 73 405 23756800 2000
63286930 m1_k3 D2 Oct. 24, 2019, 10:40 a.m. OK Mono C# TESTS 73 452 29900800 2000
63286467 m1_k3 D2 Oct. 24, 2019, 10:31 a.m. OK Mono C# TESTS 73 483 31539200 2000
63285812 m1_k3 D2 Oct. 24, 2019, 10:17 a.m. OK Mono C# TESTS 73 576 56832000 2000
63285535 m1_k3 D2 Oct. 24, 2019, 10:12 a.m. OK Mono C# TESTS 73 623 46284800 2000
63282834 m1_k3 D2 Oct. 24, 2019, 9:16 a.m. OK Mono C# TESTS 73 623 46284800 2000
63453167 vjudge3 D2 Oct. 26, 2019, 11:26 a.m. OK MS C++ TESTS 73 140 8704000 2000
64627319 vjudge4 D2 Nov. 10, 2019, 8:58 a.m. OK MS C++ TESTS 73 156 7168000 2000
63925611 vjudge4 D2 Oct. 31, 2019, 12:56 p.m. OK MS C++ TESTS 73 156 11673600 2000
63634458 vjudge5 D2 Oct. 28, 2019, 7:41 a.m. OK MS C++ TESTS 73 171 9113600 2000
63925447 vjudge4 D2 Oct. 31, 2019, 12:54 p.m. OK MS C++ TESTS 73 171 11673600 2000
63926576 vjudge1 D2 Oct. 31, 2019, 1:10 p.m. OK MS C++ TESTS 73 171 11673600 2000
63986606 vjudge5 D2 Nov. 1, 2019, 11:56 a.m. OK MS C++ TESTS 73 171 11673600 2000
64137742 vjudge1 D2 Nov. 3, 2019, 7:37 a.m. OK MS C++ TESTS 73 171 11673600 2000
63634543 vjudge2 D2 Oct. 28, 2019, 7:43 a.m. OK MS C++ TESTS 73 186 9113600 2000
64139065 vjudge2 D2 Nov. 3, 2019, 8 a.m. OK MS C++ TESTS 73 186 11673600 2000
65152284 ICEY777 D2 Nov. 16, 2019, 8 a.m. OK MS C++ 2017 TESTS 73 202 9420800 2000
64138366 vjudge1 D2 Nov. 3, 2019, 7:48 a.m. OK MS C++ 2017 TESTS 73 217 10752000 2000
63969939 hwangganzi D2 Nov. 1, 2019, 8:43 a.m. OK MS C++ 2017 TESTS 73 218 9011200 2000
65152347 vjudge3 D2 Nov. 16, 2019, 8:02 a.m. OK MS C++ 2017 TESTS 73 218 9420800 2000
63659039 dbelov D2 Oct. 28, 2019, 1:33 p.m. OK MS C++ 2017 TESTS 73 218 10137600 2000
63726642 vjudge2 D2 Oct. 29, 2019, 12:52 p.m. OK MS C++ 2017 TESTS 73 218 13107200 2000
63728350 vjudge1 D2 Oct. 29, 2019, 1:19 p.m. OK MS C++ 2017 TESTS 73 233 10752000 2000
64145932 vjudge2 D2 Nov. 3, 2019, 9:52 a.m. OK MS C++ 2017 TESTS 73 249 10752000 2000
66689620 scorpiowf D2 Dec. 12, 2019, 1:56 p.m. OK MS C++ 2017 TESTS 73 249 11468800 2000
68235903 AleksanderBalobanov D2 Jan. 5, 2020, 10:56 a.m. OK MS C++ 2017 TESTS 73 249 12390400 2000
63285119 EM1NEM D2 Oct. 24, 2019, 10:03 a.m. OK PyPy 2 TESTS 73 1559 50380800 2000
63216153 EM1NEM D2 Oct. 23, 2019, 6:10 a.m. OK PyPy 2 TESTS 73 1575 54272000 2000
63383889 alex223 D2 Oct. 25, 2019, 1:15 p.m. OK PyPy 2 TESTS 73 1669 60416000 2000
63696643 bluenak D2 Oct. 29, 2019, 5:43 a.m. OK PyPy 3 TESTS 73 1138 39833600 2000
63275209 macleChen D2 Oct. 24, 2019, 6:31 a.m. OK PyPy 3 TESTS 73 1340 52736000 2000
63208526 Coki628 D2 Oct. 23, 2019, 2:02 a.m. OK PyPy 3 TESTS 73 1606 47411200 2000
66498804 cftt D2 Dec. 8, 2019, 11:39 a.m. OK PyPy 3 TESTS 73 1856 45568000 2000
63236120 pyduper D2 Oct. 23, 2019, 12:20 p.m. OK PyPy 3 TESTS 73 1965 45260800 2000
66272806 sruthi_1729 D2 Dec. 4, 2019, 12:53 p.m. OK Python 3 TESTS 73 1575 32153600 2000
66869856 sritha D2 Dec. 14, 2019, 1:11 p.m. OK Python 3 TESTS 73 1606 31641600 2000
63666907 betrue12 D2 Oct. 28, 2019, 3:38 p.m. OK Python 3 TESTS 73 1606 32153600 2000
63274991 areadyeye D2 Oct. 24, 2019, 6:25 a.m. OK Python 3 TESTS 73 1622 75673600 2000
63285382 hubata01 D2 Oct. 24, 2019, 10:08 a.m. OK Python 3 TESTS 73 1856 74752000 2000
63492618 43flyingcar D2 Oct. 26, 2019, 2:45 p.m. OK Rust TESTS 73 577 44032000 2000

remove filters

Back to search problems