Codeforces Round 550 (Div. 3)

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
1144 Codeforces Round 550 (Div. 3) FINISHED False 7200 177782099 March 31, 2019, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2014 ) G Two Merged Sequences PROGRAMMING dp greedy 2600

B'Two integer sequences existed initially, one of them was strictly increasing, and another one -- strictly decreasing. Strictly increasing sequence is a sequence of integers [x_1 < x_2 < ... < x_k] . And strictly decreasing sequence is a sequence of integers [y_1 > y_2 > ... > y_l] . Note that the empty sequence and the sequence consisting of one element can be considered as increasing or decreasing. Elements of increasing sequence were inserted between elements of the decreasing one (and, possibly, before its first element and after its last element) without changing the order. For example, sequences [1, 3, 4] and [10, 4, 2] can produce the following resulting sequences: [10, textbf{1}, textbf{3}, 4, 2, textbf{4}] , [ textbf{1}, textbf{3}, textbf{4}, 10, 4, 2] . The following sequence cannot be the result of these insertions: [ textbf{1}, 10, textbf{4}, 4, textbf{3}, 2] because the order of elements in the increasing sequence was changed. Let the obtained sequence be a . This sequence a is given in the input. Your task is to find any two suitable initial sequences. One of them should be strictly increasing, and another one -- strictly decreasing. Note that the empty sequence and the sequence consisting of one element can be considered as increasing or decreasing. If there is a contradiction in the input and it is impossible to split the given sequence a into one increasing sequence and one decreasing sequence, print "NO". The first line of the input contains one integer n ( 1 <= n <= 2 cdot 10^5 ) -- the number of elements in a . The second line of the input contains n integers a_1, a_2, ... , a_n ( 0 <= a_i <= 2 cdot 10^5 ), where a_i is the i -th element of a . If there is a contradiction in the input and it is impossible to split the given sequence a into one increasing sequence and one decreasing sequence, print "NO" in the f'...

Tutorials

