Codeforces Round 765 (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
1625 Codeforces Round 765 (Div. 2) FINISHED False 7200 95190863 Jan. 12, 2022, 12:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11028 ) C Road Optimization PROGRAMMING data structures dp

B"The Government of Mars is not only interested in optimizing space flights, but also wants to improve the road system of the planet. One of the most important highways of Mars connects Olymp City and Kstolop, the capital of Cydonia. In this problem, we only consider the way from Kstolop to Olymp City, but not the reverse path (i. e. the path from Olymp City to Kstolop). The road from Kstolop to Olymp City is ell kilometers long. Each point of the road has a coordinate x ( 0 <= x <= ell ), which is equal to the distance from Kstolop in kilometers. So, Kstolop is located in the point with coordinate 0 , and Olymp City is located in the point with coordinate ell . There are n signs along the road, i -th of which sets a speed limit a_i . This limit means that the next kilometer must be passed in a_i minutes and is active until you encounter the next along the road. There is a road sign at the start of the road (i. e. in the point with coordinate 0 ), which sets the initial speed limit. If you know the location of all the signs, it's not hard to calculate how much time it takes to drive from Kstolop to Olymp City. Consider an example: Here, you need to drive the first three kilometers in five minutes each, then one kilometer in eight minutes, then four kilometers in three minutes each, and finally the last two kilometers must be passed in six minutes each. Total time is 3 cdot 5 + 1 cdot 8 + 4 cdot 3 + 2 cdot 6 = 47 minutes. To optimize the road traffic, the Government of Mars decided to remove no more than k road signs. It cannot remove the sign at the start of the road, otherwise, there will be no limit at the start. By removing these signs, the Government also wants to make the time needed to drive from Kstolop to Olymp City as small as possible. The largest industrial enterprises are located in Cydonia, so it's the priority task to optimize the road traffic from Olymp City. So, the Gover"...

Tutorials

