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 |
---|---|---|---|---|---|---|
1575 | COMPFEST 13 - Finals Online Mirror (Unrated, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 103998263 | Oct. 2, 2021, 1:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1446 ) | L | Longest Array Deconstruction | PROGRAMMING | data structures divide and conquer dp sortings |
B'Mr. Chanek gives you a sequence a indexed from 1 to n . Define f(a) as the number of indices where a_i = i . You can pick an element from the current sequence and remove it, then concatenate the remaining elements together. For example, if you remove the 3 -rd element from the sequence [4, 2, 3, 1] , the resulting sequence will be [4, 2, 1] . You want to remove some elements from a in order to maximize f(a) , using zero or more operations. Find the largest possible f(a) . The first line contains one integer n ( 1 <= q n <= q 2 cdot 10^5 ) -- the initial length of the sequence. The second line contains n integers a_1, a_2, ldots, a_n ( 1 <= q a_i <= q 2 cdot 10^5 ) -- the initial sequence a . Output an integer denoting the largest f(a) that can be obtained by doing zero or more operations. In the first example, f(A) = 3 by doing the following operations. [2,1, textbf{4},2,5,3,7] rightarrow [ textbf{2},1,2,5,3,7] rightarrow [1,2,5,3, textbf{7}] rightarrow [1,2, textbf{5},3] rightarrow [1,2,3] In the second example, f(A) = 2 and no additional operation is needed. '... |
COMPFEST 13 — Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
130593382 | tokitsukaze | L | Oct. 2, 2021, 6:55 p.m. | OK | GNU C++14 | TESTS | 18 | 46 | 11161600 | ||
130579538 | khuebeo ngfam_kongu chemthan | L | Oct. 2, 2021, 3:49 p.m. | OK | GNU C++14 | TESTS | 18 | 77 | 11776000 | ||
130574624 | wanghaoze justplaying wolf_moon | L | Oct. 2, 2021, 2:56 p.m. | OK | GNU C++14 | TESTS | 18 | 78 | 10956800 | ||
130582988 | lyc12345 | L | Oct. 2, 2021, 4:30 p.m. | OK | GNU C++14 | TESTS | 18 | 92 | 7577600 | ||
130615372 | ImAlone | L | Oct. 3, 2021, 5:03 a.m. | OK | GNU C++14 | TESTS | 18 | 93 | 7782400 | ||
130577453 | Dart-Xeyter shart23 sevlll | L | Oct. 2, 2021, 3:26 p.m. | OK | GNU C++14 | TESTS | 18 | 109 | 13107200 | ||
130574937 | Prince_Kassad | L | Oct. 2, 2021, 2:59 p.m. | OK | GNU C++14 | TESTS | 18 | 139 | 16588800 | ||
130578298 | molhaam1 you_dont_know_me Geo_Ghaffar | L | Oct. 2, 2021, 3:35 p.m. | OK | GNU C++14 | TESTS | 18 | 155 | 27136000 | ||
130578591 | rohit_goyal | L | Oct. 2, 2021, 3:38 p.m. | OK | GNU C++14 | TESTS | 18 | 280 | 20684800 | ||
130599150 | wizist | L | Oct. 2, 2021, 8:49 p.m. | OK | GNU C++14 | TESTS | 18 | 296 | 11980800 | ||
130597082 | Luqman | L | Oct. 2, 2021, 8:08 p.m. | OK | GNU C++17 | TESTS | 18 | 62 | 6963200 | ||
130604349 | ShJ | L | Oct. 2, 2021, 11:22 p.m. | OK | GNU C++17 | TESTS | 18 | 78 | 6963200 | ||
130608428 | forceac | L | Oct. 3, 2021, 2:15 a.m. | OK | GNU C++17 | TESTS | 18 | 78 | 7475200 | ||
130584704 | jaehyunp312 | L | Oct. 2, 2021, 4:53 p.m. | OK | GNU C++17 | TESTS | 18 | 78 | 7987200 | ||
130594540 | harsh__h | L | Oct. 2, 2021, 7:16 p.m. | OK | GNU C++17 | TESTS | 18 | 78 | 9420800 | ||
130587263 | Bugman | L | Oct. 2, 2021, 5:27 p.m. | OK | GNU C++17 | TESTS | 18 | 78 | 11571200 | ||
130609773 | baokhue232005 | L | Oct. 3, 2021, 2:53 a.m. | OK | GNU C++17 | TESTS | 18 | 78 | 13516800 | ||
130607729 | totheanh | L | Oct. 3, 2021, 1:53 a.m. | OK | GNU C++17 | TESTS | 18 | 93 | 6963200 | ||
130568823 | aarr afterall Amoo_Safar | L | Oct. 2, 2021, 2 p.m. | OK | GNU C++17 | TESTS | 18 | 93 | 10342400 | ||
130578130 | maspy | L | Oct. 2, 2021, 3:33 p.m. | OK | GNU C++17 | TESTS | 18 | 93 | 16486400 | ||
130615192 | akshaykhandelwal | L | Oct. 3, 2021, 4:59 a.m. | OK | GNU C++17 (64) | TESTS | 18 | 46 | 8499200 | ||
130607637 | HollwoQ_Pelw | L | Oct. 3, 2021, 1:50 a.m. | OK | GNU C++17 (64) | TESTS | 18 | 61 | 7680000 | ||
130592823 | misty1999 | L | Oct. 2, 2021, 6:45 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 61 | 24678400 | ||
130584330 | ramit19086 James_Bond_007 Satwik_Tiwari | L | Oct. 2, 2021, 4:48 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 62 | 7987200 | ||
130580781 | null_awe qpwoeirut BucketPotato | L | Oct. 2, 2021, 4:03 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 62 | 36454400 | ||
130567491 | Lemonade255 dtc03012 pser | L | Oct. 2, 2021, 1:47 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 77 | 7475200 | ||
130571521 | Farhod_Farmon | L | Oct. 2, 2021, 2:25 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 77 | 9625600 | ||
130581384 | .-O_O-. shashankagrawal | L | Oct. 2, 2021, 4:10 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 77 | 13926400 | ||
130580643 | tabr | L | Oct. 2, 2021, 4:01 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 77 | 14028800 | ||
130576641 | trainwithoutpain | L | Oct. 2, 2021, 3:17 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 77 | 15155200 | ||
130590710 | clyring | L | Oct. 2, 2021, 6:15 p.m. | OK | Haskell | TESTS | 18 | 108 | 28364800 | ||
130573965 | sansen | L | Oct. 2, 2021, 2:49 p.m. | OK | Rust | TESTS | 18 | 62 | 11673600 |
Back to search problems