MemSQL start[c]up Round 2 - online version

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
335 MemSQL start[c]up Round 2 - online version FINISHED False 10800 356273999 Aug. 3, 2013, 5 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2584 ) A Banana PROGRAMMING binary search constructive algorithms greedy 1500

B'Piegirl is buying stickers for a project. Stickers come on sheets, and each sheet of stickers contains exactly n stickers. Each sticker has exactly one character printed on it, so a sheet of stickers can be described by a string of length n. Piegirl wants to create a string s using stickers. She may buy as many sheets of stickers as she wants, and may specify any string of length n for the sheets, but all the sheets must be identical, so the string is the same for all sheets. Once she attains the sheets of stickers, she will take some of the stickers from the sheets and arrange (in any order) them to form s. Determine the minimum number of sheets she has to buy, and provide a string describing a possible sheet of stickers she should buy. The first line contains string s (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|s| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000), consisting of lowercase English characters only. The second line contains an integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000). On the first line, print the minimum number of sheets Piegirl has to buy. On the second line, print a string consisting of n lower case English characters. This string should describe a sheet of stickers that Piegirl can buy in order to minimize the number of sheets. If Piegirl cannot possibly form the string s, print instead a single line with the number -1. In the second example, Piegirl can order 3 sheets of stickers with the characters "nab". She can take characters "nab" from the first sheet, "na" from the second, and "a" from the third, and arrange them to from "banana".'...

Tutorials

