Codeforces Round 579 (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
1203 Codeforces Round 579 (Div. 3) FINISHED False 8400 171732287 Aug. 13, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2952 ) F2 Complete the Projects (hard version) PROGRAMMING dp greedy 2400

B"The only difference between easy and hard versions is that you should complete all the projects in easy version but this is not necessary in hard version. Polycarp is a very famous freelancer. His current rating is r units. Some very rich customers asked him to complete some projects for their companies. To complete the i -th project, Polycarp needs to have at least a_i units of rating; after he completes this project, his rating will change by b_i (his rating will increase or decrease by b_i ) ( b_i can be positive or negative). Polycarp's rating should not fall below zero because then people won't trust such a low rated freelancer. Polycarp can choose the order in which he completes projects. Furthermore, he can even skip some projects altogether. To gain more experience (and money, of course) Polycarp wants to choose the subset of projects having maximum possible size and the order in which he will complete them, so he has enough rating before starting each project, and has non-negative rating after completing each project. Your task is to calculate the maximum possible size of such subset of projects. The first line of the input contains two integers n and r ( 1 <= n <= 100, 1 <= r <= 30000 ) -- the number of projects and the initial rating of Polycarp, respectively. The next n lines contain projects, one per line. The i -th project is represented as a pair of integers a_i and b_i ( 1 <= a_i <= 30000 , -300 <= b_i <= 300 ) -- the rating required to complete the i -th project and the rating change after the project completion. Print one integer -- the size of the maximum possible subset (possibly, empty) of projects Polycarp can choose. "...

Tutorials

