Codeforces Round 267 (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
467 Codeforces Round 267 (Div. 2) FINISHED False 7200 320768999 Sept. 18, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 789 ) E Alex and Complicated Task PROGRAMMING data structures dp greedy 2900

B"After you have read all the problems, probably, you think Alex is genius person. That's true! One day he came up with the following task. Given a sequence of integer numbers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an. You are to find a longest sequence b1, xe2 x80 x89b2, xe2 x80 x89..., xe2 x80 x89b4m, that satisfies the following conditions: And finally... Alex had given this complicated task to George, and George gave it to you. Help George to cope with the task. The first line contains a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x895 xc2 xb7105). The next line contains n 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 x89109). In the first line print a single integer 4m -- the maximal possible length of required sequence b. In the second line print 4m integers b1, xe2 x80 x89b2, xe2 x80 x89..., xe2 x80 x89b4m, that is required sequence. If there are multiple optimal answers you may print any of them."...

Tutorials

Разбор задач

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
35536311 vjudge3 E Feb. 21, 2018, 2:20 a.m. OK GNU C++ TESTS 90 390 28160000 2900
35536222 vjudge1 E Feb. 21, 2018, 2:08 a.m. OK GNU C++ TESTS 90 514 21606400 2900
37893278 heower E May 5, 2018, 12:04 a.m. OK GNU C++ TESTS 90 577 23040000 2900
37878733 vjudge5 E May 4, 2018, 9:07 a.m. OK GNU C++ TESTS 90 592 23347200 2900
37880085 vjudge1 E May 4, 2018, 10:25 a.m. OK GNU C++ TESTS 90 639 23347200 2900
35574025 vjudge1 E Feb. 22, 2018, 1:20 p.m. OK GNU C++ TESTS 90 654 20480000 2900
29242180 I-Love-Islam E Aug. 6, 2017, 1:18 p.m. OK GNU C++ TESTS 90 1325 60928000 2900
60475091 dyxg E Sept. 13, 2019, 7:40 a.m. OK GNU C++11 TESTS 90 139 13209600 2900
40987913 ReaLNero1 E July 30, 2018, 9:35 p.m. OK GNU C++11 TESTS 90 186 35328000 2900
35542305 vjudge2 E Feb. 21, 2018, 8:59 a.m. OK GNU C++11 TESTS 90 265 22425600 2900
28161340 yah01 E June 30, 2017, 1:48 a.m. OK GNU C++11 TESTS 90 326 19660800 2900
40850534 eriksuenderhauf E July 27, 2018, 2:22 p.m. OK GNU C++11 TESTS 90 389 23449600 2900
32509782 geniucos E Nov. 20, 2017, 7:42 p.m. OK GNU C++11 TESTS 90 390 31232000 2900
35552070 vjudge3 E Feb. 21, 2018, 3:21 p.m. OK GNU C++11 TESTS 90 436 28160000 2900
34520174 bill_kondo E Jan. 24, 2018, 2:36 p.m. OK GNU C++11 TESTS 90 468 38297600 2900
47541407 RobeZH E Dec. 27, 2018, 7:17 a.m. OK GNU C++11 TESTS 90 483 19558400 2900
35544133 andwho E Feb. 21, 2018, 10:32 a.m. OK GNU C++11 TESTS 90 514 20480000 2900
37112721 boook E April 9, 2018, 3:40 a.m. OK GNU C++14 TESTS 90 295 24371200 2900
28870086 stevenwjy E July 25, 2017, 8:29 a.m. OK GNU C++14 TESTS 90 296 13926400 2900
49483763 DimmyT E Feb. 5, 2019, 2:55 a.m. OK GNU C++14 TESTS 90 296 21606400 2900
47482258 mohammad330A E Dec. 25, 2018, 6:06 a.m. OK GNU C++14 TESTS 90 296 31334400 2900
47482194 vjudge1 E Dec. 25, 2018, 6:03 a.m. OK GNU C++14 TESTS 90 312 31334400 2900
33486011 shyamkb E Dec. 21, 2017, 4:38 p.m. OK GNU C++14 TESTS 90 358 25395200 2900
54024567 LODB---D E May 12, 2019, 11:47 a.m. OK GNU C++14 TESTS 90 374 46387200 2900
34285587 Artemx E Jan. 18, 2018, 8:06 p.m. OK GNU C++14 TESTS 90 389 30822400 2900
49924793 compiler_101 E Feb. 14, 2019, 9:30 p.m. OK GNU C++14 TESTS 90 405 25702400 2900
49553278 usernameson E Feb. 7, 2019, 7:46 a.m. OK GNU C++14 TESTS 90 420 32665600 2900
69619671 hjk1030 E Jan. 27, 2020, 2:11 p.m. OK GNU C++17 TESTS 90 296 18944000 2900
63916777 ivan100sic E Oct. 31, 2019, 10:21 a.m. OK GNU C++17 TESTS 90 343 29184000 2900
51908422 Celesta E March 27, 2019, 4:49 p.m. OK GNU C++17 TESTS 90 389 28262400 2900
69540853 limabeans E Jan. 25, 2020, 9:23 p.m. OK GNU C++17 TESTS 90 405 25292800 2900
56635848 Atreus E July 6, 2019, 7:26 p.m. OK GNU C++17 TESTS 90 405 27340800 2900
58389654 Benq E Aug. 6, 2019, 1:14 p.m. OK GNU C++17 TESTS 90 420 19353600 2900
60289646 ruo E Sept. 9, 2019, 6:12 a.m. OK GNU C++17 TESTS 90 436 22118400 2900
63351888 lmiskiew E Oct. 24, 2019, 10:35 p.m. OK GNU C++17 TESTS 90 451 24166400 2900
54278307 Balerion E May 17, 2019, 12:12 p.m. OK GNU C++17 TESTS 90 498 38809600 2900
51908177 Celesta E March 27, 2019, 4:42 p.m. OK GNU C++17 TESTS 90 545 28569600 2900
34052377 Minaa E Jan. 9, 2018, 3:29 p.m. OK Java 8 TESTS 90 670 69632000 2900
38617967 sweiss E May 25, 2018, 8:59 p.m. OK Java 8 TESTS 90 1169 79872000 2900

remove filters

Back to search problems