VK Cup 2012 Qualification Round 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
159 VK Cup 2012 Qualification Round 2 FINISHED False 86400 406591186 March 9, 2012, 8 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1008 ) E Zebra Tower PROGRAMMING *special data structures greedy sortings 2100

B"Little Janet likes playing with cubes. Actually, she likes to play with anything whatsoever, cubes or tesseracts, as long as they are multicolored. Each cube is described by two parameters -- color ci and size si. A Zebra Tower is a tower that consists of cubes of exactly two colors. Besides, the colors of the cubes in the tower must alternate (colors of adjacent cubes must differ). The Zebra Tower should have at least two cubes. There are no other limitations. The figure below shows an example of a Zebra Tower. A Zebra Tower's height is the sum of sizes of all cubes that form the tower. Help little Janet build the Zebra Tower of the maximum possible height, using the available cubes. The first line contains an integer n (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- the number of cubes. Next n lines contain the descriptions of the cubes, one description per line. A cube description consists of two space-separated integers ci and si (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ci, xe2 x80 x89si xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the i-th cube's color and size, correspondingly. It is guaranteed that there are at least two cubes of different colors. Print the description of the Zebra Tower of the maximum height in the following form. In the first line print the tower's height, in the second line print the number of cubes that form the tower, and in the third line print the space-separated indices of cubes in the order in which they follow in the tower from the bottom to the top. Assume that the cubes are numbered from 1 to n in the order in which they were given in the input. If there are several existing Zebra Towers with maximum heights, it is allowed to print any of them. Please do not use the %lld specificator to read or write 64-bit integers in xd0 xa1++. It is preferred to use the cin, cout streams or the %I64d specificator."...

Tutorials

