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 |
---|---|---|---|---|---|---|
1322 | Codeforces Round 626 (Div. 1, based on Moscow Open Olympiad in Informatics) | FINISHED | False | 7200 | 153779111 | March 7, 2020, 9:35 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 780 ) | D | Reality Show | PROGRAMMING | bitmasks dp |
B'A popular reality show is recruiting a new cast for the third season! n candidates numbered from 1 to n have been interviewed. The candidate i has aggressiveness level l_i , and recruiting this candidate will cost the show s_i roubles. The show host reviewes applications of all candidates from i=1 to i=n by increasing of their indices, and for each of them she decides whether to recruit this candidate or not. If aggressiveness level of the candidate i is strictly higher than that of any already accepted candidates, then the candidate i will definitely be rejected. Otherwise the host may accept or reject this candidate at her own discretion. The host wants to choose the cast so that to maximize the total profit. The show makes revenue as follows. For each aggressiveness level v a corresponding profitability value c_v is specified, which can be positive as well as negative. All recruited participants enter the stage one by one by increasing of their indices. When the participant i enters the stage, events proceed as follows: It is allowed to select an empty set of participants (to choose neither of the candidates). The host wants to recruit the cast so that the total profit is maximized. The profit is calculated as the total revenue from the events on stage, less the total expenses to recruit all accepted participants (that is, their total s_i ). Help the host to make the show as profitable as possible. The first line contains two integers n and m ( 1 <= n, m <= 2000 ) -- the number of candidates and an upper bound for initial aggressiveness levels. The second line contains n integers l_i ( 1 <= l_i <= m ) -- initial aggressiveness levels of all candidates. The third line contains n integers s_i ( 0 <= s_i <= 5000 ) -- the costs (in roubles) to recruit each of the candidates. The fourth line contains n + m integers '... |
Codeforces Round #626 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
72663067 | danya090699 | D | March 7, 2020, 12:50 p.m. | OK | GNU C++11 | TESTS | 132 | 77 | 16281600 | ||
72696467 | alex_Harry | D | March 8, 2020, 12:05 a.m. | OK | GNU C++11 | TESTS | 132 | 78 | 64409600 | ||
72697167 | QYHamster | D | March 8, 2020, 12:45 a.m. | OK | GNU C++11 | TESTS | 132 | 93 | 38809600 | ||
72646921 | It5t | D | March 7, 2020, 10:37 a.m. | OK | GNU C++11 | TESTS | 132 | 109 | 16076800 | ||
72653727 | KMAASZRAA | D | March 7, 2020, 11:09 a.m. | OK | GNU C++11 | TESTS | 132 | 109 | 64512000 | ||
72650733 | ACCE12138 | D | March 7, 2020, 10:54 a.m. | OK | GNU C++11 | TESTS | 132 | 109 | 67788800 | ||
72697760 | WZYYN | D | March 8, 2020, 1:14 a.m. | OK | GNU C++11 | TESTS | 132 | 109 | 100454400 | ||
72644625 | zhouyuyang | D | March 7, 2020, 10:28 a.m. | OK | GNU C++11 | TESTS | 132 | 109 | 200908800 | ||
72657780 | wzp666 | D | March 7, 2020, 11:29 a.m. | OK | GNU C++11 | TESTS | 132 | 124 | 32256000 | ||
72653167 | lzr_010506 | D | March 7, 2020, 11:06 a.m. | OK | GNU C++11 | TESTS | 132 | 124 | 100659200 | ||
72652325 | nealchen | D | March 7, 2020, 11:02 a.m. | OK | GNU C++14 | TESTS | 132 | 46 | 307200 | ||
72656210 | hitonanode | D | March 7, 2020, 11:22 a.m. | OK | GNU C++14 | TESTS | 132 | 62 | 307200 | ||
72655720 | betrue12 | D | March 7, 2020, 11:19 a.m. | OK | GNU C++14 | TESTS | 132 | 62 | 16076800 | ||
72656568 | OYJason | D | March 7, 2020, 11:24 a.m. | OK | GNU C++14 | TESTS | 132 | 62 | 18022400 | ||
72667743 | PinkRabbit | D | March 7, 2020, 1:58 p.m. | OK | GNU C++14 | TESTS | 132 | 93 | 32256000 | ||
72670210 | CN_zwang2002 | D | March 7, 2020, 2:37 p.m. | OK | GNU C++14 | TESTS | 132 | 93 | 33280000 | ||
72670518 | CN_zwang2002 | D | March 7, 2020, 2:42 p.m. | OK | GNU C++14 | TESTS | 132 | 93 | 65433600 | ||
72648101 | TadijaSebez | D | March 7, 2020, 10:42 a.m. | OK | GNU C++14 | TESTS | 132 | 108 | 409600 | ||
72657440 | ZZZZZZZZZZZZZZZZZZ | D | March 7, 2020, 11:28 a.m. | OK | GNU C++14 | TESTS | 132 | 108 | 64307200 | ||
72667621 | yan-zp | D | March 7, 2020, 1:56 p.m. | OK | GNU C++14 | TESTS | 132 | 124 | 33689600 | ||
72646593 | jiangly | D | March 7, 2020, 10:36 a.m. | OK | GNU C++17 | TESTS | 132 | 61 | 307200 | ||
72673362 | dreamoon_love_AA | D | March 7, 2020, 3:32 p.m. | OK | GNU C++17 | TESTS | 132 | 61 | 65536000 | ||
72648983 | maroonrk | D | March 7, 2020, 10:46 a.m. | OK | GNU C++17 | TESTS | 132 | 62 | 307200 | ||
72645310 | Dmitriy.Belichenko | D | March 7, 2020, 10:31 a.m. | OK | GNU C++17 | TESTS | 132 | 62 | 1843200 | ||
72657788 | Xellos | D | March 7, 2020, 11:29 a.m. | OK | GNU C++17 | TESTS | 132 | 62 | 8601600 | ||
72689312 | Benq | D | March 7, 2020, 8:09 p.m. | OK | GNU C++17 | TESTS | 132 | 77 | 32256000 | ||
72649173 | aid | D | March 7, 2020, 10:47 a.m. | OK | GNU C++17 | TESTS | 132 | 77 | 128614400 | ||
72655702 | Semenar | D | March 7, 2020, 11:19 a.m. | OK | GNU C++17 | TESTS | 132 | 78 | 512000 | ||
72694424 | saketh | D | March 7, 2020, 11:01 p.m. | OK | GNU C++17 | TESTS | 132 | 78 | 32153600 | ||
72663443 | jhdonghj112 | D | March 7, 2020, 12:56 p.m. | OK | GNU C++17 | TESTS | 132 | 78 | 35430400 | ||
72674832 | cwise | D | March 7, 2020, 3:57 p.m. | OK | Java 8 | TESTS | 132 | 374 | 90931200 | ||
72655685 | qwerty787788 | D | March 7, 2020, 11:19 a.m. | OK | Java 8 | TESTS | 132 | 467 | 16896000 |
Back to search problems