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 |
---|---|---|---|---|---|---|
582 | Codeforces Round 323 (Div. 1) | FINISHED | False | 7200 | 287932499 | Oct. 3, 2015, 4:45 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 3444 ) | B | Once Again... | PROGRAMMING | constructive algorithms dp matrices | 2000 |
B'You are given an array of positive integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an xe2 x80 x89 xc3 x97 xe2 x80 x89T of length n xe2 x80 x89 xc3 x97 xe2 x80 x89T. We know that for any i xe2 x80 x89> xe2 x80 x89n it is true that ai xe2 x80 x89= xe2 x80 x89ai xe2 x80 x89- xe2 x80 x89n. Find the length of the longest non-decreasing sequence of the given array. The first line contains two space-separated integers: n, T (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89T xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89107). The second line contains n space-separated integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89300). Print a single number -- the length of a sought sequence. The array given in the sample looks like that: 3, 1, 4, 2, 3, 1, 4, 2, 3, 1, 4, 2. The elements in bold form the largest non-decreasing subsequence. '... |
Codeforces Round #323 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
56865474 | vjudge3 | B | July 12, 2019, 2:46 a.m. | OK | Clang++17 Diagnostics | TESTS | 48 | 77 | 102400 | 2000 | |
56865435 | Javi2004 | B | July 12, 2019, 2:44 a.m. | OK | Clang++17 Diagnostics | TESTS | 48 | 92 | 102400 | 2000 | |
13367896 | Gassa | B | Oct. 3, 2015, 5:02 p.m. | OK | D | TESTS | 48 | 31 | 1024000 | 2000 | |
13368158 | TheHedgehog | B | Oct. 3, 2015, 5:03 p.m. | OK | Delphi | TESTS | 48 | 77 | 56422400 | 2000 | |
13396367 | ruban | B | Oct. 4, 2015, 7:02 a.m. | OK | Delphi | TESTS | 48 | 483 | 52940800 | 2000 | |
14466568 | FrostStar | B | Nov. 25, 2015, 9:41 a.m. | OK | FPC | TESTS | 48 | 15 | 102400 | 2000 | |
17333739 | sen1998 | B | April 16, 2016, 2:50 a.m. | OK | FPC | TESTS | 48 | 15 | 4096000 | 2000 | |
30820907 | longtuong | B | Sept. 29, 2017, 5:45 a.m. | OK | FPC | TESTS | 48 | 15 | 16076800 | 2000 | |
30823750 | longtuong | B | Sept. 29, 2017, 8:35 a.m. | OK | FPC | TESTS | 48 | 15 | 16179200 | 2000 | |
18765850 | water235 | B | June 28, 2016, 10:31 a.m. | OK | FPC | TESTS | 48 | 30 | 819200 | 2000 | |
18660716 | Gray_58 | B | June 23, 2016, 9:28 a.m. | OK | FPC | TESTS | 48 | 31 | 2560000 | 2000 | |
19481555 | UltraRus26laN | B | July 29, 2016, 2:17 p.m. | OK | FPC | TESTS | 48 | 171 | 204800 | 2000 | |
31882538 | maishaumama | B | Oct. 30, 2017, 6:26 a.m. | OK | GNU C | TESTS | 48 | 15 | 0 | 2000 | |
13378109 | mirecek3 | B | Oct. 3, 2015, 6 p.m. | OK | GNU C | TESTS | 48 | 30 | 0 | 2000 | |
13386708 | sgtlaugh | B | Oct. 3, 2015, 8:27 p.m. | OK | GNU C | TESTS | 48 | 140 | 33587200 | 2000 | |
13386676 | sgtlaugh | B | Oct. 3, 2015, 8:25 p.m. | OK | GNU C | TESTS | 48 | 140 | 95744000 | 2000 | |
38413167 | vjudge4 | B | May 19, 2018, 12:18 a.m. | OK | GNU C++ | TESTS | 48 | 15 | 0 | 2000 | |
31883099 | _Jeba | B | Oct. 30, 2017, 6:57 a.m. | OK | GNU C++ | TESTS | 48 | 15 | 0 | 2000 | |
31883064 | MOBrocks | B | Oct. 30, 2017, 6:55 a.m. | OK | GNU C++ | TESTS | 48 | 15 | 0 | 2000 | |
29774266 | vjudge2 | B | Aug. 25, 2017, 8:53 a.m. | OK | GNU C++ | TESTS | 48 | 15 | 0 | 2000 | |
29774234 | vjudge2 | B | Aug. 25, 2017, 8:51 a.m. | OK | GNU C++ | TESTS | 48 | 15 | 0 | 2000 | |
29770598 | vjudge1 | B | Aug. 25, 2017, 6:32 a.m. | OK | GNU C++ | TESTS | 48 | 15 | 0 | 2000 | |
29770264 | vjudge3 | B | Aug. 25, 2017, 6:21 a.m. | OK | GNU C++ | TESTS | 48 | 15 | 0 | 2000 | |
29769336 | vjudge3 | B | Aug. 25, 2017, 5:40 a.m. | OK | GNU C++ | TESTS | 48 | 15 | 0 | 2000 | |
27522994 | vjudge3 | B | June 2, 2017, 12:04 p.m. | OK | GNU C++ | TESTS | 48 | 15 | 0 | 2000 | |
26896779 | tswdfop157 | B | May 6, 2017, 8:42 a.m. | OK | GNU C++ | TESTS | 48 | 15 | 0 | 2000 | |
57156197 | rainboy | B | July 16, 2019, 4:47 p.m. | OK | GNU C11 | TESTS | 48 | 31 | 0 | 2000 | |
13822615 | franclyn | B | Oct. 24, 2015, 10:39 a.m. | OK | GNU C++11 | TESTS | 48 | 15 | 0 | 2000 | |
27045490 | vjudge4 | B | May 12, 2017, 2:54 a.m. | OK | GNU C++11 | TESTS | 48 | 15 | 0 | 2000 | |
19305088 | AshishYadav | B | July 21, 2016, 3:30 p.m. | OK | GNU C++11 | TESTS | 48 | 15 | 0 | 2000 | |
17287116 | qoo2p5 | B | April 12, 2016, 8:21 a.m. | OK | GNU C++11 | TESTS | 48 | 15 | 0 | 2000 | |
15915469 | not_bot_but_POT | B | Feb. 9, 2016, 2:07 p.m. | OK | GNU C++11 | TESTS | 48 | 15 | 0 | 2000 | |
15511744 | SmallBoy | B | Jan. 23, 2016, 9:24 a.m. | OK | GNU C++11 | TESTS | 48 | 15 | 0 | 2000 | |
14999985 | Kmcode | B | Dec. 25, 2015, 8:58 a.m. | OK | GNU C++11 | TESTS | 48 | 15 | 0 | 2000 | |
13815467 | krijgertje | B | Oct. 23, 2015, 9:05 p.m. | OK | GNU C++11 | TESTS | 48 | 15 | 0 | 2000 | |
13789007 | Skeas | B | Oct. 22, 2015, 10:53 a.m. | OK | GNU C++11 | TESTS | 48 | 15 | 0 | 2000 | |
13725228 | Ruki | B | Oct. 19, 2015, 10:16 a.m. | OK | GNU C++11 | TESTS | 48 | 15 | 0 | 2000 | |
29509212 | 17371250530 | B | Aug. 16, 2017, 3:49 p.m. | OK | GNU C++14 | TESTS | 48 | 15 | 0 | 2000 | |
27522394 | vjudge5 | B | June 2, 2017, 11:33 a.m. | OK | GNU C++14 | TESTS | 48 | 15 | 0 | 2000 | |
27522370 | xin58 | B | June 2, 2017, 11:31 a.m. | OK | GNU C++14 | TESTS | 48 | 15 | 0 | 2000 | |
29509217 | vjudge3 | B | Aug. 16, 2017, 3:49 p.m. | OK | GNU C++14 | TESTS | 48 | 15 | 0 | 2000 | |
29611248 | vjudge1 | B | Aug. 20, 2017, 2:01 a.m. | OK | GNU C++14 | TESTS | 48 | 15 | 102400 | 2000 | |
29611081 | vjudge2 | B | Aug. 20, 2017, 1:44 a.m. | OK | GNU C++14 | TESTS | 48 | 15 | 102400 | 2000 | |
29610987 | vjudge3 | B | Aug. 20, 2017, 1:36 a.m. | OK | GNU C++14 | TESTS | 48 | 15 | 102400 | 2000 | |
29610968 | vjudge5 | B | Aug. 20, 2017, 1:34 a.m. | OK | GNU C++14 | TESTS | 48 | 15 | 102400 | 2000 | |
27537068 | Tooc0ld | B | June 3, 2017, 6:05 a.m. | OK | GNU C++14 | TESTS | 48 | 15 | 102400 | 2000 | |
31216700 | glory123 | B | Oct. 11, 2017, 12:54 p.m. | OK | GNU C++14 | TESTS | 48 | 15 | 102400 | 2000 | |
46750648 | Arey125 | B | Dec. 8, 2018, 9:01 a.m. | OK | GNU C++17 | TESTS | 48 | 30 | 307200 | 2000 | |
67997459 | bbkivines | B | Dec. 31, 2019, 8:58 a.m. | OK | GNU C++17 | TESTS | 48 | 31 | 0 | 2000 | |
60453406 | IT_MACHINE | B | Sept. 12, 2019, 4:53 p.m. | OK | GNU C++17 | TESTS | 48 | 31 | 0 | 2000 | |
54067451 | heno239 | B | May 13, 2019, 2:13 p.m. | OK | GNU C++17 | TESTS | 48 | 31 | 0 | 2000 | |
54064793 | vjudge2 | B | May 13, 2019, 12:54 p.m. | OK | GNU C++17 | TESTS | 48 | 31 | 0 | 2000 | |
53886245 | som | B | May 8, 2019, 6:24 p.m. | OK | GNU C++17 | TESTS | 48 | 31 | 0 | 2000 | |
56877605 | vjudge4 | B | July 12, 2019, 8:56 a.m. | OK | GNU C++17 | TESTS | 48 | 31 | 102400 | 2000 | |
67675479 | Mtaylor | B | Dec. 27, 2019, 1 a.m. | OK | GNU C++17 | TESTS | 48 | 31 | 102400 | 2000 | |
67675424 | Mtaylor | B | Dec. 27, 2019, 12:55 a.m. | OK | GNU C++17 | TESTS | 48 | 31 | 102400 | 2000 | |
57925053 | Javi2004 | B | July 29, 2019, 6:47 a.m. | OK | GNU C++17 | TESTS | 48 | 31 | 102400 | 2000 | |
13381753 | AndreySiunov | B | Oct. 3, 2015, 6:26 p.m. | OK | Java 7 | TESTS | 48 | 124 | 0 | 2000 | |
17799180 | Nirmit | B | May 7, 2016, 8:18 p.m. | OK | Java 7 | TESTS | 48 | 124 | 39116800 | 2000 | |
13376732 | shilov | B | Oct. 3, 2015, 5:50 p.m. | OK | Java 7 | TESTS | 48 | 155 | 0 | 2000 | |
15266572 | vunhatminh | B | Jan. 9, 2016, 8:56 a.m. | OK | Java 7 | TESTS | 48 | 170 | 0 | 2000 | |
13383811 | HidenoriS | B | Oct. 3, 2015, 6:40 p.m. | OK | Java 7 | TESTS | 48 | 218 | 0 | 2000 | |
13416090 | nguyenmanhphuc | B | Oct. 5, 2015, 12:57 p.m. | OK | Java 7 | TESTS | 48 | 249 | 7577600 | 2000 | |
16336353 | mkirsche | B | Feb. 25, 2016, 7:01 p.m. | OK | Java 7 | TESTS | 48 | 280 | 0 | 2000 | |
13391462 | phantom002 | B | Oct. 3, 2015, 11:16 p.m. | OK | Java 7 | TESTS | 48 | 296 | 0 | 2000 | |
13464765 | Mikhos | B | Oct. 7, 2015, 2:43 a.m. | OK | Java 7 | TESTS | 48 | 343 | 0 | 2000 | |
13394313 | joshkirstein | B | Oct. 4, 2015, 5:17 a.m. | OK | Java 7 | TESTS | 48 | 389 | 0 | 2000 | |
47603973 | xodiac | B | Dec. 28, 2018, 2:56 a.m. | OK | Java 8 | TESTS | 48 | 109 | 0 | 2000 | |
13421680 | pasza | B | Oct. 5, 2015, 7:12 p.m. | OK | Java 8 | TESTS | 48 | 109 | 0 | 2000 | |
29542018 | Kharouba | B | Aug. 18, 2017, 2:48 a.m. | OK | Java 8 | TESTS | 48 | 124 | 0 | 2000 | |
14341399 | sweiss | B | Nov. 19, 2015, 12:13 p.m. | OK | Java 8 | TESTS | 48 | 124 | 0 | 2000 | |
13598456 | miguelmaurizio | B | Oct. 13, 2015, 7:12 p.m. | OK | Java 8 | TESTS | 48 | 124 | 0 | 2000 | |
13393008 | meijun | B | Oct. 4, 2015, 3:34 a.m. | OK | Java 8 | TESTS | 48 | 124 | 0 | 2000 | |
13375488 | Slamur | B | Oct. 3, 2015, 5:41 p.m. | OK | Java 8 | TESTS | 48 | 124 | 0 | 2000 | |
13368995 | HFoFNK8qZHobzGBd | B | Oct. 3, 2015, 5:06 p.m. | OK | Java 8 | TESTS | 48 | 124 | 0 | 2000 | |
22795658 | Corvus | B | Dec. 7, 2016, 7:06 p.m. | OK | Java 8 | TESTS | 48 | 124 | 20480000 | 2000 | |
13383361 | Sumeet.Varma | B | Oct. 3, 2015, 6:37 p.m. | OK | Java 8 | TESTS | 48 | 124 | 22732800 | 2000 | |
13528190 | ulandev | B | Oct. 10, 2015, 12:03 p.m. | OK | JavaScript | TESTS | 48 | 78 | 1433600 | 2000 | |
13484228 | freepvps | B | Oct. 7, 2015, 8:20 p.m. | OK | MS C# | TESTS | 48 | 62 | 2457600 | 2000 | |
13374633 | og.kostya | B | Oct. 3, 2015, 5:36 p.m. | OK | MS C# | TESTS | 48 | 62 | 2457600 | 2000 | |
13477864 | AnatolyTolstobrov | B | Oct. 7, 2015, 2:34 p.m. | OK | MS C# | TESTS | 48 | 62 | 2560000 | 2000 | |
13374700 | azukun | B | Oct. 3, 2015, 5:36 p.m. | OK | MS C# | TESTS | 48 | 77 | 2457600 | 2000 | |
29521591 | vjudge2 | B | Aug. 17, 2017, 8:11 a.m. | OK | MS C++ | TESTS | 48 | 15 | 0 | 2000 | |
13426569 | shashack | B | Oct. 6, 2015, 5:48 a.m. | OK | MS C++ | TESTS | 48 | 15 | 512000 | 2000 | |
13865715 | xiaoyu20123 | B | Oct. 26, 2015, 3:30 a.m. | OK | MS C++ | TESTS | 48 | 15 | 1638400 | 2000 | |
48591020 | vjudge4 | B | Jan. 20, 2019, 2:15 a.m. | OK | MS C++ | TESTS | 48 | 30 | 0 | 2000 | |
29521550 | vjudge3 | B | Aug. 17, 2017, 8:09 a.m. | OK | MS C++ | TESTS | 48 | 30 | 0 | 2000 | |
13372457 | conglingdanpai | B | Oct. 3, 2015, 5:22 p.m. | OK | MS C++ | TESTS | 48 | 30 | 0 | 2000 | |
13385726 | SlavaSSU | B | Oct. 3, 2015, 7:52 p.m. | OK | MS C++ | TESTS | 48 | 30 | 819200 | 2000 | |
48496383 | vjudge1 | B | Jan. 17, 2019, 1:09 p.m. | OK | MS C++ | TESTS | 48 | 31 | 0 | 2000 | |
13372020 | Milanin | B | Oct. 3, 2015, 5:20 p.m. | OK | MS C++ | TESTS | 48 | 31 | 0 | 2000 | |
56962277 | vjudge3 | B | July 13, 2019, 7:04 a.m. | OK | MS C++ | TESTS | 48 | 31 | 102400 | 2000 | |
59904673 | CtrlAlt | B | Sept. 2, 2019, 2:53 p.m. | OK | MS C++ 2017 | TESTS | 48 | 31 | 102400 | 2000 | |
56885012 | vjudge5 | B | July 12, 2019, 12:12 p.m. | OK | MS C++ 2017 | TESTS | 48 | 31 | 102400 | 2000 | |
68099810 | pichulia | B | Jan. 3, 2020, 1:25 a.m. | OK | MS C++ 2017 | TESTS | 48 | 31 | 819200 | 2000 | |
68099695 | pichulia | B | Jan. 3, 2020, 1:16 a.m. | OK | MS C++ 2017 | TESTS | 48 | 31 | 819200 | 2000 | |
56877682 | vjudge3 | B | July 12, 2019, 8:58 a.m. | OK | MS C++ 2017 | TESTS | 48 | 31 | 819200 | 2000 | |
13866561 | nealzane | B | Oct. 26, 2015, 5:29 a.m. | OK | PyPy 2 | TESTS | 48 | 124 | 2764800 | 2000 | |
49548611 | kipply | B | Feb. 7, 2019, 3:02 a.m. | OK | Python 2 | TESTS | 48 | 280 | 204800 | 2000 | |
32365477 | yugle7 | B | Nov. 16, 2017, 9:14 p.m. | OK | Python 3 | TESTS | 48 | 77 | 0 | 2000 | |
32365723 | yugle7 | B | Nov. 16, 2017, 9:35 p.m. | OK | Python 3 | TESTS | 48 | 202 | 102400 | 2000 | |
35894597 | _____k_____ | B | March 3, 2018, 4:25 p.m. | OK | Python 3 | TESTS | 48 | 218 | 6348800 | 2000 | |
35893877 | ______n______ | B | March 3, 2018, 4:08 p.m. | OK | Python 3 | TESTS | 48 | 218 | 6348800 | 2000 | |
35893807 | ______u______ | B | March 3, 2018, 4:07 p.m. | OK | Python 3 | TESTS | 48 | 218 | 6348800 | 2000 | |
35888259 | _____i_____ | B | March 3, 2018, 2:18 p.m. | OK | Python 3 | TESTS | 48 | 218 | 6348800 | 2000 | |
35884676 | ______h______ | B | March 3, 2018, 1:15 p.m. | OK | Python 3 | TESTS | 48 | 218 | 6348800 | 2000 | |
35884358 | ______k______ | B | March 3, 2018, 1:09 p.m. | OK | Python 3 | TESTS | 48 | 218 | 6348800 | 2000 | |
35883462 | ______i______ | B | March 3, 2018, 12:56 p.m. | OK | Python 3 | TESTS | 48 | 218 | 6348800 | 2000 | |
35874701 | ______M______ | B | March 3, 2018, 7:57 a.m. | OK | Python 3 | TESTS | 48 | 218 | 6348800 | 2000 | |
13421373 | limed | B | Oct. 5, 2015, 6:47 p.m. | OK | Scala | TESTS | 48 | 249 | 204800 | 2000 |
Back to search problems