Codeforces Round 384 (Div. 2)

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
743 Codeforces Round 384 (Div. 2) FINISHED False 7200 250097099 Dec. 14, 2016, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1506 ) E Vladik and cards PROGRAMMING binary search bitmasks brute force dp 2300

B"Vladik was bored on his way home and decided to play the following game. He took n cards and put them in a row in front of himself. Every card has a positive integer number not exceeding 8 written on it. He decided to find the longest subsequence of cards which satisfies the following conditions: Please help Vladik to find the length of the longest subsequence that satisfies both conditions. The first line contains single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000) -- the number of cards in Vladik's sequence. The second line contains the sequence of n positive integers not exceeding 8 -- the description of Vladik's sequence. Print single integer -- the length of the longest subsequence of Vladik's sequence that satisfies both conditions. In the first sample all the numbers written on the cards are equal, so you can't take more than one card, otherwise you'll violate the first condition. "...

Tutorials

Codeforces Round #384 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
43489829 cpy E Sept. 27, 2018, 12:08 p.m. OK D TESTS 41 186 4608000 2300
23021969 ngattaro1 E Dec. 16, 2016, 4:31 a.m. OK FPC TESTS 41 46 2457600 2300
23078046 binh123456 E Dec. 18, 2016, 6:24 a.m. OK FPC TESTS 41 46 36249600 2300
23013445 longNH.IT17 E Dec. 15, 2016, 5:15 p.m. OK FPC TESTS 41 77 36249600 2300
23007542 bzh E Dec. 15, 2016, 1:35 p.m. OK FPC TESTS 41 249 102400 2300
25437561 Gray_58 E March 12, 2017, 2:59 p.m. OK FPC TESTS 41 373 51814400 2300
22973423 gepardo E Dec. 14, 2016, 4:21 p.m. OK FPC TESTS 41 530 11878400 2300
23002619 jkxjkx1031 E Dec. 15, 2016, 9:56 a.m. OK GNU C TESTS 41 78 53043200 2300
23001413 Marco_L_T E Dec. 15, 2016, 8:59 a.m. OK GNU C++ TESTS 41 15 921600 2300
23006344 icecathy E Dec. 15, 2016, 12:53 p.m. OK GNU C++ TESTS 41 15 1126400 2300
23050783 Vengeance E Dec. 17, 2016, 3:25 p.m. OK GNU C++ TESTS 41 15 1433600 2300
34923368 luogu_bot4 E Feb. 4, 2018, 12:51 p.m. OK GNU C++ TESTS 41 15 2969600 2300
31508133 zcyhhh E Oct. 19, 2017, 12:44 p.m. OK GNU C++ TESTS 41 15 3174400 2300
28691605 vjudge5 E July 19, 2017, 9:11 a.m. OK GNU C++ TESTS 41 15 3174400 2300
28815635 vjudge2 E July 24, 2017, 6:03 a.m. OK GNU C++ TESTS 41 15 3276800 2300
22979597 nhho E Dec. 14, 2016, 6:24 p.m. OK GNU C++ TESTS 41 15 5632000 2300
23010057 jl0x61 E Dec. 15, 2016, 3:05 p.m. OK GNU C++ TESTS 41 30 1024000 2300
23050630 selfcompiler E Dec. 17, 2016, 3:17 p.m. OK GNU C++ TESTS 41 30 1024000 2300
56630438 rainboy E July 6, 2019, 3:59 p.m. OK GNU C11 TESTS 41 31 4096000 2300
27342532 LoveIsSoFar E May 25, 2017, 5:59 p.m. OK GNU C++11 TESTS 41 15 0 2300
23005261 zzy65513034 E Dec. 15, 2016, 12:10 p.m. OK GNU C++11 TESTS 41 15 102400 2300
22998308 xiaotao E Dec. 15, 2016, 6:08 a.m. OK GNU C++11 TESTS 41 15 819200 2300
23015942 tiorted E Dec. 15, 2016, 6:53 p.m. OK GNU C++11 TESTS 41 15 921600 2300
23019155 k0st1a E Dec. 15, 2016, 9:48 p.m. OK GNU C++11 TESTS 41 15 1024000 2300
23008252 fanache99 E Dec. 15, 2016, 2:01 p.m. OK GNU C++11 TESTS 41 15 1024000 2300
23006744 Aaron_1996 E Dec. 15, 2016, 1:07 p.m. OK GNU C++11 TESTS 41 15 1024000 2300
23050904 644262163 E Dec. 17, 2016, 3:30 p.m. OK GNU C++11 TESTS 41 15 1024000 2300
22998214 sfiction E Dec. 15, 2016, 6:03 a.m. OK GNU C++11 TESTS 41 15 1024000 2300
23078295 DTDT E Dec. 18, 2016, 6:45 a.m. OK GNU C++11 TESTS 41 15 1126400 2300
23021524 JamesQi E Dec. 16, 2016, 3:31 a.m. OK GNU C++14 TESTS 41 15 102400 2300
22980340 only_one_year E Dec. 14, 2016, 6:50 p.m. OK GNU C++14 TESTS 41 15 1126400 2300
22997303 pr0grammer E Dec. 15, 2016, 4:54 a.m. OK GNU C++14 TESTS 41 15 1126400 2300
22980312 only_one_year E Dec. 14, 2016, 6:49 p.m. OK GNU C++14 TESTS 41 15 1126400 2300
22970375 wolfling1 E Dec. 14, 2016, 4:02 p.m. OK GNU C++14 TESTS 41 15 1126400 2300
23040300 Darkdawn E Dec. 17, 2016, 6:05 a.m. OK GNU C++14 TESTS 41 15 1228800 2300
32158455 ironsoul E Nov. 9, 2017, 1:06 p.m. OK GNU C++14 TESTS 41 15 1228800 2300
23005912 E_N_D E Dec. 15, 2016, 12:37 p.m. OK GNU C++14 TESTS 41 15 1228800 2300
23002639 just_soso E Dec. 15, 2016, 9:57 a.m. OK GNU C++14 TESTS 41 15 1228800 2300
23046151 meopass_0v0 E Dec. 17, 2016, 11:38 a.m. OK GNU C++14 TESTS 41 15 1228800 2300
57081210 vjudge4 E July 15, 2019, 7:17 a.m. OK GNU C++17 TESTS 41 31 1126400 2300
62916204 jiangly E Oct. 19, 2019, 8:44 a.m. OK GNU C++17 TESTS 41 31 1228800 2300
57276579 luogu_bot3 E July 18, 2019, 11:06 a.m. OK GNU C++17 TESTS 41 31 1228800 2300
69218426 limabeans E Jan. 21, 2020, 2:51 a.m. OK GNU C++17 TESTS 41 31 1228800 2300
57188409 vjudge1 E July 17, 2019, 9:31 a.m. OK GNU C++17 TESTS 41 31 1228800 2300
41441113 Tosic E Aug. 10, 2018, 6:23 p.m. OK GNU C++17 TESTS 41 31 1433600 2300
68736493 meowmeow321 E Jan. 13, 2020, 8:30 p.m. OK GNU C++17 TESTS 41 31 2560000 2300
62034984 APTX_4869_ E Oct. 7, 2019, 3:17 a.m. OK GNU C++17 TESTS 41 31 5222400 2300
58502078 YazanZk E Aug. 9, 2019, 2:45 p.m. OK GNU C++17 TESTS 41 31 5222400 2300
64049754 majk E Nov. 1, 2019, 8:58 p.m. OK GNU C++17 TESTS 41 46 716800 2300
27552129 tkostek E June 3, 2017, 9:23 p.m. OK Go TESTS 41 296 5427200 2300
23005067 PugachAG E Dec. 15, 2016, 11:59 a.m. OK Go TESTS 41 421 125644800 2300
56630439 Dukkha E July 6, 2019, 3:59 p.m. OK Java 8 TESTS 41 124 0 2300
23011819 tanzaku E Dec. 15, 2016, 4:13 p.m. OK Java 8 TESTS 41 124 0 2300
23135181 alibaba E Dec. 19, 2016, 9:58 a.m. OK Java 8 TESTS 41 155 20582400 2300
23023748 dhrumil140396 E Dec. 16, 2016, 7:05 a.m. OK Java 8 TESTS 41 171 0 2300
23001736 pschuprikov E Dec. 15, 2016, 9:14 a.m. OK Java 8 TESTS 41 171 0 2300
23044936 totsamyzed E Dec. 17, 2016, 10:43 a.m. OK Java 8 TESTS 41 171 38297600 2300
23023730 ChrisWu E Dec. 16, 2016, 7:04 a.m. OK Java 8 TESTS 41 187 0 2300
23023612 ChrisWu E Dec. 16, 2016, 6:55 a.m. OK Java 8 TESTS 41 187 6246400 2300
23023269 ChrisWu E Dec. 16, 2016, 6:30 a.m. OK Java 8 TESTS 41 202 0 2300
43706795 PrakharJain E Oct. 2, 2018, 10:38 p.m. OK Java 8 TESTS 41 280 0 2300
68072470 hibatibati E Jan. 2, 2020, 10:58 a.m. OK Mono C# TESTS 41 93 10854400 2300
23017868 og.kostya E Dec. 15, 2016, 8:18 p.m. OK MS C# TESTS 41 280 6758400 2300
25056155 Derembas E Feb. 26, 2017, 1:40 p.m. OK MS C# TESTS 41 389 14131200 2300
23020828 zlc1114 E Dec. 16, 2016, 1:36 a.m. OK MS C++ TESTS 41 15 102400 2300
23244431 ferc E Dec. 23, 2016, 9:42 a.m. OK MS C++ TESTS 41 15 3584000 2300
23020887 zlc1114 E Dec. 16, 2016, 1:46 a.m. OK MS C++ TESTS 41 30 102400 2300
57270029 vjudge1 E July 18, 2019, 8:35 a.m. OK MS C++ TESTS 41 31 1126400 2300
23073826 PolyProgrammist E Dec. 17, 2016, 10:19 p.m. OK MS C++ TESTS 41 31 1433600 2300
23034337 VRob E Dec. 16, 2016, 5:34 p.m. OK MS C++ TESTS 41 31 32768000 2300
22970330 DimonK E Dec. 14, 2016, 4:01 p.m. OK MS C++ TESTS 41 62 4198400 2300
23779285 sister_what_hate_most E Jan. 13, 2017, 7:52 a.m. OK MS C++ TESTS 41 62 11366400 2300
23038507 Narval E Dec. 17, 2016, 3:19 a.m. OK MS C++ TESTS 41 109 1024000 2300
22982012 DimonK E Dec. 14, 2016, 8:02 p.m. OK MS C++ TESTS 41 124 4300800 2300
22974336 oml1111 E Dec. 14, 2016, 4:27 p.m. OK PyPy 3 TESTS 41 311 15564800 2300
51278145 togatoga E March 14, 2019, 12:15 a.m. OK Rust TESTS 41 46 2457600 2300
23073653 gridman E Dec. 17, 2016, 10:05 p.m. OK Scala TESTS 41 1809 204800 2300
23071974 gridman E Dec. 17, 2016, 8:30 p.m. OK Scala TESTS 41 1809 24268800 2300

remove filters

Back to search problems