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 |
---|---|---|---|---|---|---|
1868 | Codeforces Round 896 (Div. 1) | FINISHED | False | 9000 | 42825263 | Sept. 10, 2023, 2:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 79 ) | F | LIS? | PROGRAMMING | data structures greedy implementation |
B"Entering senior high school life, Tom is attracted by LIS problems, not only the Longest Increasing Subsequence problem, but also the Largest Interval Sum problem. Now he gets a really interesting problem from his friend Daniel. However, it seems too hard for him to solve it, so he asks you for help. Given an array a consisting of n integers. In one operation, you do the following: Find the minimum number of operations you need to perform to make a_i<0 for every 1 <= i <= n . The first line of input contains a single integer n ( 1 <= n <= 5 cdot 10^5 ) -- the length of the array a . The second line contains n integers a_1,a_2, ldots,a_n ( -10^6 <= a_i <= 10^6 ) -- the elements of the array a . Print a single integer -- the minimum number of operations. In the first example, you can do operations on intervals [1,5],[1,5],[2,5],[3,5],[4,5],[5,5] in such order. You may also do operations on intervals [1,5],[2,5],[3,5],[4,5],[5,5],[1,5] in such order. In the second example, it's already satisfied that a_i<0 for every 1 <= i <= n . So you do not need to perform any operations. "... |
Codeforces Round 896 (Div. 1, Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
222780872 | IZONE | F | Sept. 10, 2023, 3:44 p.m. | OK | GNU C++17 | TESTS | 207 | 2058 | 185753600 | ||
222833421 | km_zakaria_alam | F | Sept. 10, 2023, 9:50 p.m. | OK | GNU C++17 | TESTS | 208 | 2074 | 185651200 | ||
222790947 | maroonrk | F | Sept. 10, 2023, 4:02 p.m. | OK | GNU C++20 (64) | TESTS | 207 | 702 | 48844800 | ||
222852637 | Slamaa | F | Sept. 11, 2023, 4:52 a.m. | OK | GNU C++20 (64) | TESTS | 208 | 2542 | 676966400 | ||
222848667 | lbwhangbeateveryone | F | Sept. 11, 2023, 3:45 a.m. | OK | GNU C++20 (64) | TESTS | 208 | 2542 | 676966400 | ||
222818950 | maspy | F | Sept. 10, 2023, 6:39 p.m. | OK | GNU C++20 (64) | TESTS | 208 | 2714 | 476057600 | ||
222848462 | GeZhiyuan | F | Sept. 11, 2023, 3:41 a.m. | OK | GNU C++20 (64) | TESTS | 208 | 2776 | 417792000 |
Back to search problems