ZeptoLab Code Rush 2015

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
526 ZeptoLab Code Rush 2015 FINISHED False 9000 303657899 April 4, 2015, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2524 ) C Om Nom and Candies PROGRAMMING brute force greedy math 2000

B"A sweet little monster Om Nom loves candies very much. One day he found himself in a rather tricky situation that required him to think a bit in order to enjoy candies the most. Would you succeed with the same task if you were on his place? One day, when he came to his friend Evan, Om Nom didn't find him at home but he found two bags with candies. The first was full of blue candies and the second bag was full of red candies. Om Nom knows that each red candy weighs Wr grams and each blue candy weighs Wb grams. Eating a single red candy gives Om Nom Hr joy units and eating a single blue candy gives Om Nom Hb joy units. Candies are the most important thing in the world, but on the other hand overeating is not good. Om Nom knows if he eats more than C grams of candies, he will get sick. Om Nom thinks that it isn't proper to leave candy leftovers, so he can only eat a whole candy. Om Nom is a great mathematician and he quickly determined how many candies of what type he should eat in order to get the maximum number of joy units. Can you repeat his achievement? You can assume that each bag contains more candies that Om Nom can eat. The single line contains five integers C, xe2 x80 x89Hr, xe2 x80 x89Hb, xe2 x80 x89Wr, xe2 x80 x89Wb (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89C, xe2 x80 x89Hr, xe2 x80 x89Hb, xe2 x80 x89Wr, xe2 x80 x89Wb xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). Print a single integer -- the maximum number of joy units that Om Nom can get. In the sample test Om Nom can eat two candies of each type and thus get 16 joy units."...

Tutorials

ZeptoLab Code Rush 2015 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
10595619 Gassa C April 4, 2015, 10:36 p.m. OK D TESTS 75 31 0 2000
10578656 Gassa C April 4, 2015, 4:55 p.m. OK D TESTS 75 46 0 2000
10593957 danildudin C April 4, 2015, 8:12 p.m. OK Delphi TESTS 75 31 102400 2000
10595883 Farhit C April 4, 2015, 11:35 p.m. OK Delphi TESTS 75 46 102400 2000
10580351 Alex_2oo8 C April 4, 2015, 5:08 p.m. OK FPC TESTS 75 30 0 2000
10598164 CMSwift C April 5, 2015, 6:28 a.m. OK FPC TESTS 75 30 0 2000
10589604 AbstractKangaroo C April 4, 2015, 6:36 p.m. OK FPC TESTS 75 30 0 2000
10705297 igdor99 C April 14, 2015, 2:51 p.m. OK FPC TESTS 75 31 102400 2000
10594851 Sanja C April 4, 2015, 9 p.m. OK FPC TESTS 75 31 102400 2000
10599652 RainGrid C April 5, 2015, 9:27 a.m. OK FPC TESTS 75 139 0 2000
10603862 namjr C April 5, 2015, 3:41 p.m. OK FPC TESTS 75 140 0 2000
10589652 Glaceon08 C April 4, 2015, 6:36 p.m. OK FPC TESTS 75 140 0 2000
10604023 IHaveBeenBlueFor3Years C April 5, 2015, 4 p.m. OK FPC TESTS 75 140 102400 2000
15062618 ZIPP C Dec. 27, 2015, 10:42 p.m. OK FPC TESTS 75 156 0 2000
10763269 aplain C April 18, 2015, 3:28 a.m. OK GNU C TESTS 75 15 0 2000
10645799 zeosutt C April 10, 2015, 6:36 a.m. OK GNU C TESTS 75 15 0 2000
10633077 hemant1234 C April 8, 2015, 5:30 p.m. OK GNU C TESTS 75 15 0 2000
10586394 lnsuyn C April 4, 2015, 6:03 p.m. OK GNU C TESTS 75 15 0 2000
24949825 rainboy C Feb. 23, 2017, 10:30 p.m. OK GNU C TESTS 75 15 1945600 2000
10600114 Chipe1 C April 5, 2015, 10:27 a.m. OK GNU C TESTS 75 30 0 2000
10596937 cyand1317 C April 5, 2015, 3:13 a.m. OK GNU C TESTS 75 30 0 2000
11775052 malhar1995 C June 26, 2015, 4:47 p.m. OK GNU C TESTS 75 31 0 2000
10645762 zeosutt C April 10, 2015, 6:25 a.m. OK GNU C TESTS 75 31 0 2000
10645746 zeosutt C April 10, 2015, 6:20 a.m. OK GNU C TESTS 75 31 0 2000
31008752 GXZlegend C Oct. 5, 2017, 5:46 a.m. OK GNU C++ TESTS 75 15 0 2000
21775461 normalone C Oct. 25, 2016, 4:10 p.m. OK GNU C++ TESTS 75 15 0 2000
20391979 vjudge4 C Sept. 5, 2016, 2:17 a.m. OK GNU C++ TESTS 75 15 0 2000
20391770 vjudge1 C Sept. 5, 2016, 1:49 a.m. OK GNU C++ TESTS 75 15 0 2000
20391577 vjudge1 C Sept. 5, 2016, 1:17 a.m. OK GNU C++ TESTS 75 15 0 2000
20378083 vjudge4 C Sept. 4, 2016, 8:47 a.m. OK GNU C++ TESTS 75 15 0 2000
20376213 vjudge1 C Sept. 4, 2016, 6:56 a.m. OK GNU C++ TESTS 75 15 0 2000
20375568 vjudge2 C Sept. 4, 2016, 6:09 a.m. OK GNU C++ TESTS 75 15 0 2000
19431532 vjudge1 C July 27, 2016, 1:29 a.m. OK GNU C++ TESTS 75 15 0 2000
19393203 vjudge3 C July 25, 2016, 3:07 a.m. OK GNU C++ TESTS 75 15 0 2000
10820255 grib C April 22, 2015, 8:39 a.m. OK GNU C11 TESTS 75 31 1843200 2000
27719756 WannaflyUnion C June 11, 2017, 11:06 a.m. OK GNU C++11 TESTS 75 15 0 2000
27301766 RamTararam C May 23, 2017, 1:02 p.m. OK GNU C++11 TESTS 75 15 0 2000
20569004 Badry C Sept. 13, 2016, 2:22 p.m. OK GNU C++11 TESTS 75 15 0 2000
19413544 wzm C July 26, 2016, 2:54 a.m. OK GNU C++11 TESTS 75 15 0 2000
19284979 leninkumar31 C July 20, 2016, 5:11 p.m. OK GNU C++11 TESTS 75 15 0 2000
16581474 0w1 C March 7, 2016, 12:25 p.m. OK GNU C++11 TESTS 75 15 0 2000
16581436 0w1 C March 7, 2016, 12:21 p.m. OK GNU C++11 TESTS 75 15 0 2000
16581266 0w1 C March 7, 2016, 12:01 p.m. OK GNU C++11 TESTS 75 15 0 2000
16288672 WeHaveInt C Feb. 23, 2016, 8:14 a.m. OK GNU C++11 TESTS 75 15 0 2000
30990301 CQzhangyu C Oct. 4, 2017, 11:14 a.m. OK GNU C++11 TESTS 75 15 0 2000
30623966 wladw C Sept. 22, 2017, 7:17 p.m. OK GNU C++14 TESTS 75 15 0 2000
27699574 RunningTime C June 10, 2017, 3:52 a.m. OK GNU C++14 TESTS 75 15 0 2000
27425840 tryingg C May 29, 2017, 8:34 a.m. OK GNU C++14 TESTS 75 15 0 2000
27324620 MesutOzill11 C May 24, 2017, 6:08 p.m. OK GNU C++14 TESTS 75 15 0 2000
27321640 numerix C May 24, 2017, 2:23 p.m. OK GNU C++14 TESTS 75 15 0 2000
21883156 Mohamed_AboBakr C Oct. 29, 2016, 9:11 p.m. OK GNU C++14 TESTS 75 15 0 2000
21638014 tun C Oct. 21, 2016, 9:50 a.m. OK GNU C++14 TESTS 75 15 0 2000
38692091 bojverdict2 C May 28, 2018, 11:12 a.m. OK GNU C++14 TESTS 75 15 0 2000
23405518 Ali.Pi C Dec. 29, 2016, 6:52 p.m. OK GNU C++14 TESTS 75 15 1843200 2000
32802416 ipractice C Nov. 30, 2017, 10:39 a.m. OK GNU C++14 TESTS 75 15 1945600 2000
35459511 elin42 C Feb. 19, 2018, 12:22 a.m. OK GNU C++17 TESTS 75 15 1945600 2000
50216249 ZhaoYuYiQingChen C Feb. 20, 2019, 4:47 a.m. OK GNU C++17 TESTS 75 30 0 2000
65248962 egekabas C Nov. 17, 2019, 11:26 a.m. OK GNU C++17 TESTS 75 30 0 2000
66148032 vivek_reddy C Dec. 1, 2019, 5:33 p.m. OK GNU C++17 TESTS 75 31 0 2000
65900290 JBer C Nov. 28, 2019, 8:25 a.m. OK GNU C++17 TESTS 75 31 0 2000
65878713 mia_ortizma C Nov. 27, 2019, 6:02 p.m. OK GNU C++17 TESTS 75 31 0 2000
65350274 vjudge3 C Nov. 19, 2019, 2:07 p.m. OK GNU C++17 TESTS 75 31 0 2000
65267624 vjudge5 C Nov. 17, 2019, 5:55 p.m. OK GNU C++17 TESTS 75 31 0 2000
65261890 vjudge1 C Nov. 17, 2019, 3:19 p.m. OK GNU C++17 TESTS 75 31 0 2000
66233706 vipghn2003 C Dec. 3, 2019, 3:22 p.m. OK GNU C++17 TESTS 75 31 0 2000
10580592 uwi C April 4, 2015, 5:10 p.m. OK Java 7 TESTS 75 77 0 2000
10594728 megaspazz C April 4, 2015, 8:52 p.m. OK Java 7 TESTS 75 77 0 2000
10593136 chavit C April 4, 2015, 7:52 p.m. OK Java 7 TESTS 75 77 0 2000
10588551 ant.ermilov C April 4, 2015, 6:25 p.m. OK Java 7 TESTS 75 77 0 2000
10587651 Aries512 C April 4, 2015, 6:16 p.m. OK Java 7 TESTS 75 77 0 2000
10585987 abear888 C April 4, 2015, 5:59 p.m. OK Java 7 TESTS 75 77 0 2000
11926110 DiegoAE C July 4, 2015, 7:07 p.m. OK Java 7 TESTS 75 78 0 2000
11926092 DiegoAE C July 4, 2015, 7:05 p.m. OK Java 7 TESTS 75 78 0 2000
11371958 tehqin C May 31, 2015, 10:32 p.m. OK Java 7 TESTS 75 78 0 2000
10594975 megaspazz C April 4, 2015, 9:12 p.m. OK Java 7 TESTS 75 78 0 2000
25080223 tomdmitriev C Feb. 27, 2017, 2:44 p.m. OK Java 8 TESTS 75 108 20582400 2000
11756194 Anatoliy95 C June 25, 2015, 6:32 a.m. OK Java 8 TESTS 75 109 0 2000
10668861 ekzhang C April 12, 2015, 3:31 p.m. OK Java 8 TESTS 75 109 0 2000
10648505 maradonah C April 10, 2015, 12:56 p.m. OK Java 8 TESTS 75 109 0 2000
10642173 Pimpom C April 9, 2015, 4:39 p.m. OK Java 8 TESTS 75 109 0 2000
10604517 poikniok C April 5, 2015, 4:51 p.m. OK Java 8 TESTS 75 109 0 2000
10604373 fnch C April 5, 2015, 4:35 p.m. OK Java 8 TESTS 75 109 0 2000
10599180 kenkoooo C April 5, 2015, 8:33 a.m. OK Java 8 TESTS 75 109 0 2000
10597579 turmoil C April 5, 2015, 5:01 a.m. OK Java 8 TESTS 75 109 0 2000
10595890 vadimmm C April 4, 2015, 11:36 p.m. OK Java 8 TESTS 75 109 0 2000
10593524 Neverauskas C April 4, 2015, 7:59 p.m. OK MS C# TESTS 75 46 2048000 2000
10647151 hokmund C April 10, 2015, 10:29 a.m. OK MS C# TESTS 75 61 204800 2000
10601462 eitaho C April 5, 2015, 12:24 p.m. OK MS C# TESTS 75 61 204800 2000
11330845 og.kostya C May 28, 2015, 9:33 a.m. OK MS C# TESTS 75 61 307200 2000
10598862 azukun C April 5, 2015, 7:56 a.m. OK MS C# TESTS 75 61 512000 2000
10582512 azukun C April 4, 2015, 5:26 p.m. OK MS C# TESTS 75 62 512000 2000
10584046 freepvps C April 4, 2015, 5:40 p.m. OK MS C# TESTS 75 62 614400 2000
10597016 T-D-K C April 5, 2015, 3:29 a.m. OK MS C# TESTS 75 108 204800 2000
10592990 Stratholme C April 4, 2015, 7:50 p.m. OK MS C# TESTS 75 390 512000 2000
10732365 redoak C April 15, 2015, 2:20 p.m. OK MS C++ TESTS 75 15 0 2000
10635017 6eJIa9IzZzTeHb C April 8, 2015, 9:55 p.m. OK MS C++ TESTS 75 15 0 2000
10630139 tangshitao C April 8, 2015, 12:24 p.m. OK MS C++ TESTS 75 15 0 2000
10617099 Vectorrr C April 6, 2015, 11:26 p.m. OK MS C++ TESTS 75 15 0 2000
10601881 ashkan_d13 C April 5, 2015, 12:53 p.m. OK MS C++ TESTS 75 15 0 2000
10581426 Michael C April 4, 2015, 5:17 p.m. OK MS C++ TESTS 75 15 0 2000
10650567 rui C April 10, 2015, 4:09 p.m. OK MS C++ TESTS 75 15 102400 2000
10593966 DimonK C April 4, 2015, 8:12 p.m. OK MS C++ TESTS 75 15 102400 2000
10587309 Deamon C April 4, 2015, 6:12 p.m. OK MS C++ TESTS 75 15 1024000 2000
26108927 LightRay C April 3, 2017, 9:08 p.m. OK MS C++ TESTS 75 15 1945600 2000
58635588 vjudge2 C Aug. 11, 2019, 11:56 p.m. OK MS C++ 2017 TESTS 75 31 0 2000
10606603 Alsagen C April 5, 2015, 9:06 p.m. OK PHP TESTS 75 280 0 2000
35884635 _____k_____ C March 3, 2018, 1:15 p.m. OK PyPy 2 TESTS 75 62 21504000 2000
35884593 _____i_____ C March 3, 2018, 1:15 p.m. OK PyPy 2 TESTS 75 62 21504000 2000
35873933 ______h______ C March 3, 2018, 7:40 a.m. OK PyPy 2 TESTS 75 62 21504000 2000
35873679 ______k______ C March 3, 2018, 7:35 a.m. OK PyPy 2 TESTS 75 62 21504000 2000
35873243 ______i______ C March 3, 2018, 7:28 a.m. OK PyPy 2 TESTS 75 62 21504000 2000
35871290 ______M______ C March 3, 2018, 6:46 a.m. OK PyPy 2 TESTS 75 62 21504000 2000
18784469 Yash_ C June 29, 2016, 2:19 p.m. OK PyPy 2 TESTS 75 78 0 2000
10593263 pshevchuk C April 4, 2015, 7:54 p.m. OK PyPy 2 TESTS 75 78 0 2000
10605249 FrankGuo11 C April 5, 2015, 6:10 p.m. OK PyPy 2 TESTS 75 109 1024000 2000
10587681 hellman_ C April 4, 2015, 6:16 p.m. OK PyPy 2 TESTS 75 233 11673600 2000
10628130 trunghieu11 C April 8, 2015, 7:42 a.m. OK PyPy 3 TESTS 75 140 921600 2000
10614930 minimario C April 6, 2015, 5:12 p.m. OK PyPy 3 TESTS 75 186 1024000 2000
13711087 Danlark C Oct. 18, 2015, 10:46 a.m. OK PyPy 3 TESTS 75 312 2457600 2000
10651739 nealzane C April 10, 2015, 6:33 p.m. OK Python 2 TESTS 75 61 307200 2000
10608065 whn6325689 C April 6, 2015, 4:15 a.m. OK Python 2 TESTS 75 62 0 2000
10598998 Andimeo C April 5, 2015, 8:11 a.m. OK Python 2 TESTS 75 62 0 2000
10595424 ray040123 C April 4, 2015, 10:07 p.m. OK Python 2 TESTS 75 62 0 2000
10595038 Kelang C April 4, 2015, 9:17 p.m. OK Python 2 TESTS 75 62 0 2000
10594993 Kelang C April 4, 2015, 9:13 p.m. OK Python 2 TESTS 75 62 0 2000
10593441 nwi C April 4, 2015, 7:57 p.m. OK Python 2 TESTS 75 62 0 2000
10593414 nwi C April 4, 2015, 7:57 p.m. OK Python 2 TESTS 75 62 0 2000
10580502 csferng C April 4, 2015, 5:10 p.m. OK Python 2 TESTS 75 62 0 2000
10651766 nealzane C April 10, 2015, 6:37 p.m. OK Python 2 TESTS 75 62 307200 2000
10694852 ttbxxls C April 13, 2015, 2:08 p.m. OK Python 3 TESTS 75 62 0 2000
10687812 vanadium C April 12, 2015, 10:40 p.m. OK Python 3 TESTS 75 62 0 2000
10595065 zhukov.ilya C April 4, 2015, 9:19 p.m. OK Python 3 TESTS 75 62 0 2000
10618441 antonydeepak C April 7, 2015, 6:07 a.m. OK Python 3 TESTS 75 77 0 2000
10939052 ildaq C April 30, 2015, 2:02 p.m. OK Python 3 TESTS 75 77 4710400 2000
10597936 s17b2_voroneckij C April 5, 2015, 5:55 a.m. OK Python 3 TESTS 75 78 0 2000
10615971 yugle7 C April 6, 2015, 7:41 p.m. OK Python 3 TESTS 75 93 0 2000
22649999 vjudge4 C Dec. 2, 2016, 12:23 a.m. OK Python 3 TESTS 75 109 0 2000
39179043 ninjashiba C June 12, 2018, 3:16 a.m. OK Python 3 TESTS 75 140 0 2000
37141471 jorhet C April 10, 2018, 10:38 a.m. OK Python 3 TESTS 75 155 7065600 2000
10598350 limed C April 5, 2015, 6:57 a.m. OK Scala TESTS 75 841 102400 2000

remove filters

Back to search problems