Manthan, Codefest 16

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
633 Manthan, Codefest 16 FINISHED False 9000 275316299 Feb. 26, 2016, 5:15 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2787 ) C Spy Syndrome 2 PROGRAMMING data structures dp hashing implementation sortings string suffix structures strings 1900

B'After observing the results of Spy Syndrome, Yash realised the errors of his ways. He now believes that a super spy such as Siddhant can 't use a cipher as basic and ancient as Caesar cipher. After many weeks of observation of Siddhant xe2 x80 x99s sentences, Yash determined a new cipher technique. For a given sentence, the cipher is processed as: For example, when this cipher is applied to the sentence Kira is childish and he hates losing the resulting string is ariksihsidlihcdnaehsetahgnisol Now Yash is given some ciphered string and a list of words. Help him to find out any original sentence composed using only words from the list. Note, that any of the given words could be used in the sentence multiple times. The first line of the input contains a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8910 xe2 x80 x89000) -- the length of the ciphered text. The second line consists of n lowercase English letters -- the ciphered text t. The third line contains a single integer m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100 xe2 x80 x89000) -- the number of words which will be considered while deciphering the text. Each of the next m lines contains a non-empty word wi (|wi| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891 xe2 x80 x89000) consisting of uppercase and lowercase English letters only. It 's guaranteed that the total length of all words doesn 't exceed 1 xe2 x80 x89000 xe2 x80 x89000. Print one line -- the original sentence. It is guaranteed that at least one solution exists. If there are multiple solutions, you may output any of those. In sample case 2 there may be multiple accepted outputs, "HI there HeLLo" and "HI there hello" you may output any of them. '...

Tutorials

