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 | 166116299 | Aug. 13, 2019, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 3584 ) | F1 | Complete the Projects (easy version) | PROGRAMMING | greedy | 2100 |
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. Is it possible to complete all the projects? Formally, write a program to check if such an order of the projects exists, that Polycarp has enough rating before starting each project, and he has non-negative rating after completing each project. In other words, you have to check that there exists such an order of projects in which Polycarp will complete them, so he has enough rating before starting each project, and has non-negative rating after completing each project. 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 "YES" or "NO". In the first example, the possible order is: 1, 2, 3 . In the second example, the possible order is: 2, 3, 1 . In the third example, the possible order is: 3, 1, 4, 2 . '... |
Codeforces Round #579 (Div. 3) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
58877768 | satvik007 | F1 | Aug. 15, 2019, 6:52 p.m. | OK | Clang++17 Diagnostics | TESTS | 55 | 46 | 6246400 | 2100 | |
58877163 | satvik007 | F1 | Aug. 15, 2019, 6:31 p.m. | OK | Clang++17 Diagnostics | TESTS | 55 | 46 | 6348800 | 2100 | |
65613288 | chaorenhaha | F1 | Nov. 24, 2019, 1:27 a.m. | OK | FPC | TESTS | 55 | 31 | 3174400 | 2100 | |
59555457 | shenlihong | F1 | Aug. 27, 2019, 5:57 a.m. | OK | GNU C11 | TESTS | 55 | 31 | 3174400 | 2100 | |
59214798 | vjudge2 | F1 | Aug. 21, 2019, 9:48 a.m. | OK | GNU C++11 | TESTS | 55 | 30 | 0 | 2100 | |
58985072 | wkywky | F1 | Aug. 18, 2019, 6:40 a.m. | OK | GNU C++11 | TESTS | 55 | 30 | 0 | 2100 | |
69580153 | vjudge4 | F1 | Jan. 26, 2020, 5:02 p.m. | OK | GNU C++11 | TESTS | 55 | 31 | 0 | 2100 | |
69191161 | LeThanhLong582000 | F1 | Jan. 20, 2020, 1:33 p.m. | OK | GNU C++11 | TESTS | 55 | 31 | 0 | 2100 | |
68391844 | 20181094 | F1 | Jan. 8, 2020, 9 a.m. | OK | GNU C++11 | TESTS | 55 | 31 | 0 | 2100 | |
68143700 | pauloamed | F1 | Jan. 4, 2020, 2:13 a.m. | OK | GNU C++11 | TESTS | 55 | 31 | 0 | 2100 | |
67771396 | vjudge2 | F1 | Dec. 28, 2019, 6:58 a.m. | OK | GNU C++11 | TESTS | 55 | 31 | 0 | 2100 | |
66593352 | Jose_Juan__SE | F1 | Dec. 10, 2019, 1:45 p.m. | OK | GNU C++11 | TESTS | 55 | 31 | 0 | 2100 | |
66564393 | code..breaker | F1 | Dec. 9, 2019, 8:47 p.m. | OK | GNU C++11 | TESTS | 55 | 31 | 0 | 2100 | |
68424944 | ThoseBygones | F1 | Jan. 9, 2020, 2:24 a.m. | OK | GNU C++11 | TESTS | 55 | 31 | 0 | 2100 | |
58915636 | Capricornmean | F1 | Aug. 16, 2019, 2:51 p.m. | OK | GNU C++14 | TESTS | 55 | 15 | 0 | 2100 | |
59846575 | matumbaman | F1 | Sept. 1, 2019, 9:45 a.m. | OK | GNU C++14 | TESTS | 55 | 15 | 0 | 2100 | |
61554358 | harrypotpot | F1 | Sept. 30, 2019, 1:33 p.m. | OK | GNU C++14 | TESTS | 55 | 30 | 0 | 2100 | |
68486650 | manishk16x | F1 | Jan. 10, 2020, 10:01 a.m. | OK | GNU C++14 | TESTS | 55 | 30 | 0 | 2100 | |
66038242 | vjudge3 | F1 | Nov. 30, 2019, 12:35 p.m. | OK | GNU C++14 | TESTS | 55 | 30 | 0 | 2100 | |
61043405 | shuai_hui | F1 | Sept. 22, 2019, 2:38 a.m. | OK | GNU C++14 | TESTS | 55 | 30 | 0 | 2100 | |
59657110 | zycmx | F1 | Aug. 29, 2019, 10:55 a.m. | OK | GNU C++14 | TESTS | 55 | 30 | 0 | 2100 | |
59641012 | ac_97 | F1 | Aug. 29, 2019, 1:32 a.m. | OK | GNU C++14 | TESTS | 55 | 30 | 0 | 2100 | |
59635874 | pranav_gupta | F1 | Aug. 28, 2019, 8:40 p.m. | OK | GNU C++14 | TESTS | 55 | 30 | 0 | 2100 | |
59628042 | hocky | F1 | Aug. 28, 2019, 4:49 p.m. | OK | GNU C++14 | TESTS | 55 | 30 | 0 | 2100 | |
60937095 | squirrel123 | F1 | Sept. 20, 2019, 3:44 p.m. | OK | GNU C++17 | TESTS | 55 | 15 | 0 | 2100 | |
58932751 | yp0413170431 | F1 | Aug. 17, 2019, 2:01 a.m. | OK | GNU C++17 | TESTS | 55 | 15 | 0 | 2100 | |
66473395 | binarmo | F1 | Dec. 7, 2019, 7:25 p.m. | OK | GNU C++17 | TESTS | 55 | 15 | 0 | 2100 | |
66010201 | darele | F1 | Nov. 30, 2019, 1:56 a.m. | OK | GNU C++17 | TESTS | 55 | 30 | 0 | 2100 | |
64482001 | binarmo | F1 | Nov. 7, 2019, 4:16 p.m. | OK | GNU C++17 | TESTS | 55 | 30 | 0 | 2100 | |
63692576 | Seanliu | F1 | Oct. 29, 2019, 3:37 a.m. | OK | GNU C++17 | TESTS | 55 | 30 | 0 | 2100 | |
60958712 | kobortor | F1 | Sept. 21, 2019, 4:18 a.m. | OK | GNU C++17 | TESTS | 55 | 30 | 0 | 2100 | |
65914524 | vl4ddos | F1 | Nov. 28, 2019, 2:05 p.m. | OK | GNU C++17 | TESTS | 55 | 30 | 0 | 2100 | |
67588017 | vjudge3 | F1 | Dec. 25, 2019, 9:01 a.m. | OK | GNU C++17 | TESTS | 55 | 30 | 0 | 2100 | |
66515380 | MrAlexandrov | F1 | Dec. 8, 2019, 6:38 p.m. | OK | GNU C++17 | TESTS | 55 | 30 | 0 | 2100 | |
59661119 | yang12138 | F1 | Aug. 29, 2019, 12:32 p.m. | OK | Go | TESTS | 55 | 46 | 0 | 2100 | |
58873866 | f2016042 | F1 | Aug. 15, 2019, 4:46 p.m. | OK | Java 8 | TESTS | 55 | 109 | 0 | 2100 | |
62967175 | dyhu083 | F1 | Oct. 20, 2019, 5:18 a.m. | OK | Java 8 | TESTS | 55 | 109 | 0 | 2100 | |
58915238 | adeepgarg13 | F1 | Aug. 16, 2019, 2:41 p.m. | OK | Java 8 | TESTS | 55 | 109 | 0 | 2100 | |
58884813 | jdurie | F1 | Aug. 16, 2019, 1:23 a.m. | OK | Java 8 | TESTS | 55 | 109 | 0 | 2100 | |
58879021 | Kharouba | F1 | Aug. 15, 2019, 7:35 p.m. | OK | Java 8 | TESTS | 55 | 109 | 0 | 2100 | |
59426544 | satya26 | F1 | Aug. 25, 2019, 3:02 a.m. | OK | Java 8 | TESTS | 55 | 124 | 0 | 2100 | |
59397273 | NullPointer116 | F1 | Aug. 24, 2019, 10:49 a.m. | OK | Java 8 | TESTS | 55 | 124 | 0 | 2100 | |
59243296 | unicorn20141 | F1 | Aug. 21, 2019, 9:05 p.m. | OK | Java 8 | TESTS | 55 | 124 | 0 | 2100 | |
59243013 | HAPKOMAH | F1 | Aug. 21, 2019, 8:53 p.m. | OK | Java 8 | TESTS | 55 | 124 | 0 | 2100 | |
59073649 | stormclass | F1 | Aug. 19, 2019, 6:07 a.m. | OK | Java 8 | TESTS | 55 | 124 | 0 | 2100 | |
60177358 | liouzhou_101 | F1 | Sept. 6, 2019, 2:53 p.m. | OK | Kotlin | TESTS | 55 | 140 | 0 | 2100 | |
62677997 | vjudge5 | F1 | Oct. 16, 2019, noon | OK | MS C++ | TESTS | 55 | 31 | 0 | 2100 | |
59518170 | APTX_4869_ | F1 | Aug. 26, 2019, 10:54 a.m. | OK | MS C++ | TESTS | 55 | 31 | 0 | 2100 | |
59518112 | APTX_4869_ | F1 | Aug. 26, 2019, 10:52 a.m. | OK | MS C++ | TESTS | 55 | 31 | 0 | 2100 | |
58931934 | vjudge3 | F1 | Aug. 17, 2019, 1:26 a.m. | OK | MS C++ | TESTS | 55 | 31 | 0 | 2100 | |
64206813 | vjudge3 | F1 | Nov. 4, 2019, 1:06 p.m. | OK | MS C++ | TESTS | 55 | 46 | 0 | 2100 | |
59980004 | 529886336 | F1 | Sept. 4, 2019, 7:50 a.m. | OK | MS C++ 2017 | TESTS | 55 | 31 | 0 | 2100 | |
59842756 | The_Fiery_Soul | F1 | Sept. 1, 2019, 8:04 a.m. | OK | MS C++ 2017 | TESTS | 55 | 31 | 0 | 2100 | |
59436576 | yorky | F1 | Aug. 25, 2019, 9:05 a.m. | OK | MS C++ 2017 | TESTS | 55 | 31 | 0 | 2100 | |
59203958 | Anton98 | F1 | Aug. 21, 2019, 6:11 a.m. | OK | MS C++ 2017 | TESTS | 55 | 31 | 0 | 2100 | |
58928397 | dandf | F1 | Aug. 16, 2019, 9:18 p.m. | OK | MS C++ 2017 | TESTS | 55 | 31 | 0 | 2100 | |
58877376 | EvGen1u5 | F1 | Aug. 15, 2019, 6:38 p.m. | OK | MS C++ 2017 | TESTS | 55 | 31 | 0 | 2100 | |
58913638 | mayakin | F1 | Aug. 16, 2019, 2:03 p.m. | OK | PHP | TESTS | 55 | 46 | 409600 | 2100 | |
59898607 | Benq | F1 | Sept. 2, 2019, 12:57 p.m. | OK | PyPy 3 | TESTS | 55 | 139 | 102400 | 2100 | |
60262442 | essi | F1 | Sept. 8, 2019, 12:05 p.m. | OK | PyPy 3 | TESTS | 55 | 140 | 0 | 2100 | |
58967579 | himankpathak | F1 | Aug. 17, 2019, 6:32 p.m. | OK | PyPy 3 | TESTS | 55 | 140 | 0 | 2100 | |
58964988 | koptev | F1 | Aug. 17, 2019, 5:19 p.m. | OK | PyPy 3 | TESTS | 55 | 140 | 0 | 2100 | |
58920270 | yunxingl | F1 | Aug. 16, 2019, 4:48 p.m. | OK | PyPy 3 | TESTS | 55 | 140 | 0 | 2100 | |
58891569 | vrishinvv | F1 | Aug. 16, 2019, 5:52 a.m. | OK | PyPy 3 | TESTS | 55 | 140 | 0 | 2100 | |
59637768 | anshulsaraf | F1 | Aug. 28, 2019, 10:07 p.m. | OK | PyPy 3 | TESTS | 55 | 140 | 102400 | 2100 | |
59908271 | SamuelLH | F1 | Sept. 2, 2019, 4:14 p.m. | OK | PyPy 3 | TESTS | 55 | 155 | 0 | 2100 | |
58968328 | _nobody_ | F1 | Aug. 17, 2019, 6:54 p.m. | OK | PyPy 3 | TESTS | 55 | 155 | 0 | 2100 | |
58886153 | macleChen | F1 | Aug. 16, 2019, 2:20 a.m. | OK | PyPy 3 | TESTS | 55 | 202 | 32460800 | 2100 | |
60248240 | dishank_goel | F1 | Sept. 8, 2019, 4:49 a.m. | OK | Python 3 | TESTS | 55 | 109 | 0 | 2100 | |
59387138 | sm1ley | F1 | Aug. 24, 2019, 6:54 a.m. | OK | Python 3 | TESTS | 55 | 109 | 0 | 2100 | |
58997757 | MajAK | F1 | Aug. 18, 2019, 12:13 p.m. | OK | Python 3 | TESTS | 55 | 109 | 0 | 2100 | |
58959001 | guruprasadc | F1 | Aug. 17, 2019, 2:19 p.m. | OK | Python 3 | TESTS | 55 | 109 | 0 | 2100 | |
68322692 | dazlersan1 Munchy_1 | F1 | Jan. 6, 2020, 3:34 p.m. | OK | Python 3 | TESTS | 55 | 109 | 307200 | 2100 | |
59557552 | ducangvimatnuoc | F1 | Aug. 27, 2019, 6:57 a.m. | OK | Python 3 | TESTS | 55 | 124 | 0 | 2100 | |
59387064 | sm1ley | F1 | Aug. 24, 2019, 6:52 a.m. | OK | Python 3 | TESTS | 55 | 124 | 0 | 2100 | |
59259523 | YW.Z | F1 | Aug. 22, 2019, 8 a.m. | OK | Python 3 | TESTS | 55 | 124 | 0 | 2100 | |
58959402 | deadguy | F1 | Aug. 17, 2019, 2:29 p.m. | OK | Python 3 | TESTS | 55 | 124 | 0 | 2100 | |
58914759 | may12day | F1 | Aug. 16, 2019, 2:29 p.m. | OK | Python 3 | TESTS | 55 | 124 | 0 | 2100 |
Back to search problems