66307

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
52723567 Denor G April 13, 2019, 9:37 p.m. OK Delphi TESTS 32 77 1024000 2600
52502419 Mint_Dentifrice G April 8, 2019, 4:47 p.m. OK FPC TESTS 32 623 1024000 2600
53031308 xukuan G April 20, 2019, 12:49 a.m. OK GNU C++11 TESTS 32 31 5017600 2600
62365986 2016c01 G Oct. 11, 2019, 1:51 p.m. OK GNU C++11 TESTS 33 46 819200 2600
53283638 Vxlimo G April 25, 2019, 1:02 p.m. OK GNU C++11 TESTS 33 46 1638400 2600
53283601 Vxlimo G April 25, 2019, 1:01 p.m. OK GNU C++11 TESTS 33 46 1638400 2600
69300445 JoneySun G Jan. 22, 2020, 1:38 p.m. OK GNU C++11 TESTS 33 46 2457600 2600
52306822 dpkun G April 4, 2019, 12:37 p.m. OK GNU C++11 TESTS 32 46 2662400 2600
57878973 Frame233 G July 28, 2019, 6:52 a.m. OK GNU C++11 TESTS 33 46 3379200 2600
52997188 AntiQuality G April 19, 2019, 4:48 a.m. OK GNU C++11 TESTS 32 46 4812800 2600
57367249 shenmadongdong G July 20, 2019, 9:36 a.m. OK GNU C++11 TESTS 33 46 5017600 2600
55610389 ReaLNero1 G June 16, 2019, 5:17 a.m. OK GNU C++11 TESTS 33 46 5017600 2600
53494353 bbssgg11 G April 29, 2019, 10:51 a.m. OK GNU C++14 TESTS 33 62 3174400 2600
59417139 MaGaroo G Aug. 24, 2019, 6:51 p.m. OK GNU C++14 TESTS 33 62 7270400 2600
52537263 zhy123 G April 9, 2019, 4:14 p.m. OK GNU C++14 TESTS 32 77 819200 2600
52235979 qingyv G April 2, 2019, 1:46 p.m. OK GNU C++14 TESTS 32 77 819200 2600
52215602 cycleke G April 2, 2019, 1:13 a.m. OK GNU C++14 TESTS 32 77 819200 2600
54380241 HipHop G May 19, 2019, 10:35 a.m. OK GNU C++14 TESTS 33 77 1024000 2600
52788845 TselmegKh G April 15, 2019, 4:07 p.m. OK GNU C++14 TESTS 32 77 1024000 2600
52502629 Mint_Dentifrice G April 8, 2019, 4:53 p.m. OK GNU C++14 TESTS 32 77 1024000 2600
52889680 dchy2000 G April 17, 2019, 7:15 a.m. OK GNU C++14 TESTS 32 77 2457600 2600
52193086 Nimazare G April 1, 2019, 4:31 p.m. OK GNU C++14 TESTS 32 77 2457600 2600
52251160 nickluo G April 3, 2019, 12:29 a.m. OK GNU C++17 TESTS 32 62 7884800 2600
52739866 DeletePiki G April 14, 2019, 8:24 a.m. OK GNU C++17 TESTS 32 77 819200 2600
52531680 qwerty559 G April 9, 2019, 1:43 p.m. OK GNU C++17 TESTS 32 77 819200 2600
52226838 AryaKnight G April 2, 2019, 9:59 a.m. OK GNU C++17 TESTS 32 77 1024000 2600
53566611 MorningZC G April 30, 2019, 12:47 p.m. OK GNU C++17 TESTS 33 77 1536000 2600
52779932 wjli G April 15, 2019, 1:46 p.m. OK GNU C++17 TESTS 32 77 1638400 2600
52366379 _Kkura_ G April 6, 2019, 2:06 a.m. OK GNU C++17 TESTS 32 77 1638400 2600
53301939 notbot G April 25, 2019, 9:36 p.m. OK GNU C++17 TESTS 33 77 2969600 2600
60603023 CQzhangyu G Sept. 15, 2019, 8:28 a.m. OK GNU C++17 TESTS 33 77 3174400 2600
52221740 vjudge4 G April 2, 2019, 7 a.m. OK GNU C++17 TESTS 32 77 3379200 2600
54085743 lpls1 G May 14, 2019, 7:14 a.m. OK Java 8 TESTS 33 140 0 2600
56045888 saptarshim G June 25, 2019, 4:34 p.m. OK Java 8 TESTS 33 155 0 2600
52675987 xodiac G April 13, 2019, 9:38 a.m. OK Java 8 TESTS 32 155 0 2600
66263567 dalt G Dec. 4, 2019, 9:26 a.m. OK Java 8 TESTS 33 155 23552000 2600
52466533 Jeel_Vaishnav G April 7, 2019, 3:59 p.m. OK Java 8 TESTS 32 156 0 2600
52261128 aman28rwt G April 3, 2019, 8:51 a.m. OK Java 8 TESTS 32 156 0 2600
52485273 jijiamingxiangshanghong G April 8, 2019, 8:34 a.m. OK Java 8 TESTS 32 186 2355200 2600
52402650 Ruins G April 6, 2019, 12:41 p.m. OK Java 8 TESTS 32 202 3174400 2600
52229030 zhishou G April 2, 2019, 11:06 a.m. OK Java 8 TESTS 32 218 3481600 2600
52714066 Andres1 G April 13, 2019, 4:16 p.m. OK Java 8 TESTS 32 248 6656000 2600
58420425 Spheniscine G Aug. 7, 2019, 7:29 a.m. OK Kotlin TESTS 33 421 17817600 2600
58421909 Spheniscine G Aug. 7, 2019, 8:07 a.m. OK Kotlin TESTS 33 452 17817600 2600
58421611 Spheniscine G Aug. 7, 2019, 8 a.m. OK Kotlin TESTS 33 467 17817600 2600
58419725 Spheniscine G Aug. 7, 2019, 7:10 a.m. OK Kotlin TESTS 33 514 17817600 2600
52360209 Dm17r1y G April 5, 2019, 7:16 p.m. OK Mono C# TESTS 32 904 32358400 2600
52534395 vjudge5 G April 9, 2019, 2:54 p.m. OK MS C++ TESTS 32 62 819200 2600
52260743 vjudge1 G April 3, 2019, 8:39 a.m. OK MS C++ TESTS 32 77 1638400 2600
52261139 vjudge5 G April 3, 2019, 8:51 a.m. OK MS C++ TESTS 32 77 3174400 2600
53946545 vjudge1 G May 10, 2019, 7:03 a.m. OK MS C++ TESTS 33 77 3174400 2600
53949704 vjudge2 G May 10, 2019, 8:51 a.m. OK MS C++ TESTS 33 78 1638400 2600
52261144 vjudge2 G April 3, 2019, 8:52 a.m. OK MS C++ TESTS 32 78 3174400 2600
52261083 vjudge2 G April 3, 2019, 8:50 a.m. OK MS C++ TESTS 32 78 3174400 2600
52908073 S.K G April 17, 2019, 1:18 p.m. OK MS C++ TESTS 32 78 4812800 2600
52908997 S.K G April 17, 2019, 1:32 p.m. OK MS C++ TESTS 32 78 4812800 2600
53897665 vjudge2 G May 9, 2019, 7:09 a.m. OK MS C++ TESTS 33 78 7168000 2600
52673857 AleksanderBalobanov G April 13, 2019, 8:41 a.m. OK MS C++ 2017 TESTS 32 109 4812800 2600
52495693 booiris G April 8, 2019, 1:35 p.m. OK MS C++ 2017 TESTS 32 124 2457600 2600
52778763 moreda G April 15, 2019, 1:13 p.m. OK MS C++ 2017 TESTS 32 234 3276800 2600
53027116 SendThemToHell G April 19, 2019, 7:55 p.m. OK MS C++ 2017 TESTS 32 249 3788800 2600
52534758 Izeytee G April 9, 2019, 3:04 p.m. OK MS C++ 2017 TESTS 32 264 6451200 2600
52311873 yfo G April 4, 2019, 3:01 p.m. OK PyPy 3 TESTS 32 280 21913600 2600
52958610 l.j.zakharov G April 18, 2019, 2:48 p.m. OK PyPy 3 TESTS 32 296 20889600 2600
53841695 Dezyh G May 7, 2019, 7:55 a.m. OK PyPy 3 TESTS 33 327 19558400 2600
52285451 Helli.code G April 3, 2019, 7:27 p.m. OK PyPy 3 TESTS 32 327 19558400 2600
56050463 ThePonyCoder G June 25, 2019, 6:47 p.m. OK PyPy 3 TESTS 33 592 28979200 2600
52500888 jddymx G April 8, 2019, 4:01 p.m. OK Python 3 TESTS 32 389 17305600 2600
52343677 praveen.123 G April 5, 2019, 11:42 a.m. OK Python 3 TESTS 32 545 14643200 2600
53841636 Dezyh G May 7, 2019, 7:53 a.m. OK Python 3 TESTS 33 577 14643200 2600
52513762 Demon_King G April 9, 2019, 2:59 a.m. OK Python 3 TESTS 32 577 14643200 2600
52413190 Canoe G April 6, 2019, 2:01 p.m. OK Python 3 TESTS 32 592 14643200 2600
52319258 Butskhrikidze G April 4, 2019, 6:45 p.m. OK Python 3 TESTS 32 608 14643200 2600
52313670 LateSum G April 4, 2019, 3:56 p.m. OK Python 3 TESTS 32 951 46796800 2600
52284333 alykov G April 3, 2019, 6:49 p.m. OK Rust TESTS 32 93 5734400 2600
52284892 alykov G April 3, 2019, 7:10 p.m. OK Rust TESTS 32 124 5734400 2600

remove filters

Back to search problems