VK Cup 2017 - Qualification 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
770 VK Cup 2017 - Qualification 2 FINISHED False 86400 248292024 March 11, 2017, noon

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1585 ) D Draw Brackets! PROGRAMMING *special implementation 1900

B'A sequence of square brackets is regular if by inserting symbols "+" and "1" into it, you can get a regular mathematical expression from it. For example, sequences "[[]][]", "[]" and "[[][[]]]" -- are regular, at the same time "][", "[[]" and "[[]]][" -- are irregular. Draw the given sequence using a minimalistic pseudographics in the strip of the lowest possible height -- use symbols '+ ', '- ' and '| '. For example, the sequence "[[][]][]" should be represented as: Each bracket should be represented with the hepl of one or more symbols '| ' (the vertical part) and symbols '+ ' and '- ' as on the example which is given above. Brackets should be drawn without spaces one by one, only dividing pairs of consecutive pairwise brackets with a single-space bar (so that the two brackets do not visually merge into one symbol). The image should have the minimum possible height. The enclosed bracket is always smaller than the surrounding bracket, but each bracket separately strives to maximize the height of the image. So the pair of final brackets in the example above occupies the entire height of the image. Study carefully the examples below, they adequately explain the condition of the problem. Pay attention that in this problem the answer (the image) is unique. The first line contains an even integer n (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100) -- the length of the sequence of brackets. The second line contains the sequence of brackets -- these are n symbols "[" and "]". It is guaranteed that the given sequence of brackets is regular. Print the drawn bracket sequence in the format which is given in the condition. Don 't print extra (unnecessary) spaces. '...

Tutorials