Simple solution to vk cup Qualification Round 1 and 2

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
55523970 453908766 E June 13, 2019, 10:09 a.m. OK Clang++17 Diagnostics TESTS 35 171 4403200 2100
4108515 Misha100896 E July 19, 2013, 9:49 p.m. OK Delphi TESTS 35 62 3993600 2100
1328295 Depool E March 9, 2012, 6:59 p.m. OK Delphi TESTS 35 80 5017600 2100
1647645 vlad107 E May 1, 2012, 10:22 a.m. OK Delphi TESTS 35 90 14131200 2100
1331319 Fynn E March 10, 2012, 12:21 a.m. OK Delphi TESTS 35 90 14540800 2100
1333618 ErzhanDS E March 10, 2012, 6:13 a.m. OK Delphi TESTS 35 110 4608000 2100
1332893 Nikolai E March 10, 2012, 4:55 a.m. OK Delphi TESTS 35 110 73625600 2100
1337506 Casio E March 10, 2012, 1:56 p.m. OK Delphi TESTS 35 130 5632000 2100
1337435 Casio E March 10, 2012, 1:45 p.m. OK Delphi TESTS 35 130 5632000 2100
1337412 Casio E March 10, 2012, 1:40 p.m. OK Delphi TESTS 35 130 5632000 2100
1337516 Casio E March 10, 2012, 2 p.m. OK Delphi TESTS 35 140 5632000 2100
1338748 BrightDays E March 10, 2012, 7:13 p.m. OK FPC TESTS 35 90 7065600 2100
3919124 Fedosik E June 19, 2013, 2:16 p.m. OK FPC TESTS 35 93 28057600 2100
1350264 clooocanany E March 12, 2012, 5 a.m. OK FPC TESTS 35 110 5017600 2100
1383350 alik E March 21, 2012, 6:38 a.m. OK FPC TESTS 35 110 9932800 2100
4397297 oshawott E Sept. 2, 2013, 1:21 p.m. OK FPC TESTS 35 124 4403200 2100
3917627 Nik_Storm_2010 E June 19, 2013, 12:57 p.m. OK FPC TESTS 35 125 11264000 2100
1339209 zerotrac E March 11, 2012, 2:17 a.m. OK FPC TESTS 35 130 4608000 2100
1338690 Oryshych E March 10, 2012, 6:58 p.m. OK FPC TESTS 35 130 7475200 2100
1332272 phidang E March 10, 2012, 3:20 a.m. OK FPC TESTS 35 140 4096000 2100
1337738 USA E March 10, 2012, 2:43 p.m. OK FPC TESTS 35 140 7475200 2100
1355936 neuton E March 13, 2012, 8:39 p.m. OK GNU C TESTS 35 160 7372800 2100
40991755 ReaLNero1 E July 31, 2018, 12:50 a.m. OK GNU C++ TESTS 35 46 3174400 2100
2044261 trunghieu11 E Aug. 23, 2012, 10:37 a.m. OK GNU C++ TESTS 35 60 4710400 2100
20831904 gzz E Sept. 23, 2016, 7:17 a.m. OK GNU C++ TESTS 35 62 2662400 2100
14178630 130705009 E Nov. 9, 2015, 11:36 p.m. OK GNU C++ TESTS 35 62 2662400 2100
6986426 hkglly E June 30, 2014, 1:34 p.m. OK GNU C++ TESTS 35 62 2867200 2100
7676375 qingping95 E Sept. 3, 2014, 4:54 p.m. OK GNU C++ TESTS 35 62 5632000 2100
9549390 3901130101 E Jan. 25, 2015, 1:25 p.m. OK GNU C++ TESTS 35 62 9113600 2100
9549436 3901130101 E Jan. 25, 2015, 1:29 p.m. OK GNU C++ TESTS 35 62 9216000 2100
14538560 vjudge4 E Nov. 28, 2015, 10:04 a.m. OK GNU C++ TESTS 35 62 10342400 2100
22417406 vjudge3 E Nov. 23, 2016, 6:42 a.m. OK GNU C++ TESTS 35 77 6451200 2100
8604990 aliasadiiii E Nov. 7, 2014, 3:02 p.m. OK GNU C++0x TESTS 35 77 10035200 2100
8431144 DarthKnight E Oct. 27, 2014, 12:30 p.m. OK GNU C++0x TESTS 35 93 9113600 2100
8161763 gbuenoandrade E Oct. 10, 2014, 12:50 a.m. OK GNU C++0x TESTS 35 93 11366400 2100
8882878 waterfall E Nov. 28, 2014, 8:05 p.m. OK GNU C++0x TESTS 35 124 11571200 2100
4325058 wanbo E Aug. 22, 2013, 4:57 p.m. OK GNU C++0x TESTS 35 156 11776000 2100
8099784 lucasmelo E Oct. 5, 2014, 9:14 p.m. OK GNU C++0x TESTS 35 187 4403200 2100
2002063 andreyv E Aug. 12, 2012, 1:07 p.m. OK GNU C++0x TESTS 35 190 9728000 2100
1331693 safeasmilk E March 10, 2012, 1:38 a.m. OK GNU C++0x TESTS 35 200 11468800 2100
2002060 andreyv E Aug. 12, 2012, 1:05 p.m. OK GNU C++0x TESTS 35 220 10035200 2100
1322343 package.zaic E March 9, 2012, 1:19 p.m. OK GNU C++0x TESTS 35 220 11878400 2100
15405414 fengsuiyan E Jan. 16, 2016, 3:10 p.m. OK GNU C++11 TESTS 35 46 5836800 2100
57902370 lopare E July 28, 2019, 4:12 p.m. OK GNU C++11 TESTS 35 62 2662400 2100
57822929 py_ultron E July 27, 2019, 1 a.m. OK GNU C++11 TESTS 35 62 2662400 2100
10505742 FilipVesovic E March 28, 2015, 6:12 p.m. OK GNU C++11 TESTS 35 62 2662400 2100
18866328 lungly1 E July 3, 2016, 10:46 a.m. OK GNU C++11 TESTS 35 62 3174400 2100
22423611 sojiro_seta E Nov. 23, 2016, 1:07 p.m. OK GNU C++11 TESTS 35 62 4812800 2100
28349720 McGinn E July 7, 2017, 12:55 p.m. OK GNU C++11 TESTS 35 62 8806400 2100
17084247 freebsdx E April 1, 2016, 3:26 a.m. OK GNU C++11 TESTS 35 77 4915200 2100
22421665 De_La_Grandi_Mephstophls E Nov. 23, 2016, 11:15 a.m. OK GNU C++11 TESTS 35 78 9523200 2100
19547153 apoorv_kulsh E July 31, 2016, 10:52 p.m. OK GNU C++11 TESTS 35 93 7475200 2100
30990473 spj_29 E Oct. 4, 2017, 11:24 a.m. OK GNU C++14 TESTS 35 78 7270400 2100
26337450 joyfun E April 13, 2017, 12:54 p.m. OK GNU C++14 TESTS 35 78 8499200 2100
28576239 yashar_sb_sb E July 15, 2017, 2:49 p.m. OK GNU C++14 TESTS 35 78 9728000 2100
27830038 Coder_404 E June 16, 2017, 5:01 p.m. OK GNU C++14 TESTS 35 78 11673600 2100
33503486 karansiwach360 E Dec. 22, 2017, 11:22 a.m. OK GNU C++14 TESTS 35 93 9113600 2100
55830855 vjudge2 E June 20, 2019, 1:04 p.m. OK GNU C++14 TESTS 35 108 9011200 2100
65162940 baohiep E Nov. 16, 2019, 12:08 p.m. OK GNU C++14 TESTS 35 109 7987200 2100
29197181 Danial E Aug. 4, 2017, 2:55 p.m. OK GNU C++14 TESTS 35 109 11673600 2100
47262595 vjudge2 E Dec. 19, 2018, 1 p.m. OK GNU C++14 TESTS 35 109 17817600 2100
20923638 Motarack E Sept. 26, 2016, 11:12 a.m. OK GNU C++14 TESTS 35 124 12288000 2100
66217522 GioChkhaidze E Dec. 3, 2019, 9:34 a.m. OK GNU C++17 TESTS 35 78 10956800 2100
55852066 Error_404 E June 21, 2019, 4:39 a.m. OK GNU C++17 TESTS 35 93 7372800 2100
57369929 tnakao E July 20, 2019, 10:33 a.m. OK GNU C++17 TESTS 35 93 7475200 2100
52790069 nishank.suresh E April 15, 2019, 4:48 p.m. OK GNU C++17 TESTS 35 108 8192000 2100
55835314 vjudge5 E June 20, 2019, 3:03 p.m. OK GNU C++17 TESTS 35 108 11161600 2100
42850185 ruo E Sept. 14, 2018, 4:43 a.m. OK GNU C++17 TESTS 35 109 7065600 2100
54163989 sping128 E May 15, 2019, 7:51 a.m. OK GNU C++17 TESTS 35 109 8192000 2100
68469463 DomiKo E Jan. 9, 2020, 11:41 p.m. OK GNU C++17 TESTS 35 124 8192000 2100
55834143 vjudge3 E June 20, 2019, 2:32 p.m. OK GNU C++17 TESTS 35 124 10342400 2100
56059735 GeorgeRaouf E June 26, 2019, 4:29 a.m. OK GNU C++17 TESTS 35 124 11468800 2100
1326379 knok16 E March 9, 2012, 4:59 p.m. OK Java 6 TESTS 35 250 43520000 2100
1319829 chavit E March 9, 2012, 11:06 a.m. OK Java 6 TESTS 35 280 43417600 2100
1338319 fetetriste E March 10, 2012, 5:13 p.m. OK Java 6 TESTS 35 280 43724800 2100
1331655 taras.klaskovsky E March 10, 2012, 1:32 a.m. OK Java 6 TESTS 35 280 44032000 2100
2466146 Azat_Yusupov E Oct. 29, 2012, 9:58 a.m. OK Java 6 TESTS 35 281 512000 2100
1324504 ika E March 9, 2012, 3:10 p.m. OK Java 6 TESTS 35 300 43827200 2100
1337017 OgieKako E March 10, 2012, 12:34 p.m. OK Java 6 TESTS 35 310 43417600 2100
1327439 timurtibeyev E March 9, 2012, 6:01 p.m. OK Java 6 TESTS 35 330 43724800 2100
1350628 Lymphz E March 12, 2012, 7:17 a.m. OK Java 6 TESTS 35 340 57958400 2100
1326440 m.radwan E March 9, 2012, 5:03 p.m. OK Java 6 TESTS 35 360 43929600 2100
7014320 I_love_Malika E July 5, 2014, 6:59 a.m. OK Java 7 TESTS 35 171 409600 2100
8547960 qingwen E Nov. 4, 2014, 2:38 p.m. OK Java 7 TESTS 35 234 14336000 2100
1335449 alexey.enkov E March 10, 2012, 9:31 a.m. OK Java 7 TESTS 35 280 45158400 2100
2230035 jiangzhijie E Sept. 22, 2012, 3:13 p.m. OK Java 7 TESTS 35 343 59494400 2100
1340828 trickShuffle E March 11, 2012, 2:49 p.m. OK Java 7 TESTS 35 410 46080000 2100
1338766 yarrr E March 10, 2012, 7:17 p.m. OK Java 7 TESTS 35 520 97587200 2100
1338772 yarrr E March 10, 2012, 7:19 p.m. OK Java 7 TESTS 35 530 97587200 2100
1328786 GoomboCode E March 9, 2012, 7:34 p.m. OK Java 7 TESTS 35 560 84787200 2100
1338770 yarrr E March 10, 2012, 7:18 p.m. OK Java 7 TESTS 35 630 97587200 2100
1335442 nsmikhailov E March 10, 2012, 9:30 a.m. OK Java 7 TESTS 35 630 128307200 2100
25676843 pitfall E March 20, 2017, 9:14 p.m. OK Java 8 TESTS 35 373 39014400 2100
11406644 sweiss E June 3, 2015, 8:16 p.m. OK Java 8 TESTS 35 374 41267200 2100
42377039 hongquanntct E Sept. 2, 2018, 3:02 p.m. OK Java 8 TESTS 35 389 16076800 2100
10820859 alibaba E April 22, 2015, 10:05 a.m. OK Java 8 TESTS 35 452 44236800 2100
36775299 Kammola E March 31, 2018, 1:33 p.m. OK Java 8 TESTS 35 1216 89702400 2100
1331192 Quercitron E March 10, 2012, 12:02 a.m. OK Mono C# TESTS 35 380 30617600 2100
1333710 Sergey.Sviridov E March 10, 2012, 6:21 a.m. OK Mono C# TESTS 35 390 32153600 2100
1335996 ZuTa E March 10, 2012, 10:21 a.m. OK Mono C# TESTS 35 410 32972800 2100
1384234 Elun E March 21, 2012, 1:07 p.m. OK Mono C# TESTS 35 420 38400000 2100
1384262 Elun E March 21, 2012, 1:14 p.m. OK Mono C# TESTS 35 420 38400000 2100
1338026 Eugene E March 10, 2012, 3:53 p.m. OK Mono C# TESTS 35 550 35430400 2100
1336571 PVoLan E March 10, 2012, 11:29 a.m. OK Mono C# TESTS 35 560 49459200 2100
1332968 lgarcia E March 10, 2012, 5:05 a.m. OK Mono C# TESTS 35 750 39936000 2100
5205395 marat.snowbear E Nov. 24, 2013, 2:19 a.m. OK MS C# TESTS 35 904 22835200 2100
5205405 marat.snowbear E Nov. 24, 2013, 2:23 a.m. OK MS C# TESTS 35 936 22835200 2100
5205293 marat.snowbear E Nov. 24, 2013, 1:50 a.m. OK MS C# TESTS 35 966 19865600 2100
5205290 marat.snowbear E Nov. 24, 2013, 1:49 a.m. OK MS C# TESTS 35 998 18841600 2100
5205283 marat.snowbear E Nov. 24, 2013, 1:47 a.m. OK MS C# TESTS 35 1060 18841600 2100
5205261 marat.snowbear E Nov. 24, 2013, 1:42 a.m. OK MS C# TESTS 35 1092 18432000 2100
5205271 marat.snowbear E Nov. 24, 2013, 1:45 a.m. OK MS C# TESTS 35 1092 18636800 2100
6249774 Vlad_kv E April 3, 2014, 12:10 p.m. OK MS C++ TESTS 35 62 3584000 2100
1334224 kirill E March 10, 2012, 7:01 a.m. OK MS C++ TESTS 35 90 5529600 2100
1335543 NuM E March 10, 2012, 9:37 a.m. OK MS C++ TESTS 35 90 6860800 2100
1445071 Nomad E March 31, 2012, 2:27 a.m. OK MS C++ TESTS 35 90 8192000 2100
6511927 Mosyagin E April 30, 2014, 5:05 p.m. OK MS C++ TESTS 35 93 13721600 2100
16687063 ferc E March 13, 2016, 7:25 a.m. OK MS C++ TESTS 35 109 14848000 2100
1334631 ft.azadi E March 10, 2012, 7:30 a.m. OK MS C++ TESTS 35 110 5017600 2100
1445061 Nomad E March 31, 2012, 2:14 a.m. OK MS C++ TESTS 35 110 8192000 2100
1445066 Nomad E March 31, 2012, 2:17 a.m. OK MS C++ TESTS 35 110 8192000 2100
1445073 Nomad E March 31, 2012, 2:28 a.m. OK MS C++ TESTS 35 110 8192000 2100
61443559 aeternalis1 E Sept. 28, 2019, 7:53 p.m. OK PyPy 2 TESTS 35 1138 37376000 2100
15158599 _roCkY_ E Jan. 2, 2016, 12:59 p.m. OK Python 2 TESTS 35 1122 26316800 2100
1334283 neal E March 10, 2012, 7:04 a.m. OK Python 2 TESTS 35 1450 21299200 2100
1358615 neex.emil E March 15, 2012, 9:44 a.m. OK Python 2 TESTS 35 1470 28569600 2100
2107853 nightfade E Sept. 10, 2012, 4:37 a.m. OK Python 2 TESTS 35 1470 35737600 2100
1382739 mjf E March 20, 2012, 7:17 p.m. OK Python 2 TESTS 35 1670 32972800 2100
1334355 nwi E March 10, 2012, 7:09 a.m. OK Python 2 TESTS 35 1730 25292800 2100
2039564 nealzane E Aug. 21, 2012, 6:35 a.m. OK Python 2 TESTS 35 1750 27955200 2100
1358059 Mick E March 15, 2012, 2:10 a.m. OK Python 2 TESTS 35 1840 28262400 2100
57182325 sorry_im_smurfing E July 17, 2019, 7:39 a.m. OK Ruby TESTS 35 967 60416000 2100
35841012 ______n______ E March 2, 2018, 2:27 p.m. OK Ruby TESTS 35 1263 66867200 2100
35841011 ______u______ E March 2, 2018, 2:27 p.m. OK Ruby TESTS 35 1263 66867200 2100
35840680 _____i_____ E March 2, 2018, 2:21 p.m. OK Ruby TESTS 35 1263 66867200 2100
35840675 _____k_____ E March 2, 2018, 2:21 p.m. OK Ruby TESTS 35 1263 66867200 2100
35835779 ______k______ E March 2, 2018, 12:39 p.m. OK Ruby TESTS 35 1263 66867200 2100
35835753 ______h______ E March 2, 2018, 12:39 p.m. OK Ruby TESTS 35 1263 66867200 2100
35835546 ______i______ E March 2, 2018, 12:34 p.m. OK Ruby TESTS 35 1263 66867200 2100
35831510 ______M______ E March 2, 2018, 9:48 a.m. OK Ruby TESTS 35 1263 66867200 2100
1338411 watashi E March 10, 2012, 5:33 p.m. OK Ruby TESTS 35 2770 30515200 2100

remove filters

Back to search problems