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 |
|---|---|---|---|---|---|---|
| 774 | VK Cup 2017 - Wild Card Round 1 | FINISHED | False | 7200 | 285085485 | April 5, 2017, 3:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 276 ) | H | Repairing Of String | PROGRAMMING | *special constructive algorithms | 2400 |
Stepan had a favorite string s which consisted of the lowercase letters of the Latin alphabet. After graduation, he decided to remember it, but it was a long time ago, so he can't now remember it. But Stepan remembers some information about the string, namely the sequence of integers c 1 , c 2 , ..., c n , where n equals the length of the string s , and c i equals the number of substrings in the string s with the length i , consisting of the same letters. The substring is a sequence of consecutive characters in the string s . For example, if the Stepan's favorite string is equal to " tttesst ", the sequence c looks like: c = 7, 3, 1, 0, 0, 0, 0 . Stepan asks you to help to repair his favorite string s according to the given sequence c 1 , c 2 , ..., c n . The first line contains the integer n ( 1 ≤ n ≤ 2000 ) — the length of the Stepan's favorite string. The second line contains the sequence of integers c 1 , c 2 , ..., c n ( 0 ≤ c i ≤ 2000 ), where c i equals the number of substrings of the string s with the length i , consisting of the same letters. It is guaranteed that the input data is such that the answer always exists. Print the repaired Stepan's favorite string. If there are several answers, it is allowed to print any of them. The string should contain only lowercase letters of the English alphabet. In the first test Stepan's favorite string, for example, can be the string " kkrrrq ", because it contains 6 substrings with the length 1 , consisting of identical letters (they begin in positions 1 , 2 , 3 , 4 , 5 and 6 ), 3 substrings with the length 2 , consisting of identical letters (they begin in positions 1 , 3 and 4 ), and 1 substring with the length 3 , consisting of identical letters (it begins in the position 3 ). |
| VK Cup 2017 — Уайлд-кард раунд 1 — Разбор |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 26150064 | irka1804 YtkaBTapkax | H | April 5, 2017, 4:21 p.m. | OK | FPC | TESTS | 44 | 15 | 1638400 | 2400 | |
| 26361758 | krijgertje | H | April 14, 2017, 4:06 p.m. | OK | FPC | TESTS | 44 | 15 | 1945600 | 2400 | |
| 26231365 | _ShadowSong | H | April 9, 2017, 6:54 a.m. | OK | FPC | TESTS | 44 | 31 | 1638400 | 2400 | |
| 26152208 | Dron642 LeoSko | H | April 5, 2017, 4:48 p.m. | OK | FPC | TESTS | 44 | 31 | 1638400 | 2400 | |
| 26153470 | Efgen | H | April 5, 2017, 5:07 p.m. | OK | GNU C | TESTS | 44 | 15 | 1945600 | 2400 | |
| 26152431 | chdn AndrewB330 | H | April 5, 2017, 4:51 p.m. | OK | GNU C | TESTS | 44 | 15 | 1945600 | 2400 | |
| 26186756 | biltharesatyendra | H | April 7, 2017, 8:03 a.m. | OK | GNU C | TESTS | 44 | 15 | 2150400 | 2400 | |
| 26154492 | StarScreamOwl ednotdead | H | April 5, 2017, 5:22 p.m. | OK | GNU C++ | TESTS | 44 | 15 | 2150400 | 2400 | |
| 35772220 | nevgen | H | Feb. 27, 2018, 6:38 p.m. | OK | GNU C11 | TESTS | 44 | 31 | 1843200 | 2400 | |
| 26153836 | Mem4ik RomanDerkach | H | April 5, 2017, 5:12 p.m. | OK | GNU C11 | TESTS | 44 | 31 | 1945600 | 2400 | |
| 34557704 | LoDThe | H | Jan. 25, 2018, 8:35 p.m. | OK | GNU C11 | TESTS | 44 | 46 | 1945600 | 2400 | |
| 26176747 | Soul_Full_Of_Thunder | H | April 6, 2017, 6:02 p.m. | OK | GNU C++11 | TESTS | 44 | 15 | 2048000 | 2400 | |
| 26152173 | vakita5572 Eagle_Owl | H | April 5, 2017, 4:47 p.m. | OK | GNU C++11 | TESTS | 44 | 15 | 2150400 | 2400 | |
| 26155354 | Tiko sparik | H | April 5, 2017, 5:33 p.m. | OK | GNU C++11 | TESTS | 44 | 15 | 2150400 | 2400 | |
| 26154001 | Starcall Xrite | H | April 5, 2017, 5:14 p.m. | OK | GNU C++11 | TESTS | 44 | 15 | 2150400 | 2400 | |
| 26191263 | Toxel | H | April 7, 2017, 11:31 a.m. | OK | GNU C++11 | TESTS | 44 | 15 | 2150400 | 2400 | |
| 40821301 | zhouyuyang | H | July 26, 2018, 11:53 p.m. | OK | GNU C++11 | TESTS | 44 | 31 | 0 | 2400 | |
| 64909999 | Binary_Search_Tree | H | Nov. 15, 2019, 2:26 a.m. | OK | GNU C++11 | TESTS | 44 | 31 | 819200 | 2400 | |
| 26166254 | terma | H | April 6, 2017, 9:55 a.m. | OK | GNU C++11 | TESTS | 44 | 31 | 2150400 | 2400 | |
| 64908692 | gsyz | H | Nov. 15, 2019, 1:07 a.m. | OK | GNU C++11 | TESTS | 44 | 31 | 3891200 | 2400 | |
| 64908669 | gsyz | H | Nov. 15, 2019, 1:06 a.m. | OK | GNU C++11 | TESTS | 44 | 31 | 3891200 | 2400 | |
| 26647786 | shauryachats | H | April 24, 2017, 7:22 p.m. | OK | GNU C++14 | TESTS | 44 | 15 | 1945600 | 2400 | |
| 26629083 | letsbe | H | April 23, 2017, 9:37 p.m. | OK | GNU C++14 | TESTS | 44 | 15 | 1945600 | 2400 | |
| 26155303 | Me-and-Myself zetilovn | H | April 5, 2017, 5:32 p.m. | OK | GNU C++14 | TESTS | 44 | 15 | 1945600 | 2400 | |
| 26154426 | Gewery wafemand | H | April 5, 2017, 5:21 p.m. | OK | GNU C++14 | TESTS | 44 | 15 | 1945600 | 2400 | |
| 35566888 | tun | H | Feb. 22, 2018, 7:32 a.m. | OK | GNU C++14 | TESTS | 44 | 15 | 1945600 | 2400 | |
| 34179647 | DarkKeks | H | Jan. 14, 2018, 3:59 p.m. | OK | GNU C++14 | TESTS | 44 | 15 | 1945600 | 2400 | |
| 34526251 | kefaa2 | H | Jan. 24, 2018, 6:45 p.m. | OK | GNU C++14 | TESTS | 44 | 15 | 1945600 | 2400 | |
| 36222534 | applese | H | March 12, 2018, 11:52 a.m. | OK | GNU C++14 | TESTS | 44 | 15 | 2048000 | 2400 | |
| 37835844 | kut_kjb1994 | H | May 2, 2018, 9:53 a.m. | OK | GNU C++14 | TESTS | 44 | 15 | 3379200 | 2400 | |
| 67315672 | zxyl | H | Dec. 21, 2019, 5:53 a.m. | OK | GNU C++14 | TESTS | 44 | 30 | 0 | 2400 | |
| 48547256 | GoldenLord | H | Jan. 18, 2019, 8:29 p.m. | OK | GNU C++17 | TESTS | 44 | 30 | 307200 | 2400 | |
| 45984787 | UoA_ZQC | H | Nov. 20, 2018, 5:35 a.m. | OK | GNU C++17 | TESTS | 44 | 31 | 0 | 2400 | |
| 57338574 | alirezasamimi100 | H | July 19, 2019, 5:19 p.m. | OK | GNU C++17 | TESTS | 44 | 31 | 0 | 2400 | |
| 46015034 | sheepmolester | H | Nov. 21, 2018, 2 a.m. | OK | GNU C++17 | TESTS | 44 | 31 | 0 | 2400 | |
| 47345344 | markotee | H | Dec. 21, 2018, 7:28 p.m. | OK | GNU C++17 | TESTS | 44 | 31 | 0 | 2400 | |
| 52509750 | Atreus | H | April 8, 2019, 9:24 p.m. | OK | GNU C++17 | TESTS | 44 | 31 | 2048000 | 2400 | |
| 35899367 | Faster | H | March 3, 2018, 6:33 p.m. | OK | Java 8 | TESTS | 44 | 171 | 21094400 | 2400 | |
| 36302663 | AdvancerMan | H | March 15, 2018, 1:26 p.m. | OK | Java 8 | TESTS | 44 | 202 | 21094400 | 2400 | |
| 26350177 | 6eJIa9IzZzTeHb | H | April 14, 2017, 4:22 a.m. | OK | JavaScript | TESTS | 44 | 31 | 6963200 | 2400 | |
| 40982700 | ReaLNero1 | H | July 30, 2018, 6:32 p.m. | OK | Mono C# | TESTS | 44 | 77 | 3686400 | 2400 | |
| 26154591 | victor_kzk MaDCaT | H | April 5, 2017, 5:23 p.m. | OK | Mono C# | TESTS | 44 | 77 | 11468800 | 2400 | |
| 26154187 | pine3 coq | H | April 5, 2017, 5:17 p.m. | OK | Mono C# | TESTS | 44 | 77 | 11571200 | 2400 | |
| 26153917 | mour pholin | H | April 5, 2017, 5:13 p.m. | OK | MS C# | TESTS | 44 | 62 | 11571200 | 2400 | |
| 26198617 | aleex | H | April 7, 2017, 4:19 p.m. | OK | MS C# | TESTS | 44 | 62 | 11571200 | 2400 | |
| 26257558 | MuRoD | H | April 10, 2017, 4:09 p.m. | OK | MS C# | TESTS | 44 | 77 | 14336000 | 2400 | |
| 68119486 | conjecture_xyz | H | Jan. 3, 2020, 12:45 p.m. | OK | PyPy 3 | TESTS | 44 | 155 | 1843200 | 2400 | |
| 57784283 | VladProg | H | July 26, 2019, 7:10 a.m. | OK | PyPy 3 | TESTS | 44 | 155 | 2457600 | 2400 | |
| 26152846 | rickya maxxaon | H | April 5, 2017, 4:57 p.m. | OK | Python 3 | TESTS | 44 | 62 | 5632000 | 2400 | |
| 49496513 | chinmay0906 | H | Feb. 5, 2019, 1:08 p.m. | OK | Python 3 | TESTS | 44 | 108 | 204800 | 2400 | |
| 68002747 | Yuki726 | H | Dec. 31, 2019, 11:42 a.m. | OK | Python 3 | TESTS | 44 | 967 | 307200 | 2400 | |
| 26155313 | OMS | H | April 5, 2017, 5:33 p.m. | OK | Python 3 | TESTS | 44 | 1185 | 5734400 | 2400 |
Back to search problems