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 |
---|---|---|---|---|---|---|
1477 | Codeforces Round 698 (Div. 1) | FINISHED | False | 8100 | 125508311 | Jan. 28, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 129 ) | E | Nezzar and Tournaments | PROGRAMMING | data structures greedy | 3300 |
B"In the famous Oh-Suit-United tournament, two teams are playing against each other for the grand prize of precious pepper points. The first team consists of n players, and the second team consists of m players. Each player has a potential: the potential of the i -th player in the first team is a_i , and the potential of the i -th player in the second team is b_i . In the tournament, all players will be on the stage in some order. There will be a scoring device, initially assigned to an integer k , which will be used to value the performance of all players. The scores for all players will be assigned in the order they appear on the stage. Let the potential of the current player be x , and the potential of the previous player be y ( y equals x for the first player). Then, x-y is added to the value in the scoring device, Afterwards, if the value in the scoring device becomes negative, the value will be reset to 0 . Lastly, the player's score is assigned to the current value on the scoring device. The score of a team is the sum of the scores of all its members. As an insane fan of the first team, Nezzar desperately wants the biggest win for the first team. He now wonders what is the maximum difference between scores of the first team and the second team. Formally, let the score of the first team be score_f and the score of the second team be score_s . Nezzar wants to find the maximum value of score_f - score_s over all possible orders of players on the stage. However, situation often changes and there are q events that will happen. There are three types of events: Can you help Nezzar to answer the queries of the third type? The first line contains three integers n , m , and q ( 1 <= n,m <= 2 cdot 10^5, 1 <= q <= 5 cdot 10^5 ). The second line contains n integers a_1, a_2, ldots, a_n ( 0 <= a_i <= 10^6 ). The third line contai"... |
87294 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
105804712 | sh1194 | E | Jan. 29, 2021, 5:09 a.m. | OK | GNU C++11 | TESTS | 85 | 1450 | 113152000 | 3300 | |
105760921 | panole | E | Jan. 28, 2021, 4:33 p.m. | OK | GNU C++11 | TESTS | 85 | 1621 | 113152000 | 3300 | |
105808122 | jcvb | E | Jan. 29, 2021, 5:58 a.m. | OK | GNU C++11 | TESTS | 85 | 3806 | 76595200 | 3300 | |
105762238 | theStaticMind | E | Jan. 28, 2021, 4:36 p.m. | OK | GNU C++17 | TESTS | 85 | 2027 | 48332800 | 3300 | |
105804991 | yuvi_kunchala | E | Jan. 29, 2021, 5:14 a.m. | OK | GNU C++17 | TESTS | 85 | 2214 | 52326400 | 3300 | |
105772846 | ecnerwala | E | Jan. 28, 2021, 5:39 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 1278 | 38604800 | 3300 | |
105772130 | ecnerwala | E | Jan. 28, 2021, 5:34 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 1310 | 38604800 | 3300 | |
105770563 | ecnerwala | E | Jan. 28, 2021, 5:25 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 1325 | 38604800 | 3300 | |
105747638 | tourist | E | Jan. 28, 2021, 3:59 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 1512 | 53043200 | 3300 | |
105763410 | ecnerwala | E | Jan. 28, 2021, 4:39 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 1559 | 38604800 | 3300 | |
105749455 | dorijanlendvaj | E | Jan. 28, 2021, 4:03 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 1684 | 36556800 | 3300 | |
105770759 | Benq | E | Jan. 28, 2021, 5:26 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 1762 | 81817600 | 3300 | |
105763807 | stevenkplus | E | Jan. 28, 2021, 4:40 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 1980 | 54579200 | 3300 | |
105771270 | Radewoosh | E | Jan. 28, 2021, 5:29 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 2542 | 71884800 | 3300 | |
105766462 | maroonrk | E | Jan. 28, 2021, 4:47 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 2745 | 66048000 | 3300 |
Back to search problems