Codeforces Round #579 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
59557018 shenlihong F2 Aug. 27, 2019, 6:42 a.m. OK GNU C11 TESTS 94 31 3174400 2400
60835207 verwang F2 Sept. 19, 2019, 8:42 a.m. OK GNU C++11 TESTS 94 31 0 2400
60834967 verwang F2 Sept. 19, 2019, 8:36 a.m. OK GNU C++11 TESTS 94 31 0 2400
60834801 verwang F2 Sept. 19, 2019, 8:32 a.m. OK GNU C++11 TESTS 94 31 0 2400
69191111 LeThanhLong582000 F2 Jan. 20, 2020, 1:32 p.m. OK GNU C++11 TESTS 94 31 0 2400
60824135 Charming_Chen F2 Sept. 19, 2019, 2:42 a.m. OK GNU C++11 TESTS 94 31 0 2400
59676620 18231169220 F2 Aug. 29, 2019, 6:25 p.m. OK GNU C++11 TESTS 94 31 0 2400
59215847 vjudge3 F2 Aug. 21, 2019, 10:12 a.m. OK GNU C++11 TESTS 94 31 0 2400
59201533 rourous F2 Aug. 21, 2019, 5:07 a.m. OK GNU C++11 TESTS 94 31 0 2400
67780191 vjudge2 F2 Dec. 28, 2019, 10:39 a.m. OK GNU C++11 TESTS 94 31 0 2400
63668173 18231169220 F2 Oct. 28, 2019, 4:02 p.m. OK GNU C++11 TESTS 94 31 0 2400
61560317 _FlyingColor_ F2 Sept. 30, 2019, 3:20 p.m. OK GNU C++14 TESTS 94 30 12595200 2400
59970097 crabxmz F2 Sept. 4, 2019, 12:10 a.m. OK GNU C++14 TESTS 94 31 0 2400
65554764 3DpoNCh1k F2 Nov. 22, 2019, 8:53 p.m. OK GNU C++14 TESTS 94 31 0 2400
63234669 KaziMuktadir F2 Oct. 23, 2019, 11:58 a.m. OK GNU C++14 TESTS 94 31 0 2400
60280823 iwillchangeitnextyear F2 Sept. 8, 2019, 8:44 p.m. OK GNU C++14 TESTS 94 31 0 2400
60233865 CaroLinda F2 Sept. 7, 2019, 5:28 p.m. OK GNU C++14 TESTS 94 31 0 2400
60169937 Yazmau F2 Sept. 6, 2019, 12:30 p.m. OK GNU C++14 TESTS 94 31 0 2400
59435154 venmei F2 Aug. 25, 2019, 8:25 a.m. OK GNU C++14 TESTS 94 31 0 2400
59098541 joydisorder F2 Aug. 19, 2019, 3:08 p.m. OK GNU C++14 TESTS 94 31 0 2400
58939708 tex1323 F2 Aug. 17, 2019, 6:22 a.m. OK GNU C++14 TESTS 94 31 0 2400
58934135 yp0413170431 F2 Aug. 17, 2019, 2:55 a.m. OK GNU C++17 TESTS 94 30 102400 2400
59382174 cjnwq F2 Aug. 24, 2019, 4:04 a.m. OK GNU C++17 TESTS 94 30 102400 2400
58896878 shizu F2 Aug. 16, 2019, 7:52 a.m. OK GNU C++17 TESTS 94 30 204800 2400
60648844 corndeng F2 Sept. 15, 2019, 6:15 p.m. OK GNU C++17 TESTS 94 30 307200 2400
58989489 Frozensmile F2 Aug. 18, 2019, 8:37 a.m. OK GNU C++17 TESTS 94 31 0 2400
58989381 Frozensmile F2 Aug. 18, 2019, 8:34 a.m. OK GNU C++17 TESTS 94 31 0 2400
59113888 elManco F2 Aug. 19, 2019, 11:46 p.m. OK GNU C++17 TESTS 94 31 0 2400
62599924 Jiburiru F2 Oct. 15, 2019, 4:54 a.m. OK GNU C++17 TESTS 94 31 0 2400
60958002 kobortor F2 Sept. 21, 2019, 3:54 a.m. OK GNU C++17 TESTS 94 31 0 2400
59053960 904833505 F2 Aug. 18, 2019, 6:13 p.m. OK GNU C++17 TESTS 94 31 0 2400
59661813 yang12138 F2 Aug. 29, 2019, 12:47 p.m. OK Go TESTS 94 46 31232000 2400
58958731 muy_atractivo F2 Aug. 17, 2019, 2:12 p.m. OK Java 8 TESTS 94 124 0 2400
63205955 dyhu083 F2 Oct. 22, 2019, 11:55 p.m. OK Java 8 TESTS 94 124 4096000 2400
58880375 Kharouba F2 Aug. 15, 2019, 8:33 p.m. OK Java 8 TESTS 94 124 5222400 2400
58965050 shadowsultan F2 Aug. 17, 2019, 5:21 p.m. OK Java 8 TESTS 94 140 4915200 2400
60500888 beginner1010 F2 Sept. 13, 2019, 6:38 p.m. OK Java 8 TESTS 94 140 5324800 2400
66648908 kalyanirishabh1198 F2 Dec. 11, 2019, 6:03 p.m. OK Java 8 TESTS 94 140 5632000 2400
58916360 adeepgarg13 F2 Aug. 16, 2019, 3:09 p.m. OK Java 8 TESTS 94 140 34508800 2400
59308800 unicorn20141 F2 Aug. 22, 2019, 4:15 p.m. OK Java 8 TESTS 94 140 37171200 2400
59347169 brainfxxk F2 Aug. 23, 2019, 10:12 a.m. OK Java 8 TESTS 94 155 0 2400
60032637 AnshDivya F2 Sept. 4, 2019, 3:49 p.m. OK Java 8 TESTS 94 155 6246400 2400
60177884 liouzhou_101 F2 Sept. 6, 2019, 3:04 p.m. OK Kotlin TESTS 94 343 1024000 2400
59980297 529886336 F2 Sept. 4, 2019, 7:57 a.m. OK MS C++ TESTS 94 31 0 2400
61911234 vjudge2 F2 Oct. 5, 2019, 10:58 a.m. OK MS C++ TESTS 94 31 48128000 2400
58928768 dandf F2 Aug. 16, 2019, 9:40 p.m. OK MS C++ 2017 TESTS 94 31 24064000 2400
59338740 guoriyue F2 Aug. 23, 2019, 6:31 a.m. OK MS C++ 2017 TESTS 94 46 0 2400
59336903 guoriyue F2 Aug. 23, 2019, 5:30 a.m. OK MS C++ 2017 TESTS 94 46 0 2400
58993644 Ivan_Dunko F2 Aug. 18, 2019, 10:20 a.m. OK MS C++ 2017 TESTS 94 46 512000 2400
59072808 querry F2 Aug. 19, 2019, 5:42 a.m. OK MS C++ 2017 TESTS 94 46 50483200 2400
59437132 yorky F2 Aug. 25, 2019, 9:21 a.m. OK MS C++ 2017 TESTS 94 92 82022400 2400
58935026 yumtam F2 Aug. 17, 2019, 3:31 a.m. OK PyPy 2 TESTS 94 155 921600 2400
59898965 Benq F2 Sept. 2, 2019, 1:03 p.m. OK PyPy 3 TESTS 94 170 1740800 2400
58998273 MajAK F2 Aug. 18, 2019, 12:28 p.m. OK PyPy 3 TESTS 94 186 2048000 2400
59104537 stupid_username F2 Aug. 19, 2019, 5:26 p.m. OK PyPy 3 TESTS 94 187 2048000 2400
58885992 macleChen F2 Aug. 16, 2019, 2:13 a.m. OK PyPy 3 TESTS 94 249 32460800 2400
68826709 Rodro F2 Jan. 14, 2020, 7:32 p.m. OK PyPy 3 TESTS 94 265 14643200 2400
58912642 Lina_Inverse F2 Aug. 16, 2019, 1:40 p.m. OK PyPy 3 TESTS 94 280 16793600 2400
59132611 yfo F2 Aug. 20, 2019, 11:34 a.m. OK PyPy 3 TESTS 94 280 33484800 2400
59000322 Rotolord F2 Aug. 18, 2019, 1:26 p.m. OK PyPy 3 TESTS 94 280 33996800 2400
59106785 himankpathak F2 Aug. 19, 2019, 6:22 p.m. OK PyPy 3 TESTS 94 327 17100800 2400
58899896 brosucks F2 Aug. 16, 2019, 8:48 a.m. OK PyPy 3 TESTS 94 468 11059200 2400
59104628 stupid_username F2 Aug. 19, 2019, 5:28 p.m. OK Python 3 TESTS 94 140 409600 2400
58936613 Lancern F2 Aug. 17, 2019, 4:40 a.m. OK Rust TESTS 94 31 204800 2400

remove filters

Back to search problems