Codeforces Round 727 (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
1539 Codeforces Round 727 (Div. 2) FINISHED False 7200 107639699 June 20, 2021, 10:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11716 ) D PriceFixed PROGRAMMING binary search data structures greedy sortings two pointers 1600

B'Lena is the most economical girl in Moscow. So, when her dad asks her to buy some food for a trip to the country, she goes to the best store -- "PriceFixed". Here are some rules of that store: Lena needs to buy n products: she must purchase at least a_i items of the i -th product. Help Lena to calculate the minimum amount of money she needs to spend if she optimally chooses the order of purchasing. Note that if she wants, she can buy more items of some product than needed. The first line contains a single integer n ( 1 <= q n <= q 100 ,000 ) -- the number of products. Each of next n lines contains a product description. Each description consists of two integers a_i and b_i ( 1 <= q a_i <= q 10^{14} , 1 <= q b_i <= q 10^{14} ) -- the required number of the i -th product and how many products you need to buy to get the discount on the i -th product. The sum of all a_i does not exceed 10^{14} . Output the minimum sum that Lena needs to make all purchases. In the first example, Lena can purchase the products in the following way: In total, she spends 8 rubles. It can be proved that it is impossible to spend less. In the second example Lena can purchase the products in the following way: In total, she spends 12 rubles. '...

Tutorials

tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
120126223 ssvb D June 20, 2021, 1:07 p.m. OK D TESTS 27 140 13516800 1600
120139320 ruban D June 20, 2021, 2:54 p.m. OK Delphi TESTS 27 233 101888000 1600
120131129 RealArtist D June 20, 2021, 1:40 p.m. OK GNU C11 TESTS 27 62 5632000 1600
120168335 explorerxx D June 21, 2021, 2:26 a.m. OK GNU C++11 TESTS 28 46 1638400 1600
120126362 Illusory_dimes D June 20, 2021, 1:07 p.m. OK GNU C++11 TESTS 27 46 2457600 1600
120128374 ETK. D June 20, 2021, 1:19 p.m. OK GNU C++11 TESTS 27 46 3174400 1600
120149979 NEUQJacker D June 20, 2021, 4:53 p.m. OK GNU C++11 TESTS 27 46 3174400 1600
120164441 _byta D June 20, 2021, 11:09 p.m. OK GNU C++11 TESTS 28 46 3993600 1600
120139897 vjudge4 D June 20, 2021, 2:59 p.m. OK GNU C++11 TESTS 27 46 16076800 1600
120177513 Epiphanyi D June 21, 2021, 5:46 a.m. OK GNU C++11 TESTS 28 61 1433600 1600
120136508 He_Ren D June 20, 2021, 2:28 p.m. OK GNU C++11 TESTS 27 61 1638400 1600
120177126 GSHgsh D June 21, 2021, 5:41 a.m. OK GNU C++11 TESTS 28 61 1638400 1600
120131890 chen_03 D June 20, 2021, 1:47 p.m. OK GNU C++11 TESTS 27 62 1433600 1600
120157386 Jerry_Mouse D June 20, 2021, 6:59 p.m. OK GNU C++14 TESTS 27 77 1638400 1600
120169003 i_star_lord D June 21, 2021, 2:49 a.m. OK GNU C++14 TESTS 28 77 1638400 1600
120165473 jzdx D June 21, 2021, 12:21 a.m. OK GNU C++14 TESTS 28 77 1638400 1600
120161784 adityaofficial100 D June 20, 2021, 8:53 p.m. OK GNU C++14 TESTS 27 77 1638400 1600
120136229 keyurchd_11 D June 20, 2021, 2:25 p.m. OK GNU C++14 TESTS 27 77 1638400 1600
120140402 corpulent D June 20, 2021, 3:03 p.m. OK GNU C++14 TESTS 27 77 3174400 1600
120167309 cicada2020 D June 21, 2021, 1:47 a.m. OK GNU C++14 TESTS 28 77 3174400 1600
120159487 a_manglani D June 20, 2021, 7:49 p.m. OK GNU C++14 TESTS 27 77 3174400 1600
120133791 rsgt24 D June 20, 2021, 2:03 p.m. OK GNU C++14 TESTS 27 77 3174400 1600
120173109 93wilsonlu D June 21, 2021, 4:33 a.m. OK GNU C++14 TESTS 28 78 1638400 1600
120130966 MR.BOSS D June 20, 2021, 1:39 p.m. OK GNU C++17 TESTS 27 77 1638400 1600
120163938 _Askeladd_ D June 20, 2021, 10:33 p.m. OK GNU C++17 TESTS 28 77 1638400 1600
120131899 zhangpangpang D June 20, 2021, 1:47 p.m. OK GNU C++17 TESTS 27 77 1638400 1600
120159135 code_r01 D June 20, 2021, 7:39 p.m. OK GNU C++17 TESTS 27 77 1945600 1600
120155738 chyenn D June 20, 2021, 6:26 p.m. OK GNU C++17 TESTS 27 77 1945600 1600
120155498 chyenn D June 20, 2021, 6:21 p.m. OK GNU C++17 TESTS 27 77 1945600 1600
120156768 KiruxaLight D June 20, 2021, 6:45 p.m. OK GNU C++17 TESTS 27 77 4915200 1600
120175268 raushanis1 D June 21, 2021, 5:13 a.m. OK GNU C++17 TESTS 28 78 1638400 1600
120178024 surya535 D June 21, 2021, 5:54 a.m. OK GNU C++17 TESTS 28 78 1638400 1600
120164665 timg8710 D June 20, 2021, 11:27 p.m. OK GNU C++17 TESTS 28 78 1638400 1600
120134910 yx20201301 D June 20, 2021, 2:13 p.m. OK GNU C++17 (64) TESTS 27 31 3788800 1600
120165448 _Backl1ght D June 21, 2021, 12:20 a.m. OK GNU C++17 (64) TESTS 28 31 9113600 1600
120131443 ronit_singh D June 20, 2021, 1:43 p.m. OK GNU C++17 (64) TESTS 27 46 1638400 1600
120173737 mkp6781 D June 21, 2021, 4:46 a.m. OK GNU C++17 (64) TESTS 28 46 1638400 1600
120127500 youtsuha D June 20, 2021, 1:13 p.m. OK GNU C++17 (64) TESTS 27 46 1638400 1600
120126014 Gats D June 20, 2021, 1:06 p.m. OK GNU C++17 (64) TESTS 27 46 2048000 1600
120166084 zykmd D June 21, 2021, 12:53 a.m. OK GNU C++17 (64) TESTS 28 46 3174400 1600
120163702 Lost_Arrow D June 20, 2021, 10:18 p.m. OK GNU C++17 (64) TESTS 28 61 1638400 1600
120173664 sagnik_mitra D June 21, 2021, 4:44 a.m. OK GNU C++17 (64) TESTS 28 61 1638400 1600
120172372 tanishq_code_c D June 21, 2021, 4:15 a.m. OK GNU C++17 (64) TESTS 28 61 1638400 1600
120134526 ypa D June 20, 2021, 2:10 p.m. OK Java 11 TESTS 27 218 0 1600
120151986 Kunal_30 D June 20, 2021, 5:25 p.m. OK Java 11 TESTS 27 234 0 1600
120134518 khaufnak D June 20, 2021, 2:09 p.m. OK Java 11 TESTS 27 234 0 1600
120149258 coder_9 D June 20, 2021, 4:43 p.m. OK Java 11 TESTS 27 249 0 1600
120150481 SaberXpro D June 20, 2021, 5:01 p.m. OK Java 11 TESTS 27 264 0 1600
120172886 algothink D June 21, 2021, 4:27 a.m. OK Java 11 TESTS 28 264 0 1600
120171649 akhileshreddy D June 21, 2021, 3:58 a.m. OK Java 11 TESTS 28 264 0 1600
120164627 _Body D June 20, 2021, 11:23 p.m. OK Java 11 TESTS 28 265 0 1600
120170957 nitin23329 D June 21, 2021, 3:42 a.m. OK Java 11 TESTS 28 280 0 1600
120178436 devil_the_coder D June 21, 2021, 6 a.m. OK Java 11 TESTS 28 280 0 1600
120137127 Lior D June 20, 2021, 2:33 p.m. OK Java 8 TESTS 27 140 0 1600
120129282 nuni. D June 20, 2021, 1:26 p.m. OK Java 8 TESTS 27 202 0 1600
120147489 golions D June 20, 2021, 4:18 p.m. OK Java 8 TESTS 27 202 0 1600
120154312 guru1603 D June 20, 2021, 6:02 p.m. OK Java 8 TESTS 27 218 0 1600
120130770 pramit1998 D June 20, 2021, 1:37 p.m. OK Java 8 TESTS 27 249 0 1600
120160922 pras7946 D June 20, 2021, 8:27 p.m. OK Java 8 TESTS 27 264 0 1600
120126275 4mda4mda D June 20, 2021, 1:07 p.m. OK Java 8 TESTS 27 264 0 1600
120155520 guru1603 D June 20, 2021, 6:22 p.m. OK Java 8 TESTS 27 265 0 1600
120129689 This_is_the_one D June 20, 2021, 1:29 p.m. OK Java 8 TESTS 27 280 0 1600
120121962 SlowLegendaryNoobMaster D June 20, 2021, 12:03 p.m. OK Java 8 TESTS 27 280 0 1600
120172913 guga451 D June 21, 2021, 4:28 a.m. OK Kotlin TESTS 28 280 7065600 1600
120153079 ryo_n D June 20, 2021, 5:43 p.m. OK Kotlin TESTS 27 342 5017600 1600
120135939 Tlatoani D June 20, 2021, 2:22 p.m. OK Kotlin TESTS 27 343 1843200 1600
120153524 ryo_n D June 20, 2021, 5:50 p.m. OK Kotlin TESTS 27 373 6758400 1600
120142935 pallav12 D June 20, 2021, 3:28 p.m. OK Kotlin TESTS 27 717 6553600 1600
120145735 heavenhunter D June 20, 2021, 3:56 p.m. OK Mono C# TESTS 27 155 8908800 1600
120144392 heavenhunter D June 20, 2021, 3:42 p.m. OK Mono C# TESTS 27 186 8908800 1600
120158998 xsc D June 20, 2021, 7:36 p.m. OK MS C++ 2017 TESTS 27 93 1638400 1600
120125886 YaMi506 D June 20, 2021, 1:05 p.m. OK MS C++ 2017 TESTS 27 233 1638400 1600
120139046 Blejac D June 20, 2021, 2:51 p.m. OK MS C++ 2017 TESTS 27 233 1638400 1600
120127058 gevak D June 20, 2021, 1:10 p.m. OK MS C++ 2017 TESTS 27 249 4505600 1600
120129644 dino_merlin D June 20, 2021, 1:28 p.m. OK MS C++ 2017 TESTS 27 311 10444800 1600
120129489 sakapon D June 20, 2021, 1:27 p.m. OK .NET Core C# TESTS 27 171 16384000 1600
120127704 Sylvus D June 20, 2021, 1:15 p.m. OK .NET Core C# TESTS 27 218 12390400 1600
120129331 chinesedfan D June 20, 2021, 1:26 p.m. OK Node.js TESTS 27 342 29696000 1600
120163211 lebron87 D June 20, 2021, 9:50 p.m. OK PyPy 2 TESTS 28 623 17715200 1600
120139861 acorn11 D June 20, 2021, 2:59 p.m. OK PyPy 2 TESTS 27 920 14950400 1600
120163201 lebron87 D June 20, 2021, 9:49 p.m. OK PyPy 2 TESTS 28 998 17408000 1600
120134709 rivnam D June 20, 2021, 2:11 p.m. OK PyPy 3 TESTS 27 342 15360000 1600
120134436 Nemisis2.O D June 20, 2021, 2:09 p.m. OK PyPy 3 TESTS 27 342 15360000 1600
120126783 tehlka D June 20, 2021, 1:09 p.m. OK PyPy 3 TESTS 27 405 15872000 1600
120125787 not_tehlka D June 20, 2021, 1:05 p.m. OK PyPy 3 TESTS 27 405 15872000 1600
120176680 hsh8086 D June 21, 2021, 5:35 a.m. OK PyPy 3 TESTS 28 451 22528000 1600
120162869 lebron87 D June 20, 2021, 9:35 p.m. OK PyPy 3 TESTS 27 561 24678400 1600
120126282 gourav2001k D June 20, 2021, 1:07 p.m. OK PyPy 3 TESTS 27 561 28774400 1600
120127805 nitin4184 D June 20, 2021, 1:16 p.m. OK PyPy 3 TESTS 27 576 16281600 1600
120163248 lebron87 D June 20, 2021, 9:52 p.m. OK PyPy 3 TESTS 28 576 24678400 1600
120177450 iimmortal D June 21, 2021, 5:46 a.m. OK PyPy 3 TESTS 28 592 18432000 1600
120139919 acorn11 D June 20, 2021, 2:59 p.m. OK Python 2 TESTS 27 530 12800000 1600
120172403 shiviDON D June 21, 2021, 4:16 a.m. OK Python 3 TESTS 28 373 10854400 1600
120142997 StillMortal D June 20, 2021, 3:29 p.m. OK Python 3 TESTS 27 374 13516800 1600
120130604 unknown030405 D June 20, 2021, 1:36 p.m. OK Python 3 TESTS 27 390 10752000 1600
120131216 abhishek_b190331ep D June 20, 2021, 1:41 p.m. OK Python 3 TESTS 27 436 10240000 1600
120176892 hellohowareyou D June 21, 2021, 5:38 a.m. OK Python 3 TESTS 28 436 10342400 1600
120154585 kamomelon D June 20, 2021, 6:06 p.m. OK Python 3 TESTS 27 436 10342400 1600
120172345 shiviDON D June 21, 2021, 4:14 a.m. OK Python 3 TESTS 28 436 11264000 1600
120125844 andr14142 D June 20, 2021, 1:05 p.m. OK Python 3 TESTS 27 498 11468800 1600
120151754 tusharjain0022 D June 20, 2021, 5:22 p.m. OK Python 3 TESTS 27 499 10342400 1600
120155877 Rajesh_Kaipa D June 20, 2021, 6:28 p.m. OK Python 3 TESTS 27 529 11673600 1600
120149839 orz_liuwei D June 20, 2021, 4:51 p.m. OK Rust TESTS 27 61 7372800 1600

remove filters

Back to search problems