Zepto Code Rush 2014

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
436 Zepto Code Rush 2014 FINISHED False 9000 329149799 June 13, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3483 ) A Feed with Candy PROGRAMMING greedy 1500

B"The hero of the Cut the Rope game is a little monster named Om Nom. He loves candies. And what a coincidence! He also is the hero of today's problem. One day, Om Nom visited his friend Evan. Evan has n candies of two types (fruit drops and caramel drops), the i-th candy hangs at the height of hi centimeters above the floor of the house, its mass is mi. Om Nom wants to eat as many candies as possible. At the beginning Om Nom can make at most x centimeter high jumps. When Om Nom eats a candy of mass y, he gets stronger and the height of his jump increases by y centimeters. What maximum number of candies can Om Nom eat if he never eats two candies of the same type in a row (Om Nom finds it too boring)? The first line contains two integers, n and x (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89x xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892000) -- the number of sweets Evan has and the initial height of Om Nom's jump. Each of the following n lines contains three integers ti, xe2 x80 x89hi, xe2 x80 x89mi (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ti xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891; 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89hi, xe2 x80 x89mi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892000) -- the type, height and the mass of the i-th candy. If number ti equals 0, then the current candy is a caramel drop, otherwise it is a fruit drop. Print a single integer -- the maximum number of candies Om Nom can eat. One of the possible ways to eat 4 candies is to eat them in the order: 1, 5, 3, 2. Let's assume the following scenario:"...

Tutorials

