Codeforces LATOKEN Round 1 (Div. 1 + 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
1534 Codeforces LATOKEN Round 1 (Div. 1 + Div. 2) FINISHED False 10800 108224699 June 13, 2021, 3:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 573 ) G A New Beginning PROGRAMMING constructive algorithms dp

B"Annie has gotten bored of winning every coding contest and farming unlimited rating. Today, she is going to farm potatoes instead. Annie's garden is an infinite 2D plane. She has n potatoes to plant, and the i -th potato must be planted at (x_i,y_i) . Starting at the point (0, 0) , Annie begins walking, in one step she can travel one unit right or up (increasing her x or y coordinate by 1 respectively). At any point (X,Y) during her walk she can plant some potatoes at arbitrary points using her potato gun, consuming max(|X-x|,|Y-y|) units of energy in order to plant a potato at (x,y) . Find the minimum total energy required to plant every potato. Note that Annie may plant any number of potatoes from any point. The first line contains the integer n ( 1 <= n <= 800 ,000 ). The next n lines contain two integers x_i and y_i ( 0 <= x_i,y_i <= 10^9 ), representing the location of the i -th potato. It is possible that some potatoes should be planted in the same location. Print the minimum total energy to plant all potatoes. In example 1 , Annie can travel to each spot directly and plant a potato with no energy required. In example 2 , moving to (1,0) , Annie plants the second potato using 1 energy. Next, she travels to (1,1) and plants the first potato with 0 energy. "...

Tutorials

Codeforces LATOKEN Round 1 (Div. 1 + Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
119416164 Suiseiseki G June 14, 2021, 4:16 a.m. OK GNU C++11 TESTS 242 545 48332800
119399748 dlalswp25 G June 13, 2021, 7:51 p.m. OK GNU C++14 TESTS 242 1060 68608000
119395182 djq_fpc G June 13, 2021, 6:28 p.m. OK GNU C++14 TESTS 242 1075 34201600
119399532 BSBandme G June 13, 2021, 7:50 p.m. OK GNU C++14 TESTS 242 2354 121856000
119412096 ugly2333 G June 14, 2021, 2:53 a.m. OK GNU C++14 TESTS 242 3992 70553600
119409767 OrlKorrekt G June 14, 2021, 1:46 a.m. OK GNU C++17 TESTS 242 795 23859200
119404875 kefaa2 G June 13, 2021, 9:39 p.m. OK GNU C++17 TESTS 242 795 23859200
119415543 minhtuanltt G June 14, 2021, 4:04 a.m. OK GNU C++17 TESTS 242 842 34201600
119399423 rama_pang G June 13, 2021, 7:50 p.m. OK GNU C++17 TESTS 242 982 34201600
119403810 sanskar G June 13, 2021, 9:04 p.m. OK GNU C++17 TESTS 242 1045 34201600
119389738 PinkRabbit G June 13, 2021, 6:07 p.m. OK GNU C++17 TESTS 242 1949 64409600
119396056 --d G June 13, 2021, 6:31 p.m. OK GNU C++17 TESTS 242 2168 96563200
119404220 Dormi G June 13, 2021, 9:17 p.m. OK GNU C++17 TESTS 242 2199 82022400
119386837 Marcin_smu G June 13, 2021, 5:55 p.m. OK GNU C++17 TESTS 242 2901 120934400
119388314 ksun48 G June 13, 2021, 6:02 p.m. OK GNU C++17 TESTS 242 4429 119910400
119399399 noimi G June 13, 2021, 7:50 p.m. OK GNU C++17 (64) TESTS 242 452 92262400
119404077 neal G June 13, 2021, 9:13 p.m. OK GNU C++17 (64) TESTS 242 545 35328000
119408279 Maksim1744 G June 14, 2021, 12:43 a.m. OK GNU C++17 (64) TESTS 242 546 18534400
119400915 Dormi G June 13, 2021, 8:02 p.m. OK GNU C++17 (64) TESTS 242 546 38912000
119399892 hitonanode G June 13, 2021, 7:52 p.m. OK GNU C++17 (64) TESTS 242 623 35328000
119408093 Maksim1744 G June 14, 2021, 12:32 a.m. OK GNU C++17 (64) TESTS 242 1154 83558400
119408209 Maksim1744 G June 14, 2021, 12:38 a.m. OK GNU C++17 (64) TESTS 242 1232 83558400
119386916 ko_osaga G June 13, 2021, 5:55 p.m. OK GNU C++17 (64) TESTS 242 1341 28876800
119416161 cuom1999 G June 14, 2021, 4:16 a.m. OK GNU C++17 (64) TESTS 242 2028 106803200
119386175 gamegame G June 13, 2021, 5:52 p.m. OK GNU C++17 (64) TESTS 242 2947 56934400
119399637 uwi G June 13, 2021, 7:51 p.m. OK Java 11 TESTS 242 1715 122572800

remove filters

Back to search problems