MemSQL start[c]up Round 2 -- Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
4363079 IgorL A Aug. 28, 2013, 4:25 p.m. OK Delphi TESTS 55 30 102400 1500
4244296 Misha100896 A Aug. 8, 2013, 4:03 p.m. OK Delphi TESTS 55 30 102400 1500
4227091 AHTuTTuTyX A Aug. 4, 2013, 8:20 a.m. OK Delphi TESTS 55 30 102400 1500
4222425 Paramaribo A Aug. 3, 2013, 5:54 p.m. OK Delphi TESTS 55 30 102400 1500
4221631 KaiZeR A Aug. 3, 2013, 5:18 p.m. OK Delphi TESTS 55 30 102400 1500
4440057 ruban A Sept. 10, 2013, 5:24 p.m. OK Delphi TESTS 55 30 6451200 1500
4221504 EG0R A Aug. 3, 2013, 5:13 p.m. OK Delphi TESTS 55 62 0 1500
4232113 AleksanderBalobanov A Aug. 5, 2013, 8:10 a.m. OK Delphi TESTS 55 62 102400 1500
4224282 Artmem A Aug. 3, 2013, 7:45 p.m. OK Delphi TESTS 55 62 102400 1500
4240795 HammerTime A Aug. 7, 2013, 4:21 p.m. OK FPC TESTS 55 30 0 1500
4265304 Oryshych A Aug. 11, 2013, 10:30 a.m. OK FPC TESTS 55 30 307200 1500
4234784 stanislav1 A Aug. 5, 2013, 8:52 p.m. OK FPC TESTS 55 30 307200 1500
4224433 yyhslcj A Aug. 3, 2013, 7:56 p.m. OK FPC TESTS 55 30 307200 1500
4222697 wzbqwy A Aug. 3, 2013, 6:08 p.m. OK FPC TESTS 55 30 307200 1500
4222419 IMAN_GH A Aug. 3, 2013, 5:54 p.m. OK FPC TESTS 55 30 307200 1500
4222018 KarInori A Aug. 3, 2013, 5:35 p.m. OK FPC TESTS 55 30 307200 1500
4221386 Rubanenko A Aug. 3, 2013, 5:09 p.m. OK FPC TESTS 55 30 307200 1500
4221326 Um_nik A Aug. 3, 2013, 5:07 p.m. OK FPC TESTS 55 30 307200 1500
7278478 platina A July 28, 2014, 1:58 p.m. OK FPC TESTS 55 30 409600 1500
5128728 wwwwwww A Nov. 17, 2013, 3:07 a.m. OK GNU C TESTS 55 30 0 1500
4698792 xxTastyHypeBeast666xx A Oct. 7, 2013, 3:46 a.m. OK GNU C TESTS 55 30 0 1500
4244257 cpy A Aug. 8, 2013, 3:36 p.m. OK GNU C TESTS 55 30 0 1500
4221324 LayCurse A Aug. 3, 2013, 5:07 p.m. OK GNU C TESTS 55 30 0 1500
5128740 wwwwwww A Nov. 17, 2013, 3:11 a.m. OK GNU C TESTS 55 62 0 1500
4983979 genius.zhaoyi A Nov. 4, 2013, 6:22 a.m. OK GNU C TESTS 55 62 0 1500
17764407 ztl8702 A May 6, 2016, 3:36 p.m. OK GNU C TESTS 55 62 2048000 1500
4926369 Logsha A Oct. 29, 2013, 4:16 a.m. OK GNU C++ TESTS 55 15 0 1500
4911232 liuaohanjsj A Oct. 27, 2013, 9:47 a.m. OK GNU C++ TESTS 55 15 0 1500
38646589 vjudge1 A May 27, 2018, 3:51 a.m. OK GNU C++ TESTS 55 30 0 1500
19457423 vjudge2 A July 28, 2016, 8:31 a.m. OK GNU C++ TESTS 55 30 0 1500
19457192 vjudge3 A July 28, 2016, 8:18 a.m. OK GNU C++ TESTS 55 30 0 1500
19456823 vjudge4 A July 28, 2016, 7:57 a.m. OK GNU C++ TESTS 55 30 0 1500
19456784 vjudge5 A July 28, 2016, 7:55 a.m. OK GNU C++ TESTS 55 30 0 1500
18566220 Amirnasr A June 17, 2016, 9:23 p.m. OK GNU C++ TESTS 55 30 0 1500
16684086 alex20030190 A March 13, 2016, 2:48 a.m. OK GNU C++ TESTS 55 30 0 1500
16507561 zef A March 4, 2016, 2:28 a.m. OK GNU C++ TESTS 55 30 0 1500
9731676 win_ay39 A Feb. 5, 2015, 9:25 p.m. OK GNU C++0x TESTS 55 30 0 1500
9152921 hakobyan.tigran A Dec. 16, 2014, 3:21 p.m. OK GNU C++0x TESTS 55 30 0 1500
8953385 soda_beta A Dec. 3, 2014, 2:03 p.m. OK GNU C++0x TESTS 55 30 0 1500
8951586 Konoha A Dec. 3, 2014, 11:58 a.m. OK GNU C++0x TESTS 55 30 0 1500
7286955 kondranin A July 29, 2014, 5:35 p.m. OK GNU C++0x TESTS 55 30 0 1500
5499254 enrevol A Dec. 23, 2013, 10:11 p.m. OK GNU C++0x TESTS 55 30 0 1500
4816256 A_Le_K A Oct. 17, 2013, 7:39 p.m. OK GNU C++0x TESTS 55 30 0 1500
4542102 guest A Sept. 23, 2013, 12:25 p.m. OK GNU C++0x TESTS 55 30 0 1500
4331873 fuwutu A Aug. 24, 2013, 9:46 a.m. OK GNU C++0x TESTS 55 30 0 1500
4237405 khuongnd A Aug. 6, 2013, 3:07 p.m. OK GNU C++0x TESTS 55 30 0 1500
30767027 akram_samir A Sept. 27, 2017, 3:50 a.m. OK GNU C++11 TESTS 55 30 0 1500
30095727 bogdan10bos A Sept. 5, 2017, 9:39 a.m. OK GNU C++11 TESTS 55 30 0 1500
27686856 Dalgerok A June 9, 2017, 10:15 a.m. OK GNU C++11 TESTS 55 30 0 1500
27686628 AWCXV A June 9, 2017, 10 a.m. OK GNU C++11 TESTS 55 30 0 1500
27686599 vjudge4 A June 9, 2017, 9:58 a.m. OK GNU C++11 TESTS 55 30 0 1500
22518927 objectkuan A Nov. 27, 2016, 1:20 a.m. OK GNU C++11 TESTS 55 30 0 1500
22477290 objectkuan A Nov. 24, 2016, 6:50 p.m. OK GNU C++11 TESTS 55 30 0 1500
22424323 Andreea777 A Nov. 23, 2016, 1:42 p.m. OK GNU C++11 TESTS 55 30 0 1500
22050135 Kusika A Nov. 5, 2016, 7:17 a.m. OK GNU C++11 TESTS 55 30 0 1500
19299758 ITDOI A July 21, 2016, 10:27 a.m. OK GNU C++11 TESTS 55 30 0 1500
32000216 vjudge5 A Nov. 3, 2017, 7:41 a.m. OK GNU C++14 TESTS 55 30 0 1500
31317962 venkat1997 A Oct. 14, 2017, 4:34 p.m. OK GNU C++14 TESTS 55 30 0 1500
31272709 bu_galala A Oct. 13, 2017, 11:37 a.m. OK GNU C++14 TESTS 55 30 0 1500
31151155 Minnakhmetov A Oct. 8, 2017, 5:35 p.m. OK GNU C++14 TESTS 55 30 0 1500
30229073 plokmijn A Sept. 9, 2017, 3:36 p.m. OK GNU C++14 TESTS 55 30 0 1500
30021651 Noureldin_Khaled A Sept. 2, 2017, 10:51 p.m. OK GNU C++14 TESTS 55 30 0 1500
27523576 Momentaiii A June 2, 2017, 12:33 p.m. OK GNU C++14 TESTS 55 30 0 1500
21223093 slowrunner A Oct. 5, 2016, 11:20 p.m. OK GNU C++14 TESTS 55 30 102400 1500
30799640 Vercingetorix A Sept. 28, 2017, 9:01 a.m. OK GNU C++14 TESTS 55 30 204800 1500
30532309 MohammedBashar A Sept. 20, 2017, 1:43 a.m. OK GNU C++14 TESTS 55 30 204800 1500
51396383 H4Wk3ye A March 17, 2019, 4:48 a.m. OK GNU C++17 TESTS 55 30 102400 1500
62533803 Bleotiu A Oct. 13, 2019, 8:49 p.m. OK GNU C++17 TESTS 55 60 0 1500
62442069 Worg A Oct. 12, 2019, 7:59 p.m. OK GNU C++17 TESTS 55 60 0 1500
51859357 nongi A March 26, 2019, 12:30 p.m. OK GNU C++17 TESTS 55 60 204800 1500
51230324 Foxy662 A March 12, 2019, 3:54 p.m. OK GNU C++17 TESTS 55 60 204800 1500
49119949 Lipton_6 A Jan. 28, 2019, 6:45 p.m. OK GNU C++17 TESTS 55 60 409600 1500
58403078 Kirill_from_Kazan A Aug. 6, 2019, 6:50 p.m. OK GNU C++17 TESTS 55 60 16179200 1500
69604642 syndicate1337 A Jan. 27, 2020, 9:15 a.m. OK GNU C++17 TESTS 55 62 0 1500
69203074 deogu A Jan. 20, 2020, 5:10 p.m. OK GNU C++17 TESTS 55 62 0 1500
68335381 jignacioc A Jan. 6, 2020, 9:24 p.m. OK GNU C++17 TESTS 55 62 0 1500
21394873 nvanbenschoten A Oct. 13, 2016, 3:31 a.m. OK Go TESTS 55 30 4915200 1500
4225070 autotaker A Aug. 3, 2013, 10:18 p.m. OK Haskell TESTS 55 30 0 1500
4238587 cojna A Aug. 7, 2013, 3:44 a.m. OK Haskell TESTS 55 30 102400 1500
5785211 hrushikesh A Jan. 24, 2014, 1:23 p.m. OK Haskell TESTS 55 62 0 1500
4528932 DimsFromDergachy A Sept. 21, 2013, 9:15 a.m. OK Haskell TESTS 55 62 102400 1500
6352513 xiaowuc1 A April 14, 2014, 5:11 a.m. OK Java 6 TESTS 55 154 0 1500
4223005 hiukim A Aug. 3, 2013, 6:25 p.m. OK Java 6 TESTS 55 156 0 1500
4221980 coderbd A Aug. 3, 2013, 5:33 p.m. OK Java 6 TESTS 55 156 0 1500
4221487 Quelloquialism A Aug. 3, 2013, 5:12 p.m. OK Java 6 TESTS 55 156 0 1500
4221349 uwi A Aug. 3, 2013, 5:08 p.m. OK Java 6 TESTS 55 156 0 1500
6545461 irhkang A May 4, 2014, 3:44 p.m. OK Java 6 TESTS 55 156 0 1500
4317226 mkirsche A Aug. 20, 2013, 7:30 p.m. OK Java 6 TESTS 55 156 0 1500
8378456 marcose18 A Oct. 24, 2014, 2:30 p.m. OK Java 6 TESTS 55 184 0 1500
5823818 atubo A Jan. 28, 2014, 7:14 a.m. OK Java 6 TESTS 55 186 0 1500
4397603 lazzrov A Sept. 2, 2013, 2:22 p.m. OK Java 6 TESTS 55 186 0 1500
5611027 prantor A Jan. 3, 2014, 3:45 p.m. OK Java 7 TESTS 55 124 0 1500
6682828 wadissimo A May 22, 2014, 5:14 p.m. OK Java 7 TESTS 55 154 0 1500
6291119 danielfranco A April 7, 2014, 2:57 a.m. OK Java 7 TESTS 55 154 0 1500
4274904 vlaccsync A Aug. 13, 2013, 8:45 p.m. OK Java 7 TESTS 55 156 0 1500
10570197 LJH A April 4, 2015, 6:54 a.m. OK Java 7 TESTS 55 156 0 1500
7415073 uwi A Aug. 10, 2014, 4:29 p.m. OK Java 7 TESTS 55 156 0 1500
4534903 ffao A Sept. 22, 2013, 7:08 a.m. OK Java 7 TESTS 55 156 0 1500
4389962 ykg2910 A Aug. 31, 2013, 7:39 p.m. OK Java 7 TESTS 55 156 0 1500
4274999 nickbuelich A Aug. 13, 2013, 9:44 p.m. OK Java 7 TESTS 55 156 0 1500
4272925 Azat_Yusupov A Aug. 13, 2013, 10:09 a.m. OK Java 7 TESTS 55 156 0 1500
27186853 pitfall A May 17, 2017, 8:57 p.m. OK Java 8 TESTS 55 218 0 1500
9431260 AStepanov A Jan. 14, 2015, 6:32 p.m. OK Java 8 TESTS 55 218 0 1500
59674206 adeepgarg13 A Aug. 29, 2019, 5:23 p.m. OK Java 8 TESTS 55 218 0 1500
29105249 Ahmed_Anwar A Aug. 1, 2017, 3:29 p.m. OK Java 8 TESTS 55 218 20582400 1500
25013222 Kammola A Feb. 25, 2017, 1:12 p.m. OK Java 8 TESTS 55 218 20582400 1500
57172101 lebaur A July 17, 2019, 3:44 a.m. OK Java 8 TESTS 55 248 0 1500
57891738 Kimo_Fathy A July 28, 2019, 12:05 p.m. OK Java 8 TESTS 55 248 0 1500
57857706 Kimo_Fathy A July 27, 2019, 3:54 p.m. OK Java 8 TESTS 55 248 0 1500
57609238 LemonPudding A July 23, 2019, 7:39 p.m. OK Java 8 TESTS 55 248 0 1500
52512774 programbhavan A April 9, 2019, 1:31 a.m. OK Java 8 TESTS 55 248 0 1500
56843128 og.kostya A July 11, 2019, 12:25 p.m. OK Mono C# TESTS 55 154 3686400 1500
4228527 Dragonborn A Aug. 4, 2013, 1:56 p.m. OK MS C# TESTS 55 62 1228800 1500
4229964 eshkin_kot A Aug. 4, 2013, 9:05 p.m. OK MS C# TESTS 55 92 102400 1500
4222868 Guliash A Aug. 3, 2013, 6:17 p.m. OK MS C# TESTS 55 92 102400 1500
4222403 Cornelius A Aug. 3, 2013, 5:53 p.m. OK MS C# TESTS 55 92 921600 1500
4324865 mylifefordota A Aug. 22, 2013, 4:16 p.m. OK MS C# TESTS 55 124 53248000 1500
5895254 M.Mahdi A Feb. 4, 2014, 12:55 p.m. OK MS C++ TESTS 55 30 0 1500
15226025 step_by_step A Jan. 7, 2016, 2:12 p.m. OK MS C++ TESTS 55 30 0 1500
14168073 _atanu A Nov. 9, 2015, 10:04 a.m. OK MS C++ TESTS 55 30 0 1500
14168023 _atanu A Nov. 9, 2015, 9:56 a.m. OK MS C++ TESTS 55 30 0 1500
10569772 super100pig A April 4, 2015, 5:51 a.m. OK MS C++ TESTS 55 30 0 1500
5895474 PAP A Feb. 4, 2014, 1:16 p.m. OK MS C++ TESTS 55 30 0 1500
5739010 Vlad_kv A Jan. 19, 2014, 8:57 a.m. OK MS C++ TESTS 55 30 0 1500
5457122 k1nval A Dec. 17, 2013, 7:05 p.m. OK MS C++ TESTS 55 30 0 1500
5171286 lihaitao A Nov. 20, 2013, 5:25 a.m. OK MS C++ TESTS 55 30 0 1500
5082719 serglag A Nov. 13, 2013, 9:05 a.m. OK MS C++ TESTS 55 30 0 1500
4228934 Basement_Cat A Aug. 4, 2013, 4:04 p.m. OK Perl TESTS 55 92 1433600 1500
25563654 Arpa A March 17, 2017, 4:12 a.m. OK PHP TESTS 55 124 6041600 1500
66206649 qbao_asdasd A Dec. 3, 2019, 3:37 a.m. OK PyPy 3 TESTS 55 280 1228800 1500
58478040 incenger A Aug. 9, 2019, 4 a.m. OK PyPy 3 TESTS 55 312 1331200 1500
4241347 Lebesgue A Aug. 7, 2013, 11:11 p.m. OK Python 2 TESTS 55 92 0 1500
4240619 lovefly1983 A Aug. 7, 2013, 3:15 p.m. OK Python 2 TESTS 55 92 0 1500
4230237 nealzane A Aug. 5, 2013, 12:08 a.m. OK Python 2 TESTS 55 92 0 1500
4229250 QuantumKnight A Aug. 4, 2013, 5:32 p.m. OK Python 2 TESTS 55 92 0 1500
4228109 Luxo A Aug. 4, 2013, 12:22 p.m. OK Python 2 TESTS 55 92 0 1500
4227925 chris A Aug. 4, 2013, 11:47 a.m. OK Python 2 TESTS 55 92 0 1500
4227505 Caiych A Aug. 4, 2013, 10:22 a.m. OK Python 2 TESTS 55 92 0 1500
4284938 bsrkaditya A Aug. 16, 2013, 4:03 a.m. OK Python 2 TESTS 55 92 0 1500
4275019 sukunrt A Aug. 13, 2013, 9:54 p.m. OK Python 2 TESTS 55 92 0 1500
4270944 obag A Aug. 12, 2013, 10:25 p.m. OK Python 2 TESTS 55 92 0 1500
4225570 jasperH A Aug. 4, 2013, 1:31 a.m. OK Python 3 TESTS 55 92 0 1500
4222020 Sergiu A Aug. 3, 2013, 5:35 p.m. OK Python 3 TESTS 55 124 0 1500
5361543 yugle7 A Dec. 6, 2013, 3:41 p.m. OK Python 3 TESTS 55 124 0 1500
4399140 mlaw0 A Sept. 2, 2013, 11:56 p.m. OK Python 3 TESTS 55 124 0 1500
4223332 ilya.korovin A Aug. 3, 2013, 6:47 p.m. OK Python 3 TESTS 55 124 0 1500
4221450 komarov A Aug. 3, 2013, 5:11 p.m. OK Python 3 TESTS 55 124 0 1500
12993919 orailly A Sept. 14, 2015, 9:39 a.m. OK Python 3 TESTS 55 124 409600 1500
48184018 incenger A Jan. 10, 2019, 2:02 p.m. OK Python 3 TESTS 55 218 0 1500
41984211 Mk_Python_v1 A Aug. 23, 2018, 4:47 a.m. OK Python 3 TESTS 55 218 0 1500
62639828 cameliapatilea A Oct. 15, 2019, 5:50 p.m. OK Python 3 TESTS 55 248 0 1500
5096406 cielavenir A Nov. 14, 2013, 10:49 a.m. OK Ruby TESTS 55 92 102400 1500
5096368 cielavenir A Nov. 14, 2013, 10:44 a.m. OK Ruby TESTS 55 92 102400 1500
4223563 stas_sl A Aug. 3, 2013, 7 p.m. OK Ruby TESTS 55 92 102400 1500
35860360 ______n______ A March 2, 2018, 9:39 p.m. OK Ruby TESTS 55 124 6451200 1500
35860338 ______u______ A March 2, 2018, 9:39 p.m. OK Ruby TESTS 55 124 6451200 1500
35859948 _____i_____ A March 2, 2018, 9:31 p.m. OK Ruby TESTS 55 124 6451200 1500
35859871 _____k_____ A March 2, 2018, 9:29 p.m. OK Ruby TESTS 55 124 6451200 1500
35856192 ______h______ A March 2, 2018, 8:15 p.m. OK Ruby TESTS 55 124 6451200 1500
35856147 ______k______ A March 2, 2018, 8:15 p.m. OK Ruby TESTS 55 124 6451200 1500
35855788 ______i______ A March 2, 2018, 8:07 p.m. OK Ruby TESTS 55 124 6451200 1500
4222025 limed A Aug. 3, 2013, 5:36 p.m. OK Scala TESTS 55 592 307200 1500

remove filters

Back to search problems