Zepto Code Rush 2014 — solutions A-D

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
6879297 Gassa A June 13, 2014, 4:24 p.m. OK D TESTS 60 31 102400 1500
7657464 fabsn A Aug. 31, 2014, 10:31 p.m. OK D TESTS 60 46 102400 1500
6882056 Anton-Spitamen A June 13, 2014, 5:04 p.m. OK Delphi TESTS 60 15 102400 1500
6930941 MRedor A June 20, 2014, 7:31 p.m. OK Delphi TESTS 60 30 102400 1500
6892450 I_Love_EEvilCatt A June 14, 2014, 11:21 p.m. OK Delphi TESTS 60 31 102400 1500
8498969 metalopocalipsis A Oct. 31, 2014, 3:16 p.m. OK Delphi TESTS 60 31 102400 1500
6885583 igor.glushkov A June 13, 2014, 7:12 p.m. OK Delphi TESTS 60 31 102400 1500
6880373 Misha100896 A June 13, 2014, 4:38 p.m. OK Delphi TESTS 60 31 102400 1500
6888853 AllCatsAreBeautiful A June 14, 2014, 8:25 a.m. OK Delphi TESTS 60 31 24064000 1500
6887241 ruban A June 14, 2014, 2:28 a.m. OK Delphi TESTS 60 31 122265600 1500
10574257 Hidan A April 4, 2015, 1:55 p.m. OK Delphi TESTS 60 46 102400 1500
6878600 solovey_tani A June 13, 2014, 4:17 p.m. OK Delphi TESTS 60 46 102400 1500
10574249 Hidan A April 4, 2015, 1:54 p.m. OK FPC TESTS 60 15 102400 1500
6879420 stupidcoder.vn A June 13, 2014, 4:26 p.m. OK FPC TESTS 60 15 102400 1500
6880388 landaigia A June 13, 2014, 4:39 p.m. OK FPC TESTS 60 15 204800 1500
6876974 I_learn_OCaml A June 13, 2014, 4:02 p.m. OK FPC TESTS 60 15 307200 1500
6879946 shakandrew A June 13, 2014, 4:32 p.m. OK FPC TESTS 60 15 716800 1500
6908785 Jicote A June 18, 2014, 8:01 p.m. OK FPC TESTS 60 30 102400 1500
6876780 artem1416 A June 13, 2014, 4 p.m. OK FPC TESTS 60 30 204800 1500
6898009 graceoflives A June 16, 2014, 7:20 a.m. OK FPC TESTS 60 31 0 1500
6875928 phankhai A June 13, 2014, 3:53 p.m. OK FPC TESTS 60 31 0 1500
6881750 karapuz A June 13, 2014, 4:59 p.m. OK FPC TESTS 60 31 102400 1500
18894069 Don_Vito_Corleone_77 A July 5, 2016, 6:22 a.m. OK GNU C TESTS 60 15 0 1500
9500108 4cE A Jan. 22, 2015, 8:45 a.m. OK GNU C TESTS 60 15 0 1500
6888104 yeguxin A June 14, 2014, 5:51 a.m. OK GNU C TESTS 60 15 0 1500
25154974 rainboy A March 2, 2017, 5:54 p.m. OK GNU C TESTS 60 15 1945600 1500
6934718 NoSoul A June 21, 2014, 5:28 a.m. OK GNU C TESTS 60 30 0 1500
6881766 binom A June 13, 2014, 5 p.m. OK GNU C TESTS 60 30 0 1500
6878087 awsn A June 13, 2014, 4:12 p.m. OK GNU C TESTS 60 30 102400 1500
10561153 cyand1317 A April 3, 2015, 2:39 p.m. OK GNU C TESTS 60 31 0 1500
9637267 phucnt A Jan. 31, 2015, 4:52 a.m. OK GNU C TESTS 60 31 0 1500
9637244 phucnt A Jan. 31, 2015, 4:48 a.m. OK GNU C TESTS 60 31 0 1500
21696670 Mjgonzales A Oct. 23, 2016, 2:09 a.m. OK GNU C++ TESTS 60 15 0 1500
19401862 vjudge3 A July 25, 2016, 10:55 a.m. OK GNU C++ TESTS 60 15 0 1500
15723434 alfo512 A Feb. 1, 2016, 3:11 a.m. OK GNU C++ TESTS 60 15 0 1500
15087105 alex20030190 A Dec. 29, 2015, 3:54 p.m. OK GNU C++ TESTS 60 15 0 1500
14936355 h1689481 A Dec. 23, 2015, 9:53 a.m. OK GNU C++ TESTS 60 15 0 1500
14846938 vjudge4 A Dec. 17, 2015, 2:13 p.m. OK GNU C++ TESTS 60 15 0 1500
14035630 duoluo123 A Nov. 3, 2015, 1:02 a.m. OK GNU C++ TESTS 60 15 0 1500
13913549 vjudge4 A Oct. 28, 2015, 11:41 a.m. OK GNU C++ TESTS 60 15 0 1500
13834719 vjudge4 A Oct. 25, 2015, 7:14 a.m. OK GNU C++ TESTS 60 15 0 1500
13833659 vjudge2 A Oct. 25, 2015, 5:15 a.m. OK GNU C++ TESTS 60 15 0 1500
6874384 yutaka1999 A June 13, 2014, 3:41 p.m. OK GNU C++0x TESTS 60 15 0 1500
6889817 Alick A June 14, 2014, 11:37 a.m. OK GNU C++0x TESTS 60 15 0 1500
6880075 lockmihai A June 13, 2014, 4:34 p.m. OK GNU C++0x TESTS 60 15 0 1500
6875971 wclee2265 A June 13, 2014, 3:54 p.m. OK GNU C++0x TESTS 60 15 0 1500
9499941 F74022078 A Jan. 22, 2015, 8:28 a.m. OK GNU C++0x TESTS 60 15 102400 1500
7569087 T0RRES A Aug. 24, 2014, 9:04 p.m. OK GNU C++0x TESTS 60 15 102400 1500
7303589 hogloid A Aug. 1, 2014, 2:54 a.m. OK GNU C++0x TESTS 60 15 102400 1500
7193708 kondranin A July 21, 2014, 11:08 a.m. OK GNU C++0x TESTS 60 15 102400 1500
7062505 betaveros A July 11, 2014, 8:22 a.m. OK GNU C++0x TESTS 60 15 102400 1500
6998747 GaryYe A July 2, 2014, 5:15 p.m. OK GNU C++0x TESTS 60 15 102400 1500
16009976 double301 A Feb. 13, 2016, 9:56 p.m. OK GNU C11 TESTS 60 31 102400 1500
16010281 double301 A Feb. 13, 2016, 10:31 p.m. OK GNU C11 TESTS 60 46 102400 1500
19181674 arcanae A July 17, 2016, 1 a.m. OK GNU C++11 TESTS 60 15 0 1500
15981610 suchir A Feb. 13, 2016, 4:52 a.m. OK GNU C++11 TESTS 60 15 0 1500
15724224 sebas095 A Feb. 1, 2016, 4:32 a.m. OK GNU C++11 TESTS 60 15 0 1500
13861525 edufgf A Oct. 25, 2015, 8:44 p.m. OK GNU C++11 TESTS 60 15 0 1500
13861437 saketh A Oct. 25, 2015, 8:36 p.m. OK GNU C++11 TESTS 60 15 0 1500
10510460 rptynan A March 29, 2015, 3 a.m. OK GNU C++11 TESTS 60 15 0 1500
19440546 musketeer11 A July 27, 2016, 11:31 a.m. OK GNU C++11 TESTS 60 15 0 1500
20257234 y_shindoh A Aug. 29, 2016, 4:08 p.m. OK GNU C++11 TESTS 60 15 0 1500
27918343 ILaP A June 20, 2017, 6:16 a.m. OK GNU C++11 TESTS 60 15 102400 1500
29834804 Omar_Elawady A Aug. 27, 2017, 8:56 p.m. OK GNU C++11 TESTS 60 15 102400 1500
26967255 Hossam A May 9, 2017, 4:09 a.m. OK GNU C++14 TESTS 60 15 102400 1500
29807531 nishant0208 A Aug. 26, 2017, 1:43 p.m. OK GNU C++14 TESTS 60 15 102400 1500
26967336 Hossam A May 9, 2017, 4:22 a.m. OK GNU C++14 TESTS 60 15 102400 1500
39282733 pzdba A June 16, 2018, 8:44 a.m. OK GNU C++14 TESTS 60 15 307200 1500
27110034 srinu37 A May 14, 2017, 4:43 p.m. OK GNU C++14 TESTS 60 15 1331200 1500
23804222 after A Jan. 14, 2017, 11:06 a.m. OK GNU C++14 TESTS 60 15 1945600 1500
29103475 vode A Aug. 1, 2017, 2:21 p.m. OK GNU C++14 TESTS 60 15 2048000 1500
28452125 vjudge5 A July 11, 2017, 8:11 p.m. OK GNU C++14 TESTS 60 15 2150400 1500
25076576 0w1 A Feb. 27, 2017, 12:14 p.m. OK GNU C++14 TESTS 60 15 2150400 1500
34656740 MrKasimov A Jan. 29, 2018, 9:31 a.m. OK GNU C++14 TESTS 60 15 2150400 1500
54526040 mello A May 23, 2019, 2:33 p.m. OK GNU C++17 TESTS 60 30 102400 1500
65111886 NaimSS A Nov. 15, 2019, 11:29 p.m. OK GNU C++17 TESTS 60 30 102400 1500
45899913 vjudge1 A Nov. 18, 2018, 3:33 a.m. OK GNU C++17 TESTS 60 30 2662400 1500
58874043 jt_112 A Aug. 15, 2019, 4:51 p.m. OK GNU C++17 TESTS 60 30 3379200 1500
43540392 HIT_Attacker A Sept. 28, 2018, 4:58 p.m. OK GNU C++17 TESTS 60 31 0 1500
54325369 ahManoTravei A May 18, 2019, 2:14 a.m. OK GNU C++17 TESTS 60 31 102400 1500
69069230 SalahSalem A Jan. 18, 2020, 8:24 p.m. OK GNU C++17 TESTS 60 31 102400 1500
64367754 tfg A Nov. 6, 2019, 1:28 p.m. OK GNU C++17 TESTS 60 31 102400 1500
55472532 antontrygubO_o A June 11, 2019, 7:46 p.m. OK GNU C++17 TESTS 60 31 102400 1500
46512688 cyclone472 A Dec. 2, 2018, 2:09 p.m. OK GNU C++17 TESTS 60 31 102400 1500
10525762 Eeyore A March 30, 2015, 2:58 p.m. OK Go TESTS 60 62 0 1500
8162159 arnoldjulians A Oct. 10, 2014, 3:10 a.m. OK Go TESTS 60 62 0 1500
7797734 kronos A Sept. 14, 2014, 10:59 p.m. OK Go TESTS 60 77 0 1500
8168025 devroid A Oct. 10, 2014, 5:01 p.m. OK Go TESTS 60 93 0 1500
8294799 leux A Oct. 18, 2014, 2:14 p.m. OK Go TESTS 60 93 102400 1500
10597482 Gehadelrobey A April 5, 2015, 4:50 a.m. OK Go TESTS 60 109 0 1500
6879497 cojna A June 13, 2014, 4:27 p.m. OK Haskell TESTS 60 15 102400 1500
6876556 quyse A June 13, 2014, 3:58 p.m. OK Haskell TESTS 60 78 1024000 1500
69494516 akivanov A Jan. 25, 2020, 2:33 a.m. OK Java 11 TESTS 60 280 0 1500
7544022 mkirsche A Aug. 21, 2014, 1:29 p.m. OK Java 6 TESTS 60 93 0 1500
6889908 haruki57 A June 14, 2014, 11:52 a.m. OK Java 6 TESTS 60 93 0 1500
8497097 archu.aspa A Oct. 31, 2014, 12:12 p.m. OK Java 6 TESTS 60 109 0 1500
8497077 bullshit.ass A Oct. 31, 2014, 12:10 p.m. OK Java 6 TESTS 60 109 0 1500
7019883 Router A July 6, 2014, 7:16 a.m. OK Java 6 TESTS 60 109 102400 1500
8665327 stevegregg A Nov. 11, 2014, 9:36 p.m. OK Java 6 TESTS 60 109 409600 1500
6877438 williard A June 13, 2014, 4:06 p.m. OK Java 6 TESTS 60 109 409600 1500
9777602 a654889339 A Feb. 9, 2015, 7:09 a.m. OK Java 6 TESTS 60 124 0 1500
9777491 vjudge2 A Feb. 9, 2015, 6:50 a.m. OK Java 6 TESTS 60 124 0 1500
7018225 xiaowuc1 A July 5, 2014, 10:28 p.m. OK Java 6 TESTS 60 124 0 1500
10532984 Sanatbek A March 31, 2015, 12:24 p.m. OK Java 7 TESTS 60 78 0 1500
7847620 santjuan A Sept. 19, 2014, 3:14 a.m. OK Java 7 TESTS 60 78 0 1500
6886988 FurionG A June 14, 2014, 12:41 a.m. OK Java 7 TESTS 60 78 0 1500
6886475 Zyflair A June 13, 2014, 9:44 p.m. OK Java 7 TESTS 60 78 0 1500
6877865 ishida A June 13, 2014, 4:10 p.m. OK Java 7 TESTS 60 78 0 1500
6877462 chinh7 A June 13, 2014, 4:06 p.m. OK Java 7 TESTS 60 78 0 1500
6876713 RampantMarshmallow A June 13, 2014, 3:59 p.m. OK Java 7 TESTS 60 78 0 1500
6875014 wadissimo A June 13, 2014, 3:46 p.m. OK Java 7 TESTS 60 78 0 1500
6874273 tanzaku A June 13, 2014, 3:40 p.m. OK Java 7 TESTS 60 78 0 1500
6874270 qwerty787788 A June 13, 2014, 3:40 p.m. OK Java 7 TESTS 60 78 204800 1500
10546979 cellist A April 2, 2015, 1:25 a.m. OK Java 8 TESTS 60 124 0 1500
25571896 Omar_Morsi A March 17, 2017, 12:23 p.m. OK Java 8 TESTS 60 124 20377600 1500
20032280 Ahmad_Elsagheer A Aug. 21, 2016, 6:05 p.m. OK Java 8 TESTS 60 124 20480000 1500
17162783 omarnvidia A April 4, 2016, 7:04 p.m. OK Java 8 TESTS 60 124 20582400 1500
13748456 master_j A Oct. 20, 2015, 9 a.m. OK Java 8 TESTS 60 139 0 1500
10523381 Mostafa.Gabriel A March 30, 2015, 10:17 a.m. OK Java 8 TESTS 60 139 0 1500
25571484 Omar_Morsi A March 17, 2017, 12:09 p.m. OK Java 8 TESTS 60 139 20377600 1500
64846572 himanshubhardwaj169 A Nov. 13, 2019, 5:47 p.m. OK Java 8 TESTS 60 140 0 1500
40648880 ashubeckham A July 22, 2018, 6:44 p.m. OK Java 8 TESTS 60 140 0 1500
11447210 sweiss A June 5, 2015, 1:22 p.m. OK Java 8 TESTS 60 140 0 1500
61305455 Spheniscine A Sept. 26, 2019, 7:01 a.m. OK Kotlin TESTS 60 171 0 1500
6885580 Link20 A June 13, 2014, 7:12 p.m. OK Mono C# TESTS 60 62 512000 1500
6893558 Alethor A June 15, 2014, 8:46 a.m. OK Mono C# TESTS 60 77 2764800 1500
10539802 mvtikm A April 1, 2015, 8:45 a.m. OK Mono C# TESTS 60 78 512000 1500
6875720 kuuso A June 13, 2014, 3:52 p.m. OK Mono C# TESTS 60 93 614400 1500
6875299 Sergey.Sviridov A June 13, 2014, 3:48 p.m. OK Mono C# TESTS 60 171 3584000 1500
6881235 yrtchn A June 13, 2014, 4:51 p.m. OK MS C# TESTS 60 46 409600 1500
10270547 mother_hacker A March 14, 2015, 10:23 a.m. OK MS C# TESTS 60 46 409600 1500
8704124 Zhou A Nov. 15, 2014, 2:47 p.m. OK MS C# TESTS 60 61 512000 1500
6880521 og.kostya A June 13, 2014, 4:40 p.m. OK MS C# TESTS 60 62 409600 1500
6888308 og.kostya A June 14, 2014, 6:46 a.m. OK MS C# TESTS 60 62 409600 1500
6883929 Silithus A June 13, 2014, 5:40 p.m. OK MS C# TESTS 60 62 819200 1500
10525541 freepvps A March 30, 2015, 2:35 p.m. OK MS C# TESTS 60 62 921600 1500
6878945 Kavir A June 13, 2014, 4:20 p.m. OK MS C# TESTS 60 62 2662400 1500
6954201 Rustam_3 A June 24, 2014, 5:33 p.m. OK MS C# TESTS 60 77 307200 1500
9493839 camypaper A Jan. 21, 2015, 2:45 p.m. OK MS C# TESTS 60 77 307200 1500
6882807 Auster A June 13, 2014, 5:19 p.m. OK MS C++ TESTS 60 15 0 1500
6880895 dragoon A June 13, 2014, 4:46 p.m. OK MS C++ TESTS 60 15 0 1500
6880292 Loremon A June 13, 2014, 4:37 p.m. OK MS C++ TESTS 60 15 0 1500
10556776 vanche A April 3, 2015, 4:44 a.m. OK MS C++ TESTS 60 15 0 1500
7444406 541307120150 A Aug. 14, 2014, 9:13 a.m. OK MS C++ TESTS 60 15 0 1500
6892954 mzhq A June 15, 2014, 5:13 a.m. OK MS C++ TESTS 60 15 0 1500
6890033 Elun A June 14, 2014, 12:13 p.m. OK MS C++ TESTS 60 15 0 1500
6889797 laozhangxiaoY A June 14, 2014, 11:33 a.m. OK MS C++ TESTS 60 15 0 1500
6888550 SC_pRo_ION A June 14, 2014, 7:28 a.m. OK MS C++ TESTS 60 15 0 1500
6888071 randan A June 14, 2014, 5:42 a.m. OK MS C++ TESTS 60 15 0 1500
15066591 ZIPP A Dec. 28, 2015, 7:12 a.m. OK PHP TESTS 60 670 819200 1500
6882719 mayakin A June 13, 2014, 5:17 p.m. OK PHP TESTS 60 841 512000 1500
10390336 kilya A March 21, 2015, 11:44 p.m. OK PHP TESTS 60 1013 1126400 1500
49179503 Zeyu A Jan. 30, 2019, 12:07 a.m. OK PyPy 2 TESTS 60 233 1433600 1500
9821978 poikniok A Feb. 14, 2015, 12:10 a.m. OK PyPy 3 TESTS 60 374 6451200 1500
6874444 nab A June 13, 2014, 3:41 p.m. OK Python 2 TESTS 60 78 307200 1500
6893948 nealzane A June 15, 2014, 10:39 a.m. OK Python 2 TESTS 60 78 409600 1500
10519565 alexwice A March 29, 2015, 7:26 p.m. OK Python 2 TESTS 60 93 1638400 1500
35872071 ______u______ A March 3, 2018, 7:04 a.m. OK Python 2 TESTS 60 93 4710400 1500
35871815 ______n______ A March 3, 2018, 6:58 a.m. OK Python 2 TESTS 60 93 4710400 1500
35871256 _____i_____ A March 3, 2018, 6:46 a.m. OK Python 2 TESTS 60 93 4710400 1500
35871244 _____k_____ A March 3, 2018, 6:46 a.m. OK Python 2 TESTS 60 93 4710400 1500
35862467 ______k______ A March 2, 2018, 10:26 p.m. OK Python 2 TESTS 60 93 4710400 1500
35862449 ______h______ A March 2, 2018, 10:26 p.m. OK Python 2 TESTS 60 93 4710400 1500
35861941 ______i______ A March 2, 2018, 10:14 p.m. OK Python 2 TESTS 60 93 4710400 1500
10550532 SahilK A April 2, 2015, 12:22 p.m. OK Python 3 TESTS 60 62 307200 1500
10550801 Chipe1 A April 2, 2015, 12:51 p.m. OK Python 3 TESTS 60 93 819200 1500
6886406 yugle7 A June 13, 2014, 9:29 p.m. OK Python 3 TESTS 60 109 0 1500
10572092 master94 A April 4, 2015, 10:50 a.m. OK Python 3 TESTS 60 109 716800 1500
25155060 bbonar A March 2, 2017, 5:59 p.m. OK Python 3 TESTS 60 124 5017600 1500
6886726 begebot A June 13, 2014, 10:57 p.m. OK Python 3 TESTS 60 233 0 1500
56636269 kopok2 A July 6, 2019, 7:45 p.m. OK Python 3 TESTS 60 499 614400 1500
10310660 webber_fm A March 17, 2015, 1:23 p.m. OK Python 3 TESTS 60 545 819200 1500
6878912 hd898 A June 13, 2014, 4:20 p.m. OK Python 3 TESTS 60 733 0 1500
9732448 poikniok A Feb. 6, 2015, 12:33 a.m. OK Python 3 TESTS 60 748 716800 1500
10263626 hedgesky A March 13, 2015, 10:15 p.m. OK Ruby TESTS 60 483 11468800 1500
10263647 hedgesky A March 13, 2015, 10:17 p.m. OK Ruby TESTS 60 498 11571200 1500
6879577 prijutme4ty A June 13, 2014, 4:28 p.m. OK Ruby TESTS 60 670 11776000 1500
10263457 hedgesky A March 13, 2015, 9:53 p.m. OK Ruby TESTS 60 1887 21913600 1500
6881804 limed A June 13, 2014, 5 p.m. OK Scala TESTS 60 327 307200 1500
14572259 reldan A Nov. 30, 2015, 2:52 p.m. OK Scala TESTS 60 467 307200 1500
6907072 hama-du A June 18, 2014, 5 p.m. OK Scala TESTS 60 514 307200 1500

remove filters

Back to search problems