Codeforces Round 291 (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
514 Codeforces Round 291 (Div. 2) FINISHED False 7200 307891799 Feb. 14, 2015, 4:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4481 ) D R2D2 and Droid Army PROGRAMMING binary search data structures two pointers 2100

B"An army of n droids is lined up in one row. Each droid is described by m integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89am, where ai is the number of details of the i-th type in this droid's mechanism. R2-D2 wants to destroy the sequence of consecutive droids of maximum length. He has m weapons, the i-th weapon can affect all the droids in the army by destroying one detail of the i-th type (if the droid doesn't have details of this type, nothing happens to it). A droid is considered to be destroyed when all of its details are destroyed. R2-D2 can make at most k shots. How many shots from the weapon of what type should R2-D2 make to destroy the sequence of consecutive droids of maximum length? The first line contains three integers n, xe2 x80 x89m, xe2 x80 x89k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x895, 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the number of droids, the number of detail types and the number of available shots, respectively. Next n lines follow describing the droids. Each line contains m integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89am (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89108), where ai is the number of details of the i-th type for the respective robot. Print m space-separated integers, where the i-th number is the number of shots from the weapon of the i-th type that the robot should make to destroy the subsequence of consecutive droids of the maximum length. If there are multiple optimal solutions, print any of them. It is not necessary to make exactly k shots, the number of shots can be less. In the first test the second, third and fourth droids will be destroyed. In the second test the first and second droids will be destroyed."...

Tutorials

