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 |
---|---|---|---|---|---|---|
1474 | Codeforces Round 696 (Div. 2) | FINISHED | False | 7200 | 126113063 | Jan. 19, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 254 ) | F | 1 2 3 4 ... | PROGRAMMING | dp matrices |
B'Igor had a sequence d_1, d_2, ... , d_n of integers. When Igor entered the classroom there was an integer x written on the blackboard. Igor generated sequence p using the following algorithm: For example, if x = 3 , and d = [1, -1, 2] , p will be equal [3, 4, 3, 4, 5] . Igor decided to calculate the length of the longest increasing subsequence of p and the number of them. A sequence a is a subsequence of a sequence b if a can be obtained from b by deletion of several (possibly, zero or all) elements. A sequence a is an increasing sequence if each element of a (except the first one) is strictly greater than the previous element. For p = [3, 4, 3, 4, 5] , the length of longest increasing subsequence is 3 and there are 3 of them: [ underline{3}, underline{4}, 3, 4, underline{5}] , [ underline{3}, 4, 3, underline{4}, underline{5}] , [3, 4, underline{3}, underline{4}, underline{5}] . The first line contains a single integer n ( 1 <= q n <= q 50 ) -- the length of the sequence d . The second line contains a single integer x ( -10^9 <= q x <= q 10^9 ) -- the integer on the blackboard. The third line contains n integers d_1, d_2, ldots, d_n ( -10^9 <= q d_i <= q 10^9 ). Print two integers: You should print only the second number modulo 998244353 . The first test case was explained in the statement. In the second test case p = [100, 101, 102, 103, 104, 105, 104, 103, 102, 103, 104, 105, 106, 107, 108] . In the third test case p = [1, 2, ldots, 2000000000] . '... |
Codeforces Round #696 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
104841059 | rainboy | F | Jan. 19, 2021, 5:34 p.m. | OK | GNU C11 | TESTS | 85 | 155 | 102400 | ||
104864057 | nhho | F | Jan. 20, 2021, 2:39 a.m. | OK | GNU C++14 | TESTS | 85 | 31 | 204800 | ||
104864217 | nhho | F | Jan. 20, 2021, 2:43 a.m. | OK | GNU C++14 | TESTS | 85 | 31 | 204800 | ||
104840452 | IgorI | F | Jan. 19, 2021, 5:29 p.m. | OK | GNU C++17 | TESTS | 85 | 31 | 204800 | ||
104849796 | aryanc403 | F | Jan. 19, 2021, 7:29 p.m. | OK | GNU C++17 | TESTS | 85 | 296 | 204800 | ||
104839869 | Nero | F | Jan. 19, 2021, 5:24 p.m. | OK | GNU C++17 | TESTS | 85 | 2043 | 2355200 | ||
104838185 | Nero | F | Jan. 19, 2021, 5:14 p.m. | OK | GNU C++17 | TESTS | 85 | 2074 | 2355200 | ||
104869161 | jiangly | F | Jan. 20, 2021, 4:34 a.m. | OK | GNU C++17 (64) | TESTS | 85 | 31 | 0 | ||
104839244 | Geothermal | F | Jan. 19, 2021, 5:20 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 46 | 0 | ||
104842447 | neal | F | Jan. 19, 2021, 5:46 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 108 | 5529600 | ||
104849686 | aryanc403 | F | Jan. 19, 2021, 7:27 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 109 | 102400 | ||
104849712 | aryanc403 | F | Jan. 19, 2021, 7:27 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 109 | 102400 | ||
104854274 | neal | F | Jan. 19, 2021, 9:06 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 109 | 5529600 | ||
104841459 | neal | F | Jan. 19, 2021, 5:37 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 139 | 5529600 | ||
104841528 | neal | F | Jan. 19, 2021, 5:37 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 140 | 5529600 | ||
104840401 | aryanc403 | F | Jan. 19, 2021, 5:28 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 187 | 102400 | ||
104848150 | aryanc403 | F | Jan. 19, 2021, 7 p.m. | OK | GNU C++17 (64) | TESTS | 85 | 202 | 102400 |
Back to search problems