VK Cup 2018 - Квалификация 1

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
928 VK Cup 2018 - Квалификация 1 FINISHED False 86400 256919123 Feb. 24, 2018, 3:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 831 ) D Autocompletion PROGRAMMING *special strings trees 2400

Arcady is a copywriter. His today's task is to type up an already well-designed story using his favorite text editor. Arcady types words, punctuation signs and spaces one after another. Each letter and each sign (including line feed) requires one keyboard click in order to be printed. Moreover, when Arcady has a non-empty prefix of some word on the screen, the editor proposes a possible autocompletion for this word, more precisely one of the already printed words such that its prefix matches the currently printed prefix if this word is unique. For example, if Arcady has already printed « codeforces », « coding » and « codeforces » once again, then there will be no autocompletion attempt for « cod », but if he proceeds with « code », the editor will propose « codeforces ». With a single click Arcady can follow the editor's proposal, i.e. to transform the current prefix to it. Note that no additional symbols are printed after the autocompletion (no spaces, line feeds, etc). What is the minimum number of keyboard clicks Arcady has to perform to print the entire text, if he is not allowed to move the cursor or erase the already printed symbols? A word here is a contiguous sequence of latin letters bordered by spaces, punctuation signs and line/text beginnings/ends. Arcady uses only lowercase letters. For example, there are 20 words in « it's well-known that tic-tac-toe is a paper-and-pencil game for two players, x and o. ». The only line contains Arcady's text, consisting only of lowercase latin letters, spaces, line feeds and the following punctuation signs: « . », « , », « ? », « ! », « ' » and « - ». The total amount of symbols doesn't exceed 3·10 5 . It's guaranteed that all lines are non-empty. Print a single integer — the minimum number of clicks. In sample case one it's optimal to use autocompletion for the first instance of « snowboarding » after typing up « sn » and for the second instance of « snowboarding » after typing up « snowb ». This will save

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
35657329 FalseMirror Ekler D Feb. 24, 2018, 6:39 p.m. OK D TESTS 36 93 104550400 2400
35674901 iSerya boddiul D Feb. 25, 2018, 10:04 a.m. OK FPC TESTS 36 62 40448000 2400
35658519 danymalets D Feb. 24, 2018, 7:23 p.m. OK GNU C++ TESTS 36 30 35942400 2400
35667758 chenyx2001 D Feb. 25, 2018, 4:24 a.m. OK GNU C++ TESTS 36 31 37068800 2400
35660520 loorke RccHD D Feb. 24, 2018, 8:29 p.m. OK GNU C++ TESTS 36 46 96460800 2400
35766599 and_lvov_sky D Feb. 27, 2018, 3:02 p.m. OK GNU C++ TESTS 36 61 21811200 2400
35764992 Dima5879 D Feb. 27, 2018, 2:10 p.m. OK GNU C++ TESTS 36 61 24678400 2400
35764911 Dima5879 D Feb. 27, 2018, 2:07 p.m. OK GNU C++ TESTS 36 61 24678400 2400
35679300 neither q707185547 D Feb. 25, 2018, 12:37 p.m. OK GNU C++ TESTS 36 61 35430400 2400
35765149 Awelless D Feb. 27, 2018, 2:15 p.m. OK GNU C++ TESTS 36 62 24678400 2400
35684124 kturishev D Feb. 25, 2018, 2:55 p.m. OK GNU C++ TESTS 36 78 23859200 2400
35659953 SuperVictor gremlin97 D Feb. 24, 2018, 8:08 p.m. OK GNU C++ TESTS 36 93 55705600 2400
35712933 Vladyslav D Feb. 25, 2018, 8:56 p.m. OK GNU C++11 TESTS 36 15 37273600 2400
35664521 mr_justadog brights1de D Feb. 25, 2018, 12:06 a.m. OK GNU C++11 TESTS 36 15 39116800 2400
35685389 radioegor146 D Feb. 25, 2018, 3:28 p.m. OK GNU C++11 TESTS 36 30 41267200 2400
35677571 taxicoo D Feb. 25, 2018, 11:46 a.m. OK GNU C++11 TESTS 36 31 35840000 2400
35779230 Dmit_riy D Feb. 28, 2018, 8:59 a.m. OK GNU C++11 TESTS 36 31 38400000 2400
35683921 Andrew_Makar BigBag D Feb. 25, 2018, 2:50 p.m. OK GNU C++11 TESTS 36 31 38912000 2400
35729509 Apelsin234 D Feb. 26, 2018, 11:24 a.m. OK GNU C++11 TESTS 36 31 39014400 2400
35675108 KORZINA kmekhovich D Feb. 25, 2018, 10:13 a.m. OK GNU C++11 TESTS 36 31 39014400 2400
35709575 RccHD D Feb. 25, 2018, 7:14 p.m. OK GNU C++11 TESTS 36 31 48537600 2400
35709246 RccHD D Feb. 25, 2018, 6:25 p.m. OK GNU C++11 TESTS 36 31 48947200 2400
35683994 K_Y_M_bl_C OTTEBROT D Feb. 25, 2018, 2:52 p.m. OK GNU C++14 TESTS 36 15 48742400 2400
35664919 AllCatsAreBeautiful arsijo D Feb. 25, 2018, 12:38 a.m. OK GNU C++14 TESTS 36 30 36147200 2400
35678602 itukh Eran D Feb. 25, 2018, 12:17 p.m. OK GNU C++14 TESTS 36 30 37580800 2400
36036615 E-Maks D March 7, 2018, 8:06 a.m. OK GNU C++14 TESTS 36 30 38297600 2400
35682780 albert96 harhrayr D Feb. 25, 2018, 2:15 p.m. OK GNU C++14 TESTS 36 30 43417600 2400
35738622 MazyCrazy D Feb. 26, 2018, 4:33 p.m. OK GNU C++14 TESTS 36 31 36044800 2400
35660158 sinesight SpyCheese D Feb. 24, 2018, 8:16 p.m. OK GNU C++14 TESTS 36 31 36659200 2400
35681392 rui-de Snezhok D Feb. 25, 2018, 1:36 p.m. OK GNU C++14 TESTS 36 31 36761600 2400
35664524 FallenTurret D Feb. 25, 2018, 12:06 a.m. OK GNU C++14 TESTS 36 31 36864000 2400
35699001 SendThemToHell D Feb. 25, 2018, 5:01 p.m. OK GNU C++14 TESTS 36 31 36966400 2400
35814816 S_o_T D March 1, 2018, 3:22 p.m. OK GNU C++17 TESTS 36 31 14028800 2400
35656174 ilyausmanov lelkok220 D Feb. 24, 2018, 5:59 p.m. OK GNU C++17 TESTS 36 31 35635200 2400
35700235 GooYap D Feb. 25, 2018, 5:08 p.m. OK GNU C++17 TESTS 36 31 41369600 2400
35660592 ShJ D Feb. 24, 2018, 8:32 p.m. OK GNU C++17 TESTS 36 31 59494400 2400
52805733 despair D April 16, 2019, 4:12 a.m. OK GNU C++17 TESTS 36 46 35225600 2400
35684201 Minnakhmetov GorosheK D Feb. 25, 2018, 2:57 p.m. OK GNU C++17 TESTS 36 46 36556800 2400
60698504 Phortox D Sept. 16, 2019, 9:17 p.m. OK GNU C++17 TESTS 36 46 36864000 2400
48043401 chinmay0906 D Jan. 6, 2019, 10:12 p.m. OK GNU C++17 TESTS 36 46 37376000 2400
35661755 Rudy358 I_Love_Tina D Feb. 24, 2018, 9:20 p.m. OK GNU C++17 TESTS 36 46 40652800 2400
35702296 GooYap D Feb. 25, 2018, 5:22 p.m. OK GNU C++17 TESTS 36 46 41164800 2400
36274436 just806me D March 14, 2018, 12:06 p.m. OK Go TESTS 36 343 84377600 2400
35684369 nepoklonov ark1 D Feb. 25, 2018, 3:02 p.m. OK Java 8 TESTS 36 202 20787200 2400
35853352 mxyarik D March 2, 2018, 7:15 p.m. OK Java 8 TESTS 36 202 63488000 2400
35853840 mxyarik D March 2, 2018, 7:27 p.m. OK Java 8 TESTS 36 218 63488000 2400
35657320 Good.Morning stormtrooper1859 D Feb. 24, 2018, 6:39 p.m. OK Java 8 TESTS 36 296 82432000 2400
35659691 NikitaMikhaylov Musin D Feb. 24, 2018, 8 p.m. OK Java 8 TESTS 36 311 77824000 2400
35684520 Regider Recognized D Feb. 25, 2018, 3:06 p.m. OK Java 8 TESTS 36 327 97894400 2400
35662755 Megabyte D Feb. 24, 2018, 10:15 p.m. OK Java 8 TESTS 36 327 100966400 2400
36437496 JessePinkman21 D March 20, 2018, 4:04 p.m. OK Java 8 TESTS 36 374 25804800 2400
35662984 Albert1401 antkhorin D Feb. 24, 2018, 10:27 p.m. OK Java 8 TESTS 36 374 99328000 2400
35681794 eFive Selentar D Feb. 25, 2018, 1:48 p.m. OK Java 8 TESTS 36 405 96460800 2400
35731252 vadimmm D Feb. 26, 2018, 12:21 p.m. OK Kotlin TESTS 36 186 82227200 2400
38648950 og.kostya D May 27, 2018, 6:39 a.m. OK Mono C# TESTS 36 77 23552000 2400
35668253 den59k goodmice D Feb. 25, 2018, 4:59 a.m. OK Mono C# TESTS 36 139 52019200 2400
35683981 kav128 D Feb. 25, 2018, 2:51 p.m. OK MS C# TESTS 36 187 56524800 2400
35673857 kaduk Literman D Feb. 25, 2018, 9:18 a.m. OK MS C# TESTS 36 202 63590400 2400
35702712 Kirundel D Feb. 25, 2018, 5:25 p.m. OK MS C# TESTS 36 997 79974400 2400
35835441 Andreasyan D March 2, 2018, 12:31 p.m. OK MS C++ TESTS 36 31 44339200 2400
35685359 AleksandraZh ZloyNegr D Feb. 25, 2018, 3:28 p.m. OK MS C++ TESTS 36 31 115302400 2400
35661808 MishaSm Sasha_Rom D Feb. 24, 2018, 9:22 p.m. OK MS C++ TESTS 36 46 43520000 2400
35680977 Mesrop Andreasyan D Feb. 25, 2018, 1:24 p.m. OK MS C++ TESTS 36 46 75366400 2400
36578356 Vadim_FAR D March 24, 2018, 3:03 p.m. OK MS C++ TESTS 36 77 62873600 2400
35811016 DeBudd D March 1, 2018, 12:20 p.m. OK MS C++ TESTS 36 78 27852800 2400
35744719 felix D Feb. 26, 2018, 8:15 p.m. OK MS C++ TESTS 36 78 28160000 2400
35677743 Murek179 gerind D Feb. 25, 2018, 11:52 a.m. OK MS C++ TESTS 36 93 43417600 2400
35674533 sand-martin miha715lev D Feb. 25, 2018, 9:49 a.m. OK MS C++ TESTS 36 109 46694400 2400
35683938 Bruce_Willis romech D Feb. 25, 2018, 2:50 p.m. OK MS C++ TESTS 36 109 52838400 2400
56710889 TOXait D July 8, 2019, 12:43 p.m. OK MS C++ 2017 TESTS 36 187 35840000 2400
42292195 ilya_ust D Aug. 30, 2018, 10:03 p.m. OK PyPy 3 TESTS 36 483 70963200 2400
35678874 Zooey sonya123 D Feb. 25, 2018, 12:25 p.m. OK PyPy 3 TESTS 36 998 87142400 2400
35656825 zidder altunyanv D Feb. 24, 2018, 6:22 p.m. OK Python 3 TESTS 36 592 48640000 2400
35727455 v.surahin D Feb. 26, 2018, 10:05 a.m. OK Python 3 TESTS 36 920 48844800 2400
42292190 ilya_ust D Aug. 30, 2018, 10:02 p.m. OK Python 3 TESTS 36 951 76492800 2400

remove filters

Back to search problems