Manthan, Codefest 16: Editorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
42601166 vjudge3 C Sept. 7, 2018, 4:49 a.m. OK Clang++17 Diagnostics TESTS 83 202 216473600 1900
42601213 vjudge2 C Sept. 7, 2018, 4:51 a.m. OK Clang++17 Diagnostics TESTS 83 218 216473600 1900
20630777 longNH.IT17 C Sept. 15, 2016, 3:24 a.m. OK FPC TESTS 83 139 151244800 1900
16375957 GiannisAntetokounmpo C Feb. 27, 2016, 8:19 a.m. OK FPC TESTS 83 217 261529600 1900
17161485 hrazvan C April 4, 2016, 5:16 p.m. OK GNU C TESTS 83 109 123494400 1900
16562202 teddytao18 C March 7, 2016, 8:48 a.m. OK GNU C TESTS 83 124 221081600 1900
24559135 rainboy C Feb. 9, 2017, 10:33 p.m. OK GNU C TESTS 83 202 166297600 1900
16372119 EKASMA C Feb. 27, 2016, 5:30 a.m. OK GNU C TESTS 83 265 130969600 1900
16397471 c-and-j C Feb. 28, 2016, 6:13 a.m. OK GNU C TESTS 83 343 2252800 1900
16473119 sgtlaugh C March 2, 2016, 8:37 p.m. OK GNU C TESTS 83 639 133324800 1900
16372991 sgtlaugh C Feb. 27, 2016, 6:11 a.m. OK GNU C TESTS 83 639 133324800 1900
16373565 sgtlaugh C Feb. 27, 2016, 6:37 a.m. OK GNU C TESTS 83 686 133324800 1900
19057893 The-Legend C July 12, 2016, 8:22 p.m. OK GNU C++ TESTS 83 46 122368000 1900
34651728 rabitandcabbage C Jan. 29, 2018, 6:14 a.m. OK GNU C++ TESTS 83 61 211763200 1900
16372266 hdu_justwe C Feb. 27, 2016, 5:36 a.m. OK GNU C++ TESTS 83 62 47820800 1900
16372894 hdu_justwe C Feb. 27, 2016, 6:07 a.m. OK GNU C++ TESTS 83 62 50278400 1900
16372449 hdu_justwe C Feb. 27, 2016, 5:44 a.m. OK GNU C++ TESTS 83 62 50278400 1900
16372120 hdu_justwe C Feb. 27, 2016, 5:30 a.m. OK GNU C++ TESTS 83 62 50278400 1900
16401014 klad2008 C Feb. 28, 2016, 10:23 a.m. OK GNU C++ TESTS 83 62 112332800 1900
34420140 maratonando3 C Jan. 21, 2018, 4:42 p.m. OK GNU C++ TESTS 83 62 114278400 1900
34348721 maratonando C Jan. 20, 2018, 10:35 a.m. OK GNU C++ TESTS 83 62 114278400 1900
16364695 nwi C Feb. 26, 2016, 6:53 p.m. OK GNU C++ TESTS 83 62 114483200 1900
16379701 determinism C Feb. 27, 2016, 10:45 a.m. OK GNU C++11 TESTS 83 62 5632000 1900
16398173 o_parmaksiz C Feb. 28, 2016, 7:18 a.m. OK GNU C++11 TESTS 83 62 5734400 1900
16379724 determinism C Feb. 27, 2016, 10:46 a.m. OK GNU C++11 TESTS 83 62 6451200 1900
16901064 Shurikenger C March 24, 2016, 5:29 a.m. OK GNU C++11 TESTS 83 62 7987200 1900
30651233 e19-un C Sept. 23, 2017, 6:28 p.m. OK GNU C++11 TESTS 83 62 112435200 1900
16372968 Carups C Feb. 27, 2016, 6:10 a.m. OK GNU C++11 TESTS 83 62 112844800 1900
18905099 Motarack C July 5, 2016, 5:28 p.m. OK GNU C++11 TESTS 83 62 113049600 1900
32999667 Slaaava C Dec. 7, 2017, 11:59 a.m. OK GNU C++11 TESTS 83 62 114483200 1900
18444003 yeezy C June 14, 2016, 5:53 a.m. OK GNU C++11 TESTS 83 62 115507200 1900
19588191 BogdanP C Aug. 2, 2016, 10:37 p.m. OK GNU C++11 TESTS 83 62 122265600 1900
30653233 Bassel C Sept. 23, 2017, 8:36 p.m. OK GNU C++14 TESTS 83 62 6144000 1900
30663033 chinmay0906 C Sept. 24, 2017, 10:41 a.m. OK GNU C++14 TESTS 83 62 6246400 1900
29369379 Wiz-Khalipha C Aug. 12, 2017, 5:47 a.m. OK GNU C++14 TESTS 83 62 8806400 1900
42248549 Marckess C Aug. 29, 2018, 4:52 p.m. OK GNU C++14 TESTS 83 62 112640000 1900
30626307 tommo C Sept. 22, 2017, 10:11 p.m. OK GNU C++14 TESTS 83 62 144793600 1900
32039314 victoragnez C Nov. 4, 2017, 12:11 a.m. OK GNU C++14 TESTS 83 62 221388800 1900
50785298 BanFcc C March 4, 2019, 1:05 p.m. OK GNU C++14 TESTS 83 77 111820800 1900
45176321 calabash_boy C Nov. 1, 2018, 2:54 p.m. OK GNU C++14 TESTS 83 77 121139200 1900
40387036 Mohammadreza_mz C July 15, 2018, 7:24 p.m. OK GNU C++14 TESTS 83 77 129126400 1900
43619752 Nimazare C Sept. 30, 2018, 6:27 p.m. OK GNU C++14 TESTS 83 77 177459200 1900
43094511 3agwa C Sept. 19, 2018, 9:36 p.m. OK GNU C++17 TESTS 83 61 5939200 1900
50044929 SSaken C Feb. 17, 2019, 5:16 a.m. OK GNU C++17 TESTS 83 77 112435200 1900
61766937 shuerss C Oct. 3, 2019, 8:55 a.m. OK GNU C++17 TESTS 83 77 113049600 1900
43681511 ivan100sic C Oct. 2, 2018, 10:26 a.m. OK GNU C++17 TESTS 83 77 116838400 1900
40627504 tusikalanse C July 22, 2018, 7:04 a.m. OK GNU C++17 TESTS 83 77 210124800 1900
45967346 fire_tornado C Nov. 19, 2018, 2:19 p.m. OK GNU C++17 TESTS 83 78 112742400 1900
64569700 AS.82 C Nov. 9, 2019, 8:45 a.m. OK GNU C++17 TESTS 83 78 135987200 1900
59807592 roll_no_1 C Aug. 31, 2019, 12:30 p.m. OK GNU C++17 TESTS 83 92 10137600 1900
53121379 vjudge3 C April 22, 2019, 11:31 a.m. OK GNU C++17 TESTS 83 92 177459200 1900
59806962 roll_no_1 C Aug. 31, 2019, 12:15 p.m. OK GNU C++17 TESTS 83 93 13619200 1900
16404427 alibaba C Feb. 28, 2016, 2:02 p.m. OK Java 7 TESTS 83 592 142336000 1900
18911458 aste C July 6, 2016, 4:32 a.m. OK Java 7 TESTS 83 623 16896000 1900
16372466 DukeOfYork C Feb. 27, 2016, 5:45 a.m. OK Java 7 TESTS 83 811 15667200 1900
19669129 wdungz C Aug. 6, 2016, 11:49 a.m. OK Java 7 TESTS 83 1809 300748800 1900
16397430 nitegazer C Feb. 28, 2016, 6:09 a.m. OK Java 7 TESTS 83 1824 46899200 1900
16638719 di_halt C March 10, 2016, 7:13 p.m. OK Java 8 TESTS 83 218 4403200 1900
16638663 di_halt C March 10, 2016, 7:07 p.m. OK Java 8 TESTS 83 249 4505600 1900
49072709 ViciousCoder C Jan. 27, 2019, 10:32 p.m. OK Java 8 TESTS 83 265 14131200 1900
31765907 tomdmitriev C Oct. 26, 2017, 5:12 p.m. OK Java 8 TESTS 83 342 32768000 1900
16484351 ilya-s C March 3, 2016, 2:48 p.m. OK Java 8 TESTS 83 390 183603200 1900
17472796 omarnvidia C April 23, 2016, 5:47 p.m. OK Java 8 TESTS 83 436 169164800 1900
17586056 Carson C April 29, 2016, 8:30 p.m. OK Java 8 TESTS 83 467 168857600 1900
16381968 ATailouloute C Feb. 27, 2016, 12:23 p.m. OK Java 8 TESTS 83 468 131276800 1900
16661813 zarsky C March 11, 2016, 9:36 p.m. OK Java 8 TESTS 83 468 146329600 1900
16450306 mikcorer C March 1, 2016, 5:02 p.m. OK Java 8 TESTS 83 468 151040000 1900
26894985 og.kostya C May 6, 2017, 6:58 a.m. OK MS C# TESTS 83 124 14540800 1900
16375622 fr0st C Feb. 27, 2016, 8:05 a.m. OK MS C# TESTS 83 935 147660800 1900
16403295 dilshodp C Feb. 28, 2016, 12:48 p.m. OK MS C++ TESTS 83 77 109772800 1900
16437679 tangshitao C March 1, 2016, 8:27 a.m. OK MS C++ TESTS 83 78 117145600 1900
45233996 vjudge4 C Nov. 3, 2018, 8:26 a.m. OK MS C++ TESTS 83 78 213606400 1900
16421356 TonySnark C Feb. 29, 2016, 6:13 a.m. OK MS C++ TESTS 83 93 112742400 1900
16369078 claus_spb C Feb. 26, 2016, 7:37 p.m. OK MS C++ TESTS 83 124 6553600 1900
16425973 Mosyagin C Feb. 29, 2016, 12:43 p.m. OK MS C++ TESTS 83 124 112947200 1900
16397412 Awa149 C Feb. 28, 2016, 6:08 a.m. OK MS C++ TESTS 83 124 113049600 1900
24956723 AleksanderBalobanov C Feb. 24, 2017, 6:51 a.m. OK MS C++ TESTS 83 139 144896000 1900
46110413 Volpe C Nov. 23, 2018, 11:55 a.m. OK MS C++ TESTS 83 140 14540800 1900
16396593 iblacksun C Feb. 28, 2016, 4:31 a.m. OK MS C++ TESTS 83 140 112844800 1900
54145678 Dyadka_Dimka C May 14, 2019, 7:30 p.m. OK MS C++ 2017 TESTS 83 171 222003200 1900
53019257 eccoclass C April 19, 2019, 3:40 p.m. OK MS C++ 2017 TESTS 83 1778 12697600 1900
53019194 eccoclass C April 19, 2019, 3:38 p.m. OK MS C++ 2017 TESTS 83 1824 14336000 1900
16367179 LeCaRiBoU C Feb. 26, 2016, 7:19 p.m. OK Ocaml TESTS 83 452 131788800 1900
16404765 rsFalse C Feb. 28, 2016, 2:25 p.m. OK Perl TESTS 83 1107 58880000 1900
16382698 rsFalse C Feb. 27, 2016, 12:53 p.m. OK Perl TESTS 83 1123 58982400 1900
33363209 yugle7 C Dec. 17, 2017, 8:40 p.m. OK Python 3 TESTS 83 140 19353600 1900
16716413 orailly C March 14, 2016, 2:59 p.m. OK Python 3 TESTS 83 202 12083200 1900
42136342 Mk_Python_v1 C Aug. 27, 2018, 12:25 a.m. OK Python 3 TESTS 83 249 12185600 1900
19828214 andrey.starodubtsev C Aug. 12, 2016, 12:19 p.m. OK Python 3 TESTS 83 1216 168243200 1900
16374659 wrick C Feb. 27, 2016, 7:25 a.m. OK Scala TESTS 83 1513 61542400 1900
16513295 wrick C March 4, 2016, 10:51 a.m. OK Scala TESTS 83 1559 64409600 1900
16374858 wrick C Feb. 27, 2016, 7:34 a.m. OK Scala TESTS 83 1855 24780800 1900
16374485 wrick C Feb. 27, 2016, 7:17 a.m. OK Scala TESTS 83 1918 25190400 1900

remove filters

Back to search problems