Intel Code Challenge Elimination Round (Div. 1 + Div. 2, combined)

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
722 Intel Code Challenge Elimination Round (Div. 1 + Div. 2, combined) FINISHED False 7200 256492499 Oct. 1, 2016, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9501 ) C Destroying Array PROGRAMMING data structures ds 1600

B'You are given an array consisting of n non-negative integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an. You are going to destroy integers in the array one by one. Thus, you are given the permutation of integers from 1 to n defining the order elements of the array are destroyed. After each element is destroyed you have to find out the segment of the array, such that it contains no destroyed elements and the sum of its elements is maximum possible. The sum of elements in the empty segment is considered to be 0. The first line of the input contains a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100 xe2 x80 x89000) -- the length of the array. The second line contains n integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). The third line contains a permutation of integers from 1 to n -- the order used to destroy elements. Print n lines. The i-th line should contain a single integer -- the maximum possible sum of elements on the segment containing no destroyed elements, after first i operations are performed. Consider the first sample: '...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
21078667 Gassa C Oct. 1, 2016, 2:34 p.m. OK D TESTS 49 124 14336000 1600
27003866 SirNickolas C May 10, 2017, 10:36 p.m. OK D TESTS 49 701 8499200 1600
21088256 ruban C Oct. 1, 2016, 3:33 p.m. OK Delphi TESTS 49 311 25190400 1600
21242016 StarScreamOwl C Oct. 6, 2016, 5:24 p.m. OK Delphi TESTS 49 327 4812800 1600
32368553 ginsama2001 C Nov. 17, 2017, 3:07 a.m. OK FPC TESTS 49 202 4403200 1600
32368413 PhuQuy C Nov. 17, 2017, 2:52 a.m. OK FPC TESTS 49 218 3788800 1600
21790140 MintGreen C Oct. 26, 2016, 8:56 a.m. OK FPC TESTS 49 218 4403200 1600
21093734 baongoca1.tv C Oct. 1, 2016, 5:05 p.m. OK FPC TESTS 49 233 2969600 1600
24960566 ice_tea C Feb. 24, 2017, 9:48 a.m. OK FPC TESTS 49 233 11264000 1600
24960508 ice_tea C Feb. 24, 2017, 9:46 a.m. OK FPC TESTS 49 234 11264000 1600
21090713 Tommyr7 C Oct. 1, 2016, 3:54 p.m. OK FPC TESTS 49 249 2867200 1600
21107329 Ahriman C Oct. 2, 2016, 6:49 a.m. OK FPC TESTS 49 249 4812800 1600
38424205 chaorenhaha C May 19, 2018, 8:57 a.m. OK FPC TESTS 49 249 5222400 1600
21083809 shino_ C Oct. 1, 2016, 3:01 p.m. OK FPC TESTS 49 249 7065600 1600
21370569 rainboy C Oct. 11, 2016, 10:18 p.m. OK GNU C TESTS 49 92 5939200 1600
21185273 goC C Oct. 4, 2016, 11:32 a.m. OK GNU C TESTS 49 93 4812800 1600
21171093 idee.fixe C Oct. 3, 2016, 6:50 p.m. OK GNU C TESTS 49 93 5632000 1600
21370538 rainboy C Oct. 11, 2016, 10:15 p.m. OK GNU C TESTS 49 93 5939200 1600
21079096 HACKorithm C Oct. 1, 2016, 2:36 p.m. OK GNU C TESTS 49 93 6758400 1600
21130740 double301 C Oct. 3, 2016, 7:44 a.m. OK GNU C TESTS 49 93 10137600 1600
21171112 idee.fixe C Oct. 3, 2016, 6:51 p.m. OK GNU C TESTS 49 109 5632000 1600
21087750 NoSoul C Oct. 1, 2016, 3:29 p.m. OK GNU C TESTS 49 202 4608000 1600
22650056 Yearsflow C Dec. 2, 2016, 12:34 a.m. OK GNU C++ TESTS 49 46 2867200 1600
21079388 __debug C Oct. 1, 2016, 2:38 p.m. OK GNU C++ TESTS 49 46 3276800 1600
21082931 imverypupil C Oct. 1, 2016, 2:56 p.m. OK GNU C++ TESTS 49 46 4403200 1600
24580327 liuyiluxun C Feb. 11, 2017, 1:13 a.m. OK GNU C++ TESTS 49 46 5836800 1600
21283367 ws_syx C Oct. 8, 2016, 12:36 p.m. OK GNU C++ TESTS 49 46 6553600 1600
21081872 swm_sxt C Oct. 1, 2016, 2:50 p.m. OK GNU C++ TESTS 49 61 2969600 1600
21258439 danagi C Oct. 7, 2016, 1:11 p.m. OK GNU C++ TESTS 49 61 4608000 1600
25391261 vjudge4 C March 11, 2017, 1:23 a.m. OK GNU C++ TESTS 49 61 4812800 1600
21078888 XLightGod C Oct. 1, 2016, 2:35 p.m. OK GNU C++ TESTS 49 61 5734400 1600
22049222 chentong C Nov. 5, 2016, 6:08 a.m. OK GNU C++ TESTS 49 61 5939200 1600
21171060 idee.fixe C Oct. 3, 2016, 6:49 p.m. OK GNU C11 TESTS 49 545 5632000 1600
21556505 sianzhan C Oct. 18, 2016, 3:51 a.m. OK GNU C11 TESTS 49 686 4710400 1600
21079394 wackloner C Oct. 1, 2016, 2:38 p.m. OK GNU C++11 TESTS 49 46 3174400 1600
30360263 temari_shikamaru C Sept. 15, 2017, 9:36 a.m. OK GNU C++11 TESTS 49 46 3379200 1600
21129444 I_See_You C Oct. 3, 2016, 6:11 a.m. OK GNU C++11 TESTS 49 46 5734400 1600
33394625 xc01 C Dec. 19, 2017, 12:55 a.m. OK GNU C++11 TESTS 49 46 10035200 1600
60182941 mintCHILL C Sept. 6, 2019, 5:07 p.m. OK GNU C++11 TESTS 49 46 29081600 1600
54563356 BrandonSoong C May 24, 2019, 3:04 p.m. OK GNU C++11 TESTS 49 46 34611200 1600
21079135 yylidiw C Oct. 1, 2016, 2:36 p.m. OK GNU C++11 TESTS 49 61 2867200 1600
21074909 _0w0_ C Oct. 1, 2016, 2:21 p.m. OK GNU C++11 TESTS 49 61 3174400 1600
21094562 flatline C Oct. 1, 2016, 5:39 p.m. OK GNU C++11 TESTS 49 61 3276800 1600
58203869 zerQ C Aug. 3, 2019, 6:02 a.m. OK GNU C++11 TESTS 49 61 3276800 1600
31546515 Narcissus C Oct. 20, 2017, 11:35 p.m. OK GNU C++14 TESTS 49 46 151552000 1600
64659508 wleung_bvg C Nov. 10, 2019, 8:24 p.m. OK GNU C++14 TESTS 49 62 4505600 1600
21079187 codestrength C Oct. 1, 2016, 2:37 p.m. OK GNU C++14 TESTS 49 78 3174400 1600
22860322 PedroBortolli C Dec. 10, 2016, 4:12 p.m. OK GNU C++14 TESTS 49 78 3584000 1600
30318743 izaidi C Sept. 14, 2017, 1:57 a.m. OK GNU C++14 TESTS 49 78 4096000 1600
21078809 Al3ks1002 C Oct. 1, 2016, 2:35 p.m. OK GNU C++14 TESTS 49 78 4403200 1600
21108179 qinzhaokun C Oct. 2, 2016, 7:35 a.m. OK GNU C++14 TESTS 49 93 2457600 1600
21078356 Pakalns C Oct. 1, 2016, 2:33 p.m. OK GNU C++14 TESTS 49 93 2764800 1600
61890884 S_Aditya C Oct. 5, 2019, 5:44 a.m. OK GNU C++14 TESTS 49 93 2867200 1600
22650083 41881147 C Dec. 2, 2016, 12:38 a.m. OK GNU C++14 TESTS 49 93 2867200 1600
67011141 yuanyuan2048 C Dec. 16, 2019, 9:54 a.m. OK GNU C++17 TESTS 49 61 5836800 1600
61909754 vjudge2 C Oct. 5, 2019, 10:38 a.m. OK GNU C++17 TESTS 49 93 2560000 1600
50776142 vjudge1 C March 4, 2019, 8:36 a.m. OK GNU C++17 TESTS 49 93 2764800 1600
42021618 vjudge4 C Aug. 24, 2018, 9:33 a.m. OK GNU C++17 TESTS 49 93 2867200 1600
45411815 Ilya-bar C Nov. 7, 2018, 12:25 p.m. OK GNU C++17 TESTS 49 93 3072000 1600
58163996 echr C Aug. 2, 2019, 8:24 a.m. OK GNU C++17 TESTS 49 93 3276800 1600
62359506 vjudge4 C Oct. 11, 2019, 12:02 p.m. OK GNU C++17 TESTS 49 93 3584000 1600
57782468 yiqzq C July 26, 2019, 6:30 a.m. OK GNU C++17 TESTS 49 93 3584000 1600
42784381 vjudge3 C Sept. 12, 2018, 2:18 a.m. OK GNU C++17 TESTS 49 93 3788800 1600
57774810 vjudge4 C July 26, 2019, 2:55 a.m. OK GNU C++17 TESTS 49 93 4096000 1600
69670614 vjudge1 C Jan. 28, 2020, 12:53 p.m. OK Go TESTS 49 186 4505600 1600
69670287 synapse C Jan. 28, 2020, 12:47 p.m. OK Go TESTS 49 187 4505600 1600
69670073 synapse C Jan. 28, 2020, 12:42 p.m. OK Go TESTS 49 187 4505600 1600
21189221 goC C Oct. 4, 2016, 2:38 p.m. OK Go TESTS 49 358 7475200 1600
21082889 orb C Oct. 1, 2016, 2:56 p.m. OK Go TESTS 49 405 6348800 1600
22984144 opudalo C Dec. 14, 2016, 10:31 p.m. OK Haskell TESTS 49 265 40140800 1600
21084347 cojna C Oct. 1, 2016, 3:05 p.m. OK Haskell TESTS 49 373 31744000 1600
21225065 rohansumant C Oct. 6, 2016, 3:12 a.m. OK Haskell TESTS 49 732 22220800 1600
22864750 Menschenkindlein C Dec. 10, 2016, 7:50 p.m. OK Haskell TESTS 49 857 199782400 1600
69934316 zhanyi_xiaolu C Feb. 1, 2020, 2:42 a.m. OK Java 11 TESTS 49 904 1843200 1600
27940509 7dan C June 21, 2017, 8:13 a.m. OK Java 8 TESTS 49 155 20684800 1600
21080500 dened C Oct. 1, 2016, 2:43 p.m. OK Java 8 TESTS 49 156 0 1600
59362447 hasan5788 C Aug. 23, 2019, 3:49 p.m. OK Java 8 TESTS 49 171 0 1600
43471387 java_geek C Sept. 26, 2018, 10:32 p.m. OK Java 8 TESTS 49 171 0 1600
22319150 poikniok C Nov. 19, 2016, 5:42 a.m. OK Java 8 TESTS 49 171 0 1600
22319101 poikniok C Nov. 19, 2016, 5:39 a.m. OK Java 8 TESTS 49 171 0 1600
21129396 Coder007 C Oct. 3, 2016, 6:07 a.m. OK Java 8 TESTS 49 171 0 1600
21111793 Waylesange C Oct. 2, 2016, 10:30 a.m. OK Java 8 TESTS 49 171 0 1600
51464573 GiantTornado C March 18, 2019, 11:18 p.m. OK Java 8 TESTS 49 171 3072000 1600
21518768 anuj64 C Oct. 17, 2016, 12:30 p.m. OK Java 8 TESTS 49 171 20582400 1600
23239393 JoeBlow C Dec. 23, 2016, 3:34 a.m. OK Kotlin TESTS 49 233 31232000 1600
22929693 dzharvis C Dec. 13, 2016, 3:22 p.m. OK Kotlin TESTS 49 358 10342400 1600
21266524 dyukha C Oct. 7, 2016, 8:26 p.m. OK Kotlin TESTS 49 576 28160000 1600
21266509 dyukha C Oct. 7, 2016, 8:25 p.m. OK Kotlin TESTS 49 577 28057600 1600
21094106 hotkey C Oct. 1, 2016, 5:20 p.m. OK Kotlin TESTS 49 717 10342400 1600
22878247 dzharvis C Dec. 11, 2016, 12:39 p.m. OK Kotlin TESTS 49 857 10342400 1600
22878061 dzharvis C Dec. 11, 2016, 12:31 p.m. OK Kotlin TESTS 49 857 10444800 1600
22877871 dzharvis C Dec. 11, 2016, 12:23 p.m. OK Kotlin TESTS 49 858 10342400 1600
21266811 dyukha C Oct. 7, 2016, 8:45 p.m. OK Kotlin TESTS 49 998 26521600 1600
52056309 nemars C March 30, 2019, 8:10 p.m. OK Mono C# TESTS 49 170 41676800 1600
52057035 nemars C March 30, 2019, 8:31 p.m. OK Mono C# TESTS 49 171 41574400 1600
52059210 nemars C March 30, 2019, 10:16 p.m. OK Mono C# TESTS 49 187 36966400 1600
21975017 og.kostya C Nov. 1, 2016, 5:43 p.m. OK MS C# TESTS 49 78 6144000 1600
21122418 leonidvasilyev C Oct. 2, 2016, 6:21 p.m. OK MS C# TESTS 49 156 34304000 1600
21079378 Tollentino C Oct. 1, 2016, 2:38 p.m. OK MS C# TESTS 49 187 18534400 1600
21094520 AnatolyTolstobrov C Oct. 1, 2016, 5:37 p.m. OK MS C# TESTS 49 202 18534400 1600
21078824 mircea85 C Oct. 1, 2016, 2:35 p.m. OK MS C# TESTS 49 233 35840000 1600
22398806 DmitryPetukhov C Nov. 22, 2016, 8:10 a.m. OK MS C# TESTS 49 374 42700800 1600
22239218 IBella C Nov. 15, 2016, 5:26 p.m. OK MS C# TESTS 49 560 27955200 1600
21087108 renadeen C Oct. 1, 2016, 3:24 p.m. OK MS C# TESTS 49 607 34406400 1600
21093882 Tollentino C Oct. 1, 2016, 5:10 p.m. OK MS C# TESTS 49 717 35532800 1600
21091367 Luzan C Oct. 1, 2016, 4 p.m. OK MS C# TESTS 49 763 34918400 1600
58331573 echr C Aug. 5, 2019, 9:35 a.m. OK MS C++ TESTS 49 77 3174400 1600
50489317 vjudge4 C Feb. 25, 2019, 12:47 p.m. OK MS C++ TESTS 49 77 3276800 1600
46687158 vjudge3 C Dec. 6, 2018, 2:32 p.m. OK MS C++ TESTS 49 78 3276800 1600
50302610 vjudge1 C Feb. 22, 2019, 3:37 a.m. OK MS C++ TESTS 49 78 3276800 1600
58199105 monggo1995 C Aug. 3, 2019, 2:55 a.m. OK MS C++ TESTS 49 78 3276800 1600
50239457 vjudge4 C Feb. 20, 2019, 12:20 p.m. OK MS C++ TESTS 49 78 3379200 1600
50303211 vjudge5 C Feb. 22, 2019, 4:15 a.m. OK MS C++ TESTS 49 78 3584000 1600
49972498 vjudge4 C Feb. 16, 2019, 3:27 a.m. OK MS C++ TESTS 49 78 4198400 1600
21087511 Nadezhda C Oct. 1, 2016, 3:27 p.m. OK MS C++ TESTS 49 78 4403200 1600
68743129 vjudge2 C Jan. 14, 2020, 2:45 a.m. OK MS C++ TESTS 49 78 4812800 1600
58211248 menxin C Aug. 3, 2019, 8:54 a.m. OK MS C++ 2017 TESTS 49 109 4403200 1600
58211081 menxin C Aug. 3, 2019, 8:51 a.m. OK MS C++ 2017 TESTS 49 109 4812800 1600
68703820 vjudge3 C Jan. 13, 2020, 10:26 a.m. OK MS C++ 2017 TESTS 49 109 5836800 1600
58211131 menxin C Aug. 3, 2019, 8:52 a.m. OK MS C++ 2017 TESTS 49 124 4812800 1600
69947959 -1- C Feb. 1, 2020, 8:07 a.m. OK MS C++ 2017 TESTS 49 249 3481600 1600
59828046 TOPAPEC C Aug. 31, 2019, 8:37 p.m. OK MS C++ 2017 TESTS 49 249 6348800 1600
69451353 0Mordecai0 C Jan. 24, 2020, 6:22 a.m. OK MS C++ 2017 TESTS 49 249 8499200 1600
69451448 vjudge5 C Jan. 24, 2020, 6:25 a.m. OK MS C++ 2017 TESTS 49 249 8499200 1600
59382031 vjudge4 C Aug. 24, 2019, 3:56 a.m. OK MS C++ 2017 TESTS 49 561 5427200 1600
25795271 mayakin C March 25, 2017, 10:39 a.m. OK PHP TESTS 49 577 34918400 1600
22809890 alyaxey C Dec. 8, 2016, 12:35 p.m. OK PyPy 2 TESTS 49 327 42393600 1600
21194989 Eeyore C Oct. 4, 2016, 7:19 p.m. OK PyPy 2 TESTS 49 342 30822400 1600
21076891 lcastillov C Oct. 1, 2016, 2:28 p.m. OK PyPy 2 TESTS 49 467 21196800 1600
24088780 Kucheriava C Jan. 24, 2017, 9:41 a.m. OK PyPy 2 TESTS 49 468 57753600 1600
21108988 Remarque C Oct. 2, 2016, 8:16 a.m. OK PyPy 2 TESTS 49 483 21299200 1600
23020161 kigorw C Dec. 15, 2016, 11:47 p.m. OK PyPy 2 TESTS 49 514 25292800 1600
23020116 kigorw C Dec. 15, 2016, 11:42 p.m. OK PyPy 2 TESTS 49 654 19046400 1600
23020105 kigorw C Dec. 15, 2016, 11:41 p.m. OK PyPy 2 TESTS 49 655 20889600 1600
21082193 Mars314 C Oct. 1, 2016, 2:52 p.m. OK PyPy 2 TESTS 49 919 12902400 1600
40552277 pavankatta C July 19, 2018, 3:14 p.m. OK PyPy 2 TESTS 49 919 24371200 1600
44326181 nowyyz C Oct. 14, 2018, 4:10 p.m. OK PyPy 3 TESTS 49 468 36454400 1600
22839399 komelianchuk C Dec. 9, 2016, 5:03 p.m. OK PyPy 3 TESTS 49 935 30003200 1600
21079107 nwi C Oct. 1, 2016, 2:36 p.m. OK Python 2 TESTS 49 280 17817600 1600
21342170 orailly C Oct. 10, 2016, 4:19 p.m. OK Python 2 TESTS 49 327 17510400 1600
21103048 honi C Oct. 2, 2016, 12:44 a.m. OK Python 2 TESTS 49 358 17920000 1600
21128588 Mars314 C Oct. 3, 2016, 4:42 a.m. OK Python 2 TESTS 49 451 12288000 1600
21460524 murphyfur C Oct. 15, 2016, 3 p.m. OK Python 2 TESTS 49 452 15462400 1600
21465662 CF2_kafuma C Oct. 15, 2016, 7:04 p.m. OK Python 2 TESTS 49 467 15462400 1600
21460154 murphyfur C Oct. 15, 2016, 2:42 p.m. OK Python 2 TESTS 49 468 15257600 1600
48466411 noob77777 C Jan. 16, 2019, 5:28 p.m. OK Python 2 TESTS 49 483 14643200 1600
21081773 jrying C Oct. 1, 2016, 2:50 p.m. OK Python 2 TESTS 49 498 13107200 1600
21109744 pho C Oct. 2, 2016, 8:51 a.m. OK Python 2 TESTS 49 577 17408000 1600
21341966 orailly C Oct. 10, 2016, 4:08 p.m. OK Python 3 TESTS 49 373 18124800 1600
42136796 Mk_Python_v1 C Aug. 27, 2018, 12:56 a.m. OK Python 3 TESTS 49 389 13414400 1600
21341871 orailly C Oct. 10, 2016, 4:03 p.m. OK Python 3 TESTS 49 436 18022400 1600
51254274 fireyyouth C March 13, 2019, 10:25 a.m. OK Python 3 TESTS 49 670 13209600 1600
65255148 vit_72 C Nov. 17, 2019, 1:11 p.m. OK Python 3 TESTS 49 701 15155200 1600
21085474 TheRealNeel C Oct. 1, 2016, 3:12 p.m. OK Python 3 TESTS 49 701 17100800 1600
21097118 Shamsutdin C Oct. 1, 2016, 8:22 p.m. OK Python 3 TESTS 49 717 15769600 1600
55317169 LeiviniaBirdway C June 8, 2019, 11:47 p.m. OK Python 3 TESTS 49 732 13926400 1600
35176509 toysheeyeyraku C Feb. 12, 2018, 11:44 a.m. OK Python 3 TESTS 49 764 22732800 1600
22816780 hop-hop C Dec. 8, 2016, 5:44 p.m. OK Python 3 TESTS 49 841 21094400 1600
21121047 OgieKako C Oct. 2, 2016, 5:13 p.m. OK Rust TESTS 49 280 7987200 1600
22202764 reldan C Nov. 14, 2016, 5:40 a.m. OK Scala TESTS 49 514 10752000 1600
22202689 reldan C Nov. 14, 2016, 5:31 a.m. OK Scala TESTS 49 638 11059200 1600
21088330 wrick C Oct. 1, 2016, 3:34 p.m. OK Scala TESTS 49 763 27648000 1600
21096502 limed C Oct. 1, 2016, 7:36 p.m. OK Scala TESTS 49 810 14233600 1600
21080768 limed C Oct. 1, 2016, 2:44 p.m. OK Scala TESTS 49 904 14233600 1600

remove filters

Back to search problems