Editorial of Codeforces Round #765 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
142529843 ruban C Jan. 12, 2022, 3:53 p.m. OK Delphi TESTS 36 2761 58675200
142529602 ruban C Jan. 12, 2022, 3:50 p.m. OK Delphi TESTS 36 2947 58675200
142529642 ruban C Jan. 12, 2022, 3:50 p.m. OK FPC TESTS 36 1934 58675200
142529811 ruban C Jan. 12, 2022, 3:52 p.m. OK FPC TESTS 36 1965 58675200
142514122 rainboy C Jan. 12, 2022, 1:56 p.m. OK GNU C11 TESTS 36 124 1024000
142553510 displace C Jan. 12, 2022, 11:52 p.m. OK GNU C++14 TESTS 36 31 1024000
142511909 feng12 C Jan. 12, 2022, 1:50 p.m. OK GNU C++14 TESTS 36 31 1024000
142524668 Echoyyy C Jan. 12, 2022, 2:58 p.m. OK GNU C++14 TESTS 36 31 1126400
142519738 Sami.m.b C Jan. 12, 2022, 2:25 p.m. OK GNU C++14 TESTS 36 31 2252800
142553354 antguz C Jan. 12, 2022, 11:42 p.m. OK GNU C++14 TESTS 36 46 1024000
142554992 Triray C Jan. 13, 2022, 1:10 a.m. OK GNU C++14 TESTS 36 46 1024000
142526188 fromscratch C Jan. 12, 2022, 3:12 p.m. OK GNU C++14 TESTS 36 46 1024000
142517652 42i196 C Jan. 12, 2022, 2:03 p.m. OK GNU C++14 TESTS 36 46 1024000
142512708 kongweisa C Jan. 12, 2022, 1:52 p.m. OK GNU C++14 TESTS 36 46 1126400
142513628 shengrang C Jan. 12, 2022, 1:55 p.m. OK GNU C++14 TESTS 36 46 1228800
142556472 cutewj C Jan. 13, 2022, 2:09 a.m. OK GNU C++17 TESTS 36 31 1024000
142524805 _October C Jan. 12, 2022, 3 p.m. OK GNU C++17 TESTS 36 31 1024000
142568181 Nitil C Jan. 13, 2022, 5:52 a.m. OK GNU C++17 TESTS 36 31 1331200
142514401 BigFaceDog C Jan. 12, 2022, 1:57 p.m. OK GNU C++17 TESTS 36 31 2150400
142521995 izlyforever C Jan. 12, 2022, 2:36 p.m. OK GNU C++17 TESTS 36 46 512000
142566506 yurenwuyu C Jan. 13, 2022, 5:30 a.m. OK GNU C++17 TESTS 36 46 1024000
142568497 KevinSo25 C Jan. 13, 2022, 5:55 a.m. OK GNU C++17 TESTS 36 46 1024000
142567772 andychen2012 C Jan. 13, 2022, 5:46 a.m. OK GNU C++17 TESTS 36 46 1024000
142567763 CET4 C Jan. 13, 2022, 5:46 a.m. OK GNU C++17 TESTS 36 46 1024000
142562606 zhangpangpang C Jan. 13, 2022, 4:30 a.m. OK GNU C++17 TESTS 36 46 1024000
142565469 MagicalSheep C Jan. 13, 2022, 5:17 a.m. OK GNU C++17 (64) TESTS 36 31 1024000
142559498 FoXreign C Jan. 13, 2022, 3:31 a.m. OK GNU C++17 (64) TESTS 36 31 1126400
142555363 qwqw C Jan. 13, 2022, 1:26 a.m. OK GNU C++17 (64) TESTS 36 31 2048000
142524754 zwu2019015083 C Jan. 12, 2022, 2:59 p.m. OK GNU C++17 (64) TESTS 36 31 2048000
142523319 scau_y C Jan. 12, 2022, 2:47 p.m. OK GNU C++17 (64) TESTS 36 31 2150400
142522888 l__ovish_Dua C Jan. 12, 2022, 2:43 p.m. OK GNU C++17 (64) TESTS 36 31 2252800
142540046 WUTLTH C Jan. 12, 2022, 5:58 p.m. OK GNU C++17 (64) TESTS 36 31 26521600
142559974 lofivo C Jan. 13, 2022, 3:42 a.m. OK GNU C++17 (64) TESTS 36 46 1024000
142555818 202003012001 C Jan. 13, 2022, 1:45 a.m. OK GNU C++17 (64) TESTS 36 46 1024000
142524199 juanpabloamezcuagonzalez C Jan. 12, 2022, 2:54 p.m. OK GNU C++17 (64) TESTS 36 46 1024000
142513760 icey_z C Jan. 12, 2022, 1:55 p.m. OK GNU C++20 (64) TESTS 36 15 2150400
142530422 kimden C Jan. 12, 2022, 3:59 p.m. OK GNU C++20 (64) TESTS 36 31 0
142547515 A_G C Jan. 12, 2022, 8:06 p.m. OK GNU C++20 (64) TESTS 36 31 1024000
142520841 ReiAC C Jan. 12, 2022, 2:29 p.m. OK GNU C++20 (64) TESTS 36 31 1126400
142511632 pavement C Jan. 12, 2022, 1:49 p.m. OK GNU C++20 (64) TESTS 36 31 2150400
142510557 illusionist27 C Jan. 12, 2022, 1:46 p.m. OK GNU C++20 (64) TESTS 36 31 2150400
142560795 Ausp3x C Jan. 13, 2022, 3:58 a.m. OK GNU C++20 (64) TESTS 36 46 1024000
142565655 lyfdxh C Jan. 13, 2022, 5:19 a.m. OK GNU C++20 (64) TESTS 36 46 1024000
142556711 hanhanlala C Jan. 13, 2022, 2:17 a.m. OK GNU C++20 (64) TESTS 36 46 1024000
142556345 hanhanlala C Jan. 13, 2022, 2:04 a.m. OK GNU C++20 (64) TESTS 36 46 1024000
142517875 gurkaran_s C Jan. 12, 2022, 2:04 p.m. OK Java 11 TESTS 36 296 0
142516507 tarun_200109 C Jan. 12, 2022, 2:01 p.m. OK Java 11 TESTS 36 311 0
142552126 S-A-I-T-A-M-A C Jan. 12, 2022, 10:40 p.m. OK Java 11 TESTS 36 327 0
142557066 Sandy_coder2001 C Jan. 13, 2022, 2:29 a.m. OK Java 11 TESTS 36 327 0
142556752 shivam_2018 C Jan. 13, 2022, 2:18 a.m. OK Java 11 TESTS 36 327 0
142524290 MubtasimShahriar C Jan. 12, 2022, 2:55 p.m. OK Java 11 TESTS 36 327 0
142527006 pras7946 C Jan. 12, 2022, 3:20 p.m. OK Java 11 TESTS 36 343 0
142568856 SavageClown007 C Jan. 13, 2022, 5:59 a.m. OK Java 11 TESTS 36 420 0
142562058 madhav0 C Jan. 13, 2022, 4:21 a.m. OK Java 11 TESTS 36 482 0
142551785 Toinfinity C Jan. 12, 2022, 10:23 p.m. OK Java 11 TESTS 36 499 0
142532160 ak_ankit C Jan. 12, 2022, 4:21 p.m. OK Java 8 TESTS 36 171 3584000
142533004 RonWonWon C Jan. 12, 2022, 4:31 p.m. OK Java 8 TESTS 36 186 3686400
142525862 SOME_ONEE C Jan. 12, 2022, 3:10 p.m. OK Java 8 TESTS 36 202 3584000
142522011 honeysingh18 C Jan. 12, 2022, 2:36 p.m. OK Java 8 TESTS 36 202 3891200
142530630 Akram-Adel C Jan. 12, 2022, 4:02 p.m. OK Java 8 TESTS 36 249 3584000
142512501 kkkkush C Jan. 12, 2022, 1:52 p.m. OK Java 8 TESTS 36 264 3584000
142565276 naitikvarshney C Jan. 13, 2022, 5:15 a.m. OK Java 8 TESTS 36 265 3584000
142547890 vgrechko C Jan. 12, 2022, 8:15 p.m. OK Java 8 TESTS 36 280 3686400
142538877 guru1603 C Jan. 12, 2022, 5:43 p.m. OK Java 8 TESTS 36 295 3584000
142554852 ytu_czl C Jan. 13, 2022, 1:03 a.m. OK Java 8 TESTS 36 327 3584000
142527531 httohu C Jan. 12, 2022, 3:26 p.m. OK MS C++ 2017 TESTS 36 93 1024000
142535787 misaka12435 C Jan. 12, 2022, 5:06 p.m. OK MS C++ 2017 TESTS 36 171 4096000
142547153 Nidz05 C Jan. 12, 2022, 7:57 p.m. OK .NET Core C# TESTS 36 280 2969600
142521923 OLOGY C Jan. 12, 2022, 2:36 p.m. OK PyPy 2 TESTS 36 311 1945600
142530138 OLOGY C Jan. 12, 2022, 3:56 p.m. OK PyPy 2 TESTS 36 327 2048000
142537364 OLOGY C Jan. 12, 2022, 5:25 p.m. OK PyPy 2 TESTS 36 436 2048000
142536984 OLOGY C Jan. 12, 2022, 5:21 p.m. OK PyPy 2 TESTS 36 436 2048000
142520180 OLOGY C Jan. 12, 2022, 2:26 p.m. OK PyPy 2 TESTS 36 888 5324800
142517398 yonsweng C Jan. 12, 2022, 2:03 p.m. OK PyPy 3 TESTS 36 499 3276800
142521546 Bad_day_toCode C Jan. 12, 2022, 2:33 p.m. OK PyPy 3 TESTS 36 592 5939200
142553024 derghost C Jan. 12, 2022, 11:26 p.m. OK PyPy 3 TESTS 36 607 3481600
142514968 Malek_souissi C Jan. 12, 2022, 1:58 p.m. OK PyPy 3 TESTS 36 608 3993600
142554506 RomeCaesar C Jan. 13, 2022, 12:46 a.m. OK PyPy 3 TESTS 36 639 3788800
142522838 ambs_ C Jan. 12, 2022, 2:42 p.m. OK PyPy 3 TESTS 36 701 8089600
142525364 Eguy C Jan. 12, 2022, 3:05 p.m. OK PyPy 3 TESTS 36 701 11264000
142526287 dq2012 C Jan. 12, 2022, 3:13 p.m. OK PyPy 3 TESTS 36 733 7168000
142552481 xyxoro C Jan. 12, 2022, 10:58 p.m. OK PyPy 3 TESTS 36 1106 26726400
142515376 lebron87 C Jan. 12, 2022, 1:59 p.m. OK PyPy 3 TESTS 36 1107 105881600
142524888 fwtt2 C Jan. 12, 2022, 3 p.m. OK PyPy 3-64 TESTS 36 217 7782400
142529926 DBabichev C Jan. 12, 2022, 3:54 p.m. OK PyPy 3-64 TESTS 36 405 12902400
142513226 mmooyyii C Jan. 12, 2022, 1:54 p.m. OK PyPy 3-64 TESTS 36 592 20070400
142529202 SirVivor C Jan. 12, 2022, 3:45 p.m. OK PyPy 3-64 TESTS 36 685 8192000
142514523 Moodymann C Jan. 12, 2022, 1:57 p.m. OK PyPy 3-64 TESTS 36 795 89190400
142530428 notTehlka C Jan. 12, 2022, 3:59 p.m. OK PyPy 3-64 TESTS 36 920 9216000
142534060 thevaibhavdixit C Jan. 12, 2022, 4:45 p.m. OK PyPy 3-64 TESTS 36 951 6348800
142522458 dhaval_429 C Jan. 12, 2022, 2:40 p.m. OK PyPy 3-64 TESTS 36 1045 21913600
142567407 hxu10 C Jan. 13, 2022, 5:42 a.m. OK PyPy 3-64 TESTS 36 1060 7884800
142515782 ikoma C Jan. 12, 2022, 2 p.m. OK PyPy 3-64 TESTS 36 1075 20889600
142521181 pennymagic156 C Jan. 12, 2022, 2:31 p.m. OK Python 3 TESTS 36 1387 93593600
142523755 vishnukhanna01 C Jan. 12, 2022, 2:50 p.m. OK Python 3 TESTS 36 1824 92876800
142525283 Spheniscine C Jan. 12, 2022, 3:04 p.m. OK Rust 2021 TESTS 36 62 2150400
142528321 maan2003 C Jan. 12, 2022, 3:35 p.m. OK Rust 2021 TESTS 36 156 5836800
142528024 maan2003 C Jan. 12, 2022, 3:32 p.m. OK Rust 2021 TESTS 36 156 7987200
142513554 bqn C Jan. 12, 2022, 1:54 p.m. OK Rust 2021 TESTS 36 296 2150400
142534505 takezawa C Jan. 12, 2022, 4:51 p.m. OK Rust 2021 TESTS 36 467 4608000

remove filters

Back to search problems