Tutorial of VK Cup 2017 Qualification Round 2

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
25425489 AmirGiz ivalsori D March 12, 2017, 6:38 a.m. OK Delphi TESTS 132 31 2867200 1900
25428133 AlexJokel D March 12, 2017, 8:38 a.m. OK FPC TESTS 132 15 1843200 1900
25429851 hot_dog Doshik D March 12, 2017, 9:40 a.m. OK FPC TESTS 132 15 1945600 1900
25419521 roma.tee.rt5 D March 11, 2017, 9:45 p.m. OK FPC TESTS 132 30 1740800 1900
25419452 roma.tee.rt4 D March 11, 2017, 9:41 p.m. OK FPC TESTS 132 30 1740800 1900
25490495 nikih.10 D March 15, 2017, 5:51 a.m. OK FPC TESTS 132 30 2764800 1900
25414519 radioegor146 D March 11, 2017, 5:57 p.m. OK FPC TESTS 132 30 2764800 1900
27156675 Timm27 D May 16, 2017, 10:19 a.m. OK FPC TESTS 132 31 102400 1900
25471202 OneDeilant D March 14, 2017, 11:12 a.m. OK FPC TESTS 132 31 1740800 1900
25441258 TheFata D March 12, 2017, 6:33 p.m. OK FPC TESTS 132 31 1740800 1900
25419605 roma.tee.rt6 D March 11, 2017, 9:50 p.m. OK FPC TESTS 132 31 1740800 1900
25428182 ivangood67 CloudStrife D March 12, 2017, 8:40 a.m. OK GNU C TESTS 132 15 1843200 1900
25413840 JorreS I_love_myself D March 11, 2017, 5:32 p.m. OK GNU C TESTS 132 15 1945600 1900
25719051 pandrei D March 22, 2017, 6:11 p.m. OK GNU C TESTS 132 15 1945600 1900
25719038 pandrei D March 22, 2017, 6:10 p.m. OK GNU C TESTS 132 15 1945600 1900
25696289 Towelie D March 21, 2017, 5:15 p.m. OK GNU C TESTS 132 15 1945600 1900
25420593 the_skinny_one D March 11, 2017, 11:11 p.m. OK GNU C TESTS 132 15 1945600 1900
25414658 onlyillusion D March 11, 2017, 6:02 p.m. OK GNU C TESTS 132 15 1945600 1900
25586230 LazyMist D March 17, 2017, 11:45 p.m. OK GNU C TESTS 132 15 2150400 1900
25430052 Demid5 Saint_Inquisitor D March 12, 2017, 9:48 a.m. OK GNU C TESTS 132 15 2150400 1900
25421880 regina_bzhnn griefer_Oleg D March 12, 2017, 1:46 a.m. OK GNU C TESTS 132 15 2150400 1900
27730140 AkaneSasu D June 12, 2017, 3:22 a.m. OK GNU C++ TESTS 132 15 0 1900
27689974 King_of_Paladins D June 9, 2017, 1:30 p.m. OK GNU C++ TESTS 132 15 0 1900
27422423 jiyutian D May 29, 2017, 3:10 a.m. OK GNU C++ TESTS 132 15 819200 1900
25417452 Nataly_Cod Nick_Brain D March 11, 2017, 8:03 p.m. OK GNU C++ TESTS 132 15 2048000 1900
25414679 vertrue aleksistoren D March 11, 2017, 6:03 p.m. OK GNU C++ TESTS 132 15 2048000 1900
25409189 Lobanov_VAVKO ogrin_knyaz D March 11, 2017, 2:55 p.m. OK GNU C++ TESTS 132 15 2048000 1900
25679154 suicca D March 21, 2017, 2:34 a.m. OK GNU C++ TESTS 132 15 2150400 1900
25444268 Tatebi D March 12, 2017, 10:19 p.m. OK GNU C++ TESTS 132 15 2150400 1900
25436386 HelenaBond D March 12, 2017, 2:02 p.m. OK GNU C++ TESTS 132 15 2150400 1900
25435189 deidzen D March 12, 2017, 1:07 p.m. OK GNU C++ TESTS 132 15 2150400 1900
25413091 nocomme007 Nya_Yasya D March 11, 2017, 5:05 p.m. OK GNU C11 TESTS 132 15 1843200 1900
30622427 Ealham D Sept. 22, 2017, 5:59 p.m. OK GNU C++11 TESTS 132 15 102400 1900
32055768 vjudge5 D Nov. 4, 2017, 2:19 p.m. OK GNU C++11 TESTS 132 15 102400 1900
29801343 CookiC D Aug. 26, 2017, 8:39 a.m. OK GNU C++11 TESTS 132 15 102400 1900
27066771 alex20030190 D May 13, 2017, 1:08 a.m. OK GNU C++11 TESTS 132 15 102400 1900
25408209 Vkvasnikov b1nary D March 11, 2017, 2:22 p.m. OK GNU C++11 TESTS 132 15 1843200 1900
25405546 FallDream ditoly D March 11, 2017, 12:59 p.m. OK GNU C++11 TESTS 132 15 1945600 1900
26678249 fange121 D April 26, 2017, 8:38 a.m. OK GNU C++11 TESTS 132 15 2048000 1900
25708038 PascalSo D March 22, 2017, 10:07 a.m. OK GNU C++11 TESTS 132 15 2048000 1900
25449579 Victor_Morozov D March 13, 2017, 8:38 a.m. OK GNU C++11 TESTS 132 15 2048000 1900
34066501 wolfpro D Jan. 10, 2018, 10:21 a.m. OK GNU C++11 TESTS 132 15 2048000 1900
30046747 Momentum D Sept. 4, 2017, 4:27 a.m. OK GNU C++14 TESTS 132 15 102400 1900
29838785 chien.than D Aug. 28, 2017, 5:09 a.m. OK GNU C++14 TESTS 132 15 102400 1900
29546234 yashar_sb_sb D Aug. 18, 2017, 8:24 a.m. OK GNU C++14 TESTS 132 15 102400 1900
32109547 Dar1us D Nov. 7, 2017, 4:14 a.m. OK GNU C++14 TESTS 132 15 102400 1900
29630516 SpeedOfMagic D Aug. 20, 2017, 9:09 p.m. OK GNU C++14 TESTS 132 15 204800 1900
27900802 asdor45 D June 19, 2017, 9:18 a.m. OK GNU C++14 TESTS 132 15 307200 1900
32327720 Heart_Blue D Nov. 15, 2017, 9:28 a.m. OK GNU C++14 TESTS 132 15 409600 1900
27173170 Timm27 D May 17, 2017, 6:10 a.m. OK GNU C++14 TESTS 132 15 1024000 1900
32073318 vika.votokina D Nov. 5, 2017, 10:25 a.m. OK GNU C++14 TESTS 132 15 1228800 1900
25432517 Yandex_ RB_33 D March 12, 2017, 11:12 a.m. OK GNU C++14 TESTS 132 15 1843200 1900
61033182 pierre5340 D Sept. 21, 2019, 6:32 p.m. OK GNU C++17 TESTS 132 31 0 1900
59708125 vjudge4 D Aug. 30, 2019, 1:32 p.m. OK GNU C++17 TESTS 132 31 0 1900
69093479 dsp_2503 D Jan. 19, 2020, 11:05 a.m. OK GNU C++17 TESTS 132 31 0 1900
50352590 fdironia D Feb. 23, 2019, 9:13 a.m. OK GNU C++17 TESTS 132 31 0 1900
44726056 Akel D Oct. 23, 2018, 8:04 a.m. OK GNU C++17 TESTS 132 31 0 1900
59783243 alif_cse_ju D Aug. 31, 2019, 4:27 a.m. OK GNU C++17 TESTS 132 31 0 1900
51444233 zx93 D March 18, 2019, 11:43 a.m. OK GNU C++17 TESTS 132 31 102400 1900
69261415 yura08 D Jan. 21, 2020, 5:10 p.m. OK GNU C++17 TESTS 132 31 102400 1900
38516392 KeyurJain D May 21, 2018, 6:57 p.m. OK GNU C++17 TESTS 132 31 102400 1900
69561020 Eldervald D Jan. 26, 2020, 10:37 a.m. OK GNU C++17 TESTS 132 31 204800 1900
25437906 vadimmm D March 12, 2017, 3:18 p.m. OK Haskell TESTS 132 15 44851200 1900
25434919 lokofan46 D March 12, 2017, 12:52 p.m. OK Java 8 TESTS 132 109 20377600 1900
25429121 nepoklonov ark1 D March 12, 2017, 9:15 a.m. OK Java 8 TESTS 132 109 20377600 1900
25429197 sms28 xDister D March 12, 2017, 9:17 a.m. OK Java 8 TESTS 132 109 20582400 1900
25443239 pitfall D March 12, 2017, 8:43 p.m. OK Java 8 TESTS 132 109 20582400 1900
25432067 E.Vakhitov pereb4ik D March 12, 2017, 10:54 a.m. OK Java 8 TESTS 132 109 20582400 1900
25429774 armoking IDzekh D March 12, 2017, 9:37 a.m. OK Java 8 TESTS 132 109 20582400 1900
25426949 KruppInTheSky ahmetov14 D March 12, 2017, 7:48 a.m. OK Java 8 TESTS 132 109 20582400 1900
25425318 Vbifial ScanNorOne D March 12, 2017, 6:29 a.m. OK Java 8 TESTS 132 109 20582400 1900
25420139 Lorderot D March 11, 2017, 10:27 p.m. OK Java 8 TESTS 132 109 20582400 1900
25416047 doreshnikov orz D March 11, 2017, 7:01 p.m. OK Java 8 TESTS 132 109 20582400 1900
25415587 vladislav805 longpoll D March 11, 2017, 6:39 p.m. OK JavaScript TESTS 132 31 5939200 1900
25414650 48683 D March 11, 2017, 6:02 p.m. OK JavaScript TESTS 132 31 8499200 1900
25429743 helmer gansterlord D March 12, 2017, 9:36 a.m. OK JavaScript TESTS 132 46 6246400 1900
25408568 UngvarPK D March 11, 2017, 2:34 p.m. OK JavaScript TESTS 132 46 7475200 1900
29090393 dened D Aug. 1, 2017, 6:59 a.m. OK Kotlin TESTS 132 124 21094400 1900
25423192 Qwert2603 D March 12, 2017, 3:56 a.m. OK Kotlin TESTS 132 187 21196800 1900
25433161 Cyber.1 D March 12, 2017, 11:32 a.m. OK Kotlin TESTS 132 202 22323200 1900
25423626 Meegoo RikeVoltz D March 12, 2017, 4:38 a.m. OK Kotlin TESTS 132 202 23040000 1900
25428942 Akane-chan Fox_hanter D March 12, 2017, 9:08 a.m. OK Mono C# TESTS 132 46 9830400 1900
25414919 Nikolay_Esaulkov CrazyPants D March 11, 2017, 6:14 p.m. OK Mono C# TESTS 132 62 11571200 1900
25412563 kavlad sdfr D March 11, 2017, 4:48 p.m. OK Mono C# TESTS 132 77 9113600 1900
25433084 obidaluiza D March 12, 2017, 11:29 a.m. OK Mono C# TESTS 132 108 11571200 1900
25431815 nikit0z74 D March 12, 2017, 10:45 a.m. OK Mono C# TESTS 132 108 11571200 1900
25826127 DEN_ik D March 26, 2017, 6:55 p.m. OK MS C# TESTS 132 46 9113600 1900
25428635 programmer_86 strafe D March 12, 2017, 8:55 a.m. OK MS C# TESTS 132 46 9113600 1900
25421807 Qwerty4Uiop justplesh D March 12, 2017, 1:39 a.m. OK MS C# TESTS 132 46 9318400 1900
25497913 Tatebi D March 15, 2017, 12:31 p.m. OK MS C# TESTS 132 46 9830400 1900
25424876 Timm27 Dimm27 D March 12, 2017, 6:04 a.m. OK MS C# TESTS 132 46 10035200 1900
25406163 _nffs vladimir_k D March 11, 2017, 1:17 p.m. OK MS C# TESTS 132 61 9113600 1900
25406790 av_life og.kostya D March 11, 2017, 1:37 p.m. OK MS C# TESTS 132 61 9113600 1900
25421568 Photographer maxkoshevoi D March 12, 2017, 1:13 a.m. OK MS C# TESTS 132 61 9113600 1900
25433770 golovozhop balalaika D March 12, 2017, 11:51 a.m. OK MS C# TESTS 132 61 9113600 1900
25425443 Olga333 D March 12, 2017, 6:35 a.m. OK MS C# TESTS 132 62 8908800 1900
25430593 ResQ mitch D March 12, 2017, 10:07 a.m. OK MS C++ TESTS 132 15 2048000 1900
25447072 miska924 D March 13, 2017, 5:17 a.m. OK MS C++ TESTS 132 15 2048000 1900
25437992 iamexist D March 12, 2017, 3:23 p.m. OK MS C++ TESTS 132 15 2048000 1900
25433490 Nadezhdin_Igor D March 12, 2017, 11:43 a.m. OK MS C++ TESTS 132 15 2048000 1900
25433430 innok96 katan D March 12, 2017, 11:41 a.m. OK MS C++ TESTS 132 15 2048000 1900
25433260 kokokozhina Pavs D March 12, 2017, 11:36 a.m. OK MS C++ TESTS 132 15 2048000 1900
25431509 falling_chair Abnormalize D March 12, 2017, 10:35 a.m. OK MS C++ TESTS 132 15 2048000 1900
25429726 slavikkom culebras D March 12, 2017, 9:35 a.m. OK MS C++ TESTS 132 15 2048000 1900
25427120 Jellu AnnaSUNna D March 12, 2017, 7:56 a.m. OK MS C++ TESTS 132 15 2048000 1900
25426068 novyzeli TheGrayCode D March 12, 2017, 7:07 a.m. OK MS C++ TESTS 132 15 2048000 1900
25409656 spectr0 forward32 D March 11, 2017, 3:12 p.m. OK Perl TESTS 132 46 2969600 1900
25407864 zaec D March 11, 2017, 2:11 p.m. OK PHP TESTS 132 31 6041600 1900
25469362 mayakin D March 14, 2017, 9:29 a.m. OK PHP TESTS 132 31 6860800 1900
25412528 hellman_ D March 11, 2017, 4:47 p.m. OK PyPy 2 TESTS 132 218 30720000 1900
31269154 jonelle D Oct. 13, 2017, 8:48 a.m. OK PyPy 3 TESTS 132 124 3686400 1900
25432375 Samael GS_a D March 12, 2017, 11:07 a.m. OK PyPy 3 TESTS 132 124 24268800 1900
25416869 irka1804 YtkaBTapkax D March 11, 2017, 7:36 p.m. OK PyPy 3 TESTS 132 265 30208000 1900
25421478 SuhanovPavel D March 12, 2017, 1:02 a.m. OK Python 2 TESTS 132 62 4710400 1900
25418847 Deathlok D March 11, 2017, 9:08 p.m. OK Python 2 TESTS 132 62 4710400 1900
25406895 Revolt D March 11, 2017, 1:40 p.m. OK Python 2 TESTS 132 62 4710400 1900
25405652 GoldenMan svetlana_lana D March 11, 2017, 1:02 p.m. OK Python 2 TESTS 132 62 4710400 1900
25430293 vsamotoy Hacked.Beat D March 12, 2017, 9:57 a.m. OK Python 2 TESTS 132 62 4812800 1900
25418955 mcwladkoe hackedBeat D March 11, 2017, 9:14 p.m. OK Python 2 TESTS 132 62 4812800 1900
25433747 NatusPro-NatusProMini D March 12, 2017, 11:51 a.m. OK Python 2 TESTS 132 62 4915200 1900
25433175 chessmaster44 D March 12, 2017, 11:33 a.m. OK Python 2 TESTS 132 62 4915200 1900
25439859 IvanSol D March 12, 2017, 5:12 p.m. OK Python 2 TESTS 132 62 5734400 1900
25409338 0x60 Romitas D March 11, 2017, 3 p.m. OK Python 2 TESTS 132 77 4608000 1900
31694484 yugle7 D Oct. 24, 2017, 9:35 p.m. OK Python 3 TESTS 132 61 5529600 1900
25428025 Gavaza_Konstantin_98 Glushen D March 12, 2017, 8:35 a.m. OK Python 3 TESTS 132 62 4608000 1900
25417762 ssor96 pylol D March 11, 2017, 8:16 p.m. OK Python 3 TESTS 132 62 4608000 1900
25433008 Pogrom artak D March 12, 2017, 11:27 a.m. OK Python 3 TESTS 132 62 4915200 1900
25432698 knkeer yhn112 D March 12, 2017, 11:17 a.m. OK Python 3 TESTS 132 62 4915200 1900
25430330 cleverhero KeltarHelviett D March 12, 2017, 9:58 a.m. OK Python 3 TESTS 132 62 4915200 1900
25429645 sachemmark konodyuk_ne D March 12, 2017, 9:31 a.m. OK Python 3 TESTS 132 62 4915200 1900
25429642 shoroh_cmc JacobGrig D March 12, 2017, 9:31 a.m. OK Python 3 TESTS 132 62 4915200 1900
25428620 passick yurboss D March 12, 2017, 8:55 a.m. OK Python 3 TESTS 132 62 4915200 1900
25427158 k0syan kantuni D March 12, 2017, 7:59 a.m. OK Python 3 TESTS 132 62 4915200 1900
25412552 aleki.dev delivron D March 11, 2017, 4:47 p.m. OK Rust TESTS 132 31 1536000 1900
32792169 ditsing D Nov. 29, 2017, 11:15 p.m. OK Rust TESTS 132 31 1843200 1900
25434793 byte D March 12, 2017, 12:46 p.m. OK Scala TESTS 132 311 24064000 1900

remove filters

Back to search problems