Codeforces Round #291 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
41148429 cpy D Aug. 3, 2018, 7:40 a.m. OK D TESTS 35 1482 37171200 2100
41148349 cpy D Aug. 3, 2018, 7:39 a.m. OK D TESTS 35 1528 37273600 2100
27766390 vjudge5 D June 14, 2017, 2:57 a.m. OK FPC TESTS 35 530 50483200 2100
27766290 vjudge5 D June 14, 2017, 2:47 a.m. OK FPC TESTS 35 577 50483200 2100
27766350 vjudge1 D June 14, 2017, 2:53 a.m. OK FPC TESTS 35 592 44134400 2100
27765965 vjudge5 D June 14, 2017, 2:14 a.m. OK FPC TESTS 35 623 50483200 2100
40987019 ReaLNero1 D July 30, 2018, 8:54 p.m. OK GNU C++ TESTS 35 46 24883200 2100
27840553 vjudge4 D June 17, 2017, 7:43 a.m. OK GNU C++ TESTS 35 109 7270400 2100
27840521 tkandi D June 17, 2017, 7:42 a.m. OK GNU C++ TESTS 35 109 7270400 2100
25592122 vjudge2 D March 18, 2017, 7:06 a.m. OK GNU C++ TESTS 35 109 7680000 2100
28898098 vjudge4 D July 26, 2017, 8:07 a.m. OK GNU C++ TESTS 35 109 52428800 2100
28897928 lfw D July 26, 2017, 8 a.m. OK GNU C++ TESTS 35 109 52428800 2100
24082934 yah01 D Jan. 24, 2017, 2:14 a.m. OK GNU C++ TESTS 35 124 52633600 2100
37233996 ryuzmukhametov D April 11, 2018, 8:03 p.m. OK GNU C++ TESTS 35 155 9932800 2100
27774780 vjudge2 D June 14, 2017, 1:33 p.m. OK GNU C++ TESTS 35 171 46080000 2100
27774301 xjdx D June 14, 2017, 12:54 p.m. OK GNU C++ TESTS 35 171 46080000 2100
58306225 rainboy D Aug. 4, 2019, 7:37 p.m. OK GNU C11 TESTS 35 93 3993600 2100
52881094 about D April 17, 2019, 12:14 a.m. OK GNU C11 TESTS 35 140 36352000 2100
51965388 luogu_bot5 D March 29, 2019, 9:38 a.m. OK GNU C++11 TESTS 35 31 9216000 2100
30242559 Rezwan.Arefin01 D Sept. 10, 2017, 10:16 a.m. OK GNU C++11 TESTS 35 46 0 2100
30242188 Rezwan.Arefin01 D Sept. 10, 2017, 9:53 a.m. OK GNU C++11 TESTS 35 46 2048000 2100
51969769 time_interspace D March 29, 2019, 11:50 a.m. OK GNU C++11 TESTS 35 46 80588800 2100
43500590 dhruv1998 D Sept. 27, 2018, 4:55 p.m. OK GNU C++11 TESTS 35 78 38195200 2100
67862768 luogu_bot1 D Dec. 29, 2019, 8:42 a.m. OK GNU C++11 TESTS 35 93 7782400 2100
67862966 luogu_bot3 D Dec. 29, 2019, 8:46 a.m. OK GNU C++11 TESTS 35 93 16793600 2100
49623715 vjudge1 D Feb. 8, 2019, 10:46 a.m. OK GNU C++11 TESTS 35 108 8396800 2100
67861026 wangyq D Dec. 29, 2019, 8:09 a.m. OK GNU C++11 TESTS 35 108 8601600 2100
68792771 minyzero D Jan. 14, 2020, 3:06 p.m. OK GNU C++11 TESTS 35 109 3993600 2100
51964206 Nostalgically D March 29, 2019, 8:57 a.m. OK GNU C++14 TESTS 35 31 9420800 2100
29946915 filippos D Aug. 31, 2017, 2:27 p.m. OK GNU C++14 TESTS 35 124 4608000 2100
29841444 filippos D Aug. 28, 2017, 8:43 a.m. OK GNU C++14 TESTS 35 124 4608000 2100
49064370 stefdasca D Jan. 27, 2019, 4:58 p.m. OK GNU C++14 TESTS 35 139 4505600 2100
31858061 Fullmetal_Algorithmist D Oct. 29, 2017, 6:48 a.m. OK GNU C++14 TESTS 35 140 2457600 2100
27784984 problem-solved D June 15, 2017, 2:49 a.m. OK GNU C++14 TESTS 35 140 3993600 2100
49822386 vjudge5 D Feb. 12, 2019, 9:36 a.m. OK GNU C++14 TESTS 35 140 3993600 2100
49822377 mayiyang D Feb. 12, 2019, 9:35 a.m. OK GNU C++14 TESTS 35 140 3993600 2100
32175650 Heart_Blue D Nov. 9, 2017, 5:17 p.m. OK GNU C++14 TESTS 35 140 3993600 2100
49642688 Bekh D Feb. 9, 2019, 12:07 a.m. OK GNU C++14 TESTS 35 140 4300800 2100
47701302 yassin_ D Dec. 29, 2018, 4:53 p.m. OK GNU C++17 TESTS 35 124 6758400 2100
54551233 lmiskiew D May 24, 2019, 9:13 a.m. OK GNU C++17 TESTS 35 140 4300800 2100
68058394 GioChkhaidze D Jan. 2, 2020, 12:27 a.m. OK GNU C++17 TESTS 35 140 5632000 2100
68142784 racoon D Jan. 4, 2020, 12:55 a.m. OK GNU C++17 TESTS 35 140 6451200 2100
54835561 thedragonslayer D May 30, 2019, 10:47 a.m. OK GNU C++17 TESTS 35 140 48128000 2100
57420834 NiKS001 D July 20, 2019, 6:15 p.m. OK GNU C++17 TESTS 35 155 7168000 2100
54413326 markotee D May 20, 2019, 11:14 a.m. OK GNU C++17 TESTS 35 170 2048000 2100
54007573 cxsy D May 11, 2019, 9:23 p.m. OK GNU C++17 TESTS 35 171 7577600 2100
41680746 chinmay0906 D Aug. 17, 2018, 10:47 a.m. OK GNU C++17 TESTS 35 171 11980800 2100
47616325 SHOToRSAVARE_KAZEMSHAHR D Dec. 28, 2018, 10:40 a.m. OK GNU C++17 TESTS 35 171 12800000 2100
47353104 qb2008 D Dec. 22, 2018, 4:31 a.m. OK Go TESTS 35 514 27648000 2100
66080392 elkadymohammed01 D Nov. 30, 2019, 10:41 p.m. OK Java 11 TESTS 35 498 5324800 2100
66499078 IslamTalipovTop D Dec. 8, 2019, 11:46 a.m. OK Java 11 TESTS 35 1965 12697600 2100
57444314 _Sergey_ D July 21, 2019, 7:45 a.m. OK Java 8 TESTS 35 218 3993600 2100
57443987 _Sergey_ D July 21, 2019, 7:39 a.m. OK Java 8 TESTS 35 218 4812800 2100
57443522 _Sergey_ D July 21, 2019, 7:31 a.m. OK Java 8 TESTS 35 296 17612800 2100
46825240 MaxHeap D Dec. 9, 2018, 5:53 p.m. OK Java 8 TESTS 35 358 69632000 2100
31369906 snowwm D Oct. 15, 2017, 3:03 p.m. OK Java 8 TESTS 35 358 110284800 2100
68418712 adarsh000321 D Jan. 8, 2020, 8:19 p.m. OK Java 8 TESTS 35 389 76800000 2100
27738570 Petruchcho D June 12, 2017, 1:23 p.m. OK Java 8 TESTS 35 405 35430400 2100
68654937 sunnycarlos D Jan. 12, 2020, 11:56 a.m. OK Java 8 TESTS 35 452 79564800 2100
53531922 mikkk D April 29, 2019, 9:08 p.m. OK Java 8 TESTS 35 467 79155200 2100
37087618 I_love_Harpae D April 8, 2018, 4:57 a.m. OK Java 8 TESTS 35 498 154521600 2100
59616928 vjudge5 D Aug. 28, 2019, 1:01 p.m. OK MS C++ TESTS 35 202 62156800 2100
32886089 yugle7 D Dec. 2, 2017, 10:07 p.m. OK PyPy 3 TESTS 35 779 38502400 2100
69924232 Pheonix23 D Jan. 31, 2020, 7:36 p.m. OK PyPy 3 TESTS 35 795 15974400 2100
69924136 Pheonix23 D Jan. 31, 2020, 7:34 p.m. OK PyPy 3 TESTS 35 811 15872000 2100
54755289 tourist_ D May 28, 2019, 2:40 p.m. OK PyPy 3 TESTS 35 1091 84377600 2100
54755457 chandak_vikas D May 28, 2019, 2:42 p.m. OK PyPy 3 TESTS 35 1154 84275200 2100
32885808 yugle7 D Dec. 2, 2017, 9:45 p.m. OK Python 3 TESTS 35 1341 37888000 2100

remove filters

Back to search problems