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
( 1390 ) E Cardboard Box PROGRAMMING data structures greedy 2500

B'Everyone who has played Cut the Rope knows full well how the gameplay is organized. All levels in the game are divided into boxes. Initially only one box with some levels is available. Player should complete levels to earn stars, collecting stars opens new box with levels. Imagine that you are playing Cut the Rope for the first time. Currently you have only the levels of the first box (by the way, it is called "Cardboard Box"). Each level is characterized by two integers: ai -- how long it takes to complete the level for one star, bi -- how long it takes to complete the level for two stars (ai xe2 x80 x89< xe2 x80 x89bi). You want to open the next box as quickly as possible. So, you need to earn at least w stars. How do make it happen? Note that the level can be passed only once: either for one star or for two. You do not necessarily need to pass all the levels. The first line contains two integers n and w (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x893 xc2 xb7105; 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89w xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892n) -- the number of levels in the first box and the number of stars you need to open another box. Each of the following n lines contains two integers ai and bi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89< xe2 x80 x89bi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the attributes of the i-th level. In the first line print integer t -- the minimum time you need to open the next box. In the next line, print n digits without spaces -- the description of the optimal scenario: In the first test sample, answer 21 is also assumed correct.'...

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
6940387 SanSiroWaltz E June 22, 2014, 3:30 a.m. OK FPC TESTS 71 763 11980800 2500
8244579 Ioser E Oct. 16, 2014, 9:11 a.m. OK GNU C++ TESTS 71 140 57856000 2500
6949747 aid E June 23, 2014, 9:37 p.m. OK GNU C++ TESTS 71 156 11980800 2500
6887004 lawrenceli E June 14, 2014, 12:50 a.m. OK GNU C++ TESTS 71 171 10956800 2500
8079124 dario2994 E Oct. 4, 2014, 3:41 p.m. OK GNU C++ TESTS 71 171 13107200 2500
6995917 CNWSYCF E July 2, 2014, 7:42 a.m. OK GNU C++ TESTS 71 171 19763200 2500
6891481 problem-solved E June 14, 2014, 5:26 p.m. OK GNU C++ TESTS 71 171 30617600 2500
6888571 qian99 E June 14, 2014, 7:31 a.m. OK GNU C++ TESTS 71 186 24576000 2500
6891484 problem-solved E June 14, 2014, 5:26 p.m. OK GNU C++ TESTS 71 186 30617600 2500
6887460 yummy E June 14, 2014, 3:30 a.m. OK GNU C++ TESTS 71 187 13107200 2500
6889005 c_loud26 E June 14, 2014, 8:54 a.m. OK GNU C++ TESTS 71 187 16793600 2500
8584020 Plumrain E Nov. 6, 2014, 5:48 a.m. OK GNU C++0x TESTS 71 187 9625600 2500
6887236 ftiasch E June 14, 2014, 2:26 a.m. OK GNU C++0x TESTS 71 187 19763200 2500
6885845 al13n E June 13, 2014, 7:34 p.m. OK GNU C++0x TESTS 71 218 29388800 2500
6885410 Kharybin E June 13, 2014, 7:02 p.m. OK GNU C++0x TESTS 71 233 27648000 2500
6883620 Swistakk E June 13, 2014, 5:34 p.m. OK GNU C++0x TESTS 71 234 75776000 2500
6883245 Sfairat E June 13, 2014, 5:27 p.m. OK GNU C++0x TESTS 71 327 15360000 2500
6893715 delta_4d E June 15, 2014, 9:30 a.m. OK GNU C++0x TESTS 71 436 36659200 2500
6889114 TMandzu E June 14, 2014, 9:18 a.m. OK GNU C++0x TESTS 71 436 161280000 2500
6885857 cebrusfs E June 13, 2014, 7:36 p.m. OK GNU C++0x TESTS 71 451 24985600 2500
6890276 WanderingID E June 14, 2014, 1:04 p.m. OK GNU C++0x TESTS 71 451 101580800 2500
64072681 Ark_ E Nov. 2, 2019, 7:55 a.m. OK GNU C++11 TESTS 71 124 28876800 2500
63764440 vjudge3 E Oct. 30, 2019, 5:36 a.m. OK GNU C++11 TESTS 71 171 14438400 2500
63763621 Master_Yi E Oct. 30, 2019, 5:15 a.m. OK GNU C++11 TESTS 71 171 14438400 2500
63779577 vjudge1 E Oct. 30, 2019, 10:37 a.m. OK GNU C++11 TESTS 71 171 50380800 2500
63779516 Darknesses E Oct. 30, 2019, 10:37 a.m. OK GNU C++11 TESTS 71 171 50380800 2500
10568925 zyeric E April 4, 2015, 2:59 a.m. OK GNU C++11 TESTS 71 187 10854400 2500
63650348 Fister E Oct. 28, 2019, 11:12 a.m. OK GNU C++11 TESTS 71 187 21606400 2500
18139971 lzr010506 E May 29, 2016, 2:29 a.m. OK GNU C++11 TESTS 71 202 17920000 2500
63650395 vjudge3 E Oct. 28, 2019, 11:13 a.m. OK GNU C++11 TESTS 71 218 21606400 2500
57819436 py_ultron E July 26, 2019, 9:53 p.m. OK GNU C++11 TESTS 71 342 16793600 2500
43557783 iaojnh E Sept. 29, 2018, 7:12 a.m. OK GNU C++14 TESTS 71 217 11264000 2500
64613101 860579 E Nov. 10, 2019, 3:02 a.m. OK GNU C++14 TESTS 71 342 23142400 2500
64609955 vjudge4 E Nov. 10, 2019, 12:22 a.m. OK GNU C++14 TESTS 71 358 23142400 2500
39230640 wilson.ho E June 14, 2018, 3:28 a.m. OK GNU C++14 TESTS 71 685 38604800 2500
69089526 Qu0cNguyen E Jan. 19, 2020, 9:37 a.m. OK GNU C++14 TESTS 71 686 31744000 2500
39281584 tmwilliamlin168 E June 16, 2018, 7:37 a.m. OK GNU C++14 TESTS 71 717 23552000 2500
55089220 Jester E June 4, 2019, 1:48 p.m. OK GNU C++14 TESTS 71 748 55296000 2500
48948867 dai E Jan. 25, 2019, 9:07 p.m. OK GNU C++14 TESTS 71 780 14745600 2500
59445625 newbiegcz E Aug. 25, 2019, 1:13 p.m. OK GNU C++14 TESTS 71 780 77004800 2500
27836949 MasterMind0108 E June 17, 2017, 3:29 a.m. OK GNU C++14 TESTS 71 1076 30310400 2500
53023141 alonefight E April 19, 2019, 5:31 p.m. OK GNU C++17 TESTS 71 358 16896000 2500
55327213 vjudge4 E June 9, 2019, 8:49 a.m. OK GNU C++17 TESTS 71 389 16896000 2500
69276572 segmentfault E Jan. 22, 2020, 2:39 a.m. OK GNU C++17 TESTS 71 639 45977600 2500
39280939 eyg E June 16, 2018, 7:02 a.m. OK GNU C++17 TESTS 71 826 23040000 2500
54231233 Atreus E May 16, 2019, 8:48 a.m. OK GNU C++17 TESTS 71 920 19968000 2500
67613335 ivanilos E Dec. 25, 2019, 4:13 p.m. OK GNU C++17 TESTS 71 1138 33280000 2500
68684540 Gnoud__ E Jan. 13, 2020, 2:17 a.m. OK GNU C++17 TESTS 71 1279 66764800 2500
53683997 lerooo E May 2, 2019, 9:53 p.m. OK GNU C++17 TESTS 71 1746 23142400 2500
65591701 Phortox E Nov. 23, 2019, 2:21 p.m. OK GNU C++17 TESTS 71 1746 51916800 2500
6885552 Petr E June 13, 2014, 7:10 p.m. OK Java 7 TESTS 71 998 16896000 2500
6927168 uwi E June 20, 2014, 11:12 a.m. OK Java 7 TESTS 71 1044 66048000 2500
6975753 A.Elahi E June 28, 2014, 2:02 p.m. OK Java 7 TESTS 71 1076 51609600 2500
6888073 dusty.and.rusty E June 14, 2014, 5:42 a.m. OK Java 7 TESTS 71 1574 40345600 2500
6888632 dusty.and.rusty E June 14, 2014, 7:44 a.m. OK Java 7 TESTS 71 1575 40345600 2500
7015335 Itpossible E July 5, 2014, 9:57 a.m. OK Java 7 TESTS 71 1746 55193600 2500
6991658 Javanochka E July 1, 2014, 11:54 a.m. OK Java 7 TESTS 71 1809 74956800 2500
6901752 chinh7 E June 17, 2014, 3:25 a.m. OK Java 7 TESTS 71 2027 62361600 2500
6882059 m.radwan E June 13, 2014, 5:05 p.m. OK Java 7 TESTS 71 2526 81100800 2500
6889092 wadissimo E June 14, 2014, 9:14 a.m. OK Java 7 TESTS 71 2604 57036800 2500
6906240 Pimpom E June 18, 2014, 2:19 p.m. OK Java 8 TESTS 71 1762 60825600 2500
15066331 ZIPP E Dec. 28, 2015, 6:48 a.m. OK Java 8 TESTS 71 1824 68710400 2500
6879544 winger E June 13, 2014, 4:27 p.m. OK Java 8 TESTS 71 2167 2355200 2500
22314176 Robin40 E Nov. 18, 2016, 8:04 p.m. OK Java 8 TESTS 71 2449 77414400 2500
6947575 IgorKoval E June 23, 2014, 12:46 p.m. OK Java 8 TESTS 71 3228 9625600 2500
6906956 AlexFetisov E June 18, 2014, 4:33 p.m. OK Java 8 TESTS 71 4414 133939200 2500
6888516 og.kostya E June 14, 2014, 7:22 a.m. OK MS C# TESTS 71 2105 27033600 2500
6977527 Rivx E June 28, 2014, 10:31 p.m. OK MS C++ TESTS 71 202 25292800 2500
6882695 pperm E June 13, 2014, 5:16 p.m. OK MS C++ TESTS 71 202 30924800 2500
6882569 cfy E June 13, 2014, 5:14 p.m. OK MS C++ TESTS 71 218 32460800 2500
6886011 DmitriyIvanov E June 13, 2014, 7:56 p.m. OK MS C++ TESTS 71 795 22937600 2500
6883097 dzhulgakov E June 13, 2014, 5:25 p.m. OK MS C++ TESTS 71 858 16384000 2500
6964577 Filyan E June 26, 2014, 3:57 p.m. OK MS C++ TESTS 71 997 24166400 2500
6965544 Furko E June 26, 2014, 7:42 p.m. OK MS C++ TESTS 71 1029 42803200 2500
6895461 VolodymyrK E June 15, 2014, 4:40 p.m. OK MS C++ TESTS 71 1200 17408000 2500
6886110 kcm1700 E June 13, 2014, 8:15 p.m. OK MS C++ TESTS 71 1200 25702400 2500
6895463 VolodymyrK E June 15, 2014, 4:41 p.m. OK MS C++ TESTS 71 1201 17408000 2500

remove filters

Back to search problems