Manthan, Codefest 18 (rated, Div. 1 + Div. 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
1037 Manthan, Codefest 18 (rated, Div. 1 + Div. 2) FINISHED False 7200 201626724 Sept. 2, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1053 ) H Security PROGRAMMING data structures string suffix structures 2900

B'Some programming website is establishing a secure communication protocol. For security reasons, they want to choose several more or less random strings. Initially, they have a string s consisting of lowercase English letters. Now they want to choose q strings using the following steps, and you are to help them. String a is lexicographically less than string b , if either a is a prefix of b and a ne b , or there exists such a position i ( 1 <= i <= min(|a|, |b|) ), such that a_i < b_i and for all j ( 1 <= j < i ) a_j = b_j . Here |a| denotes the length of the string a . The first line of input contains a non-empty string s ( 1 <= q |s| <= q 10^{5} ) consisting of lowercase English letters. The second line contains an integer q ( 1 <= q <= 2 cdot 10^5 ) -- the number of strings to select. Each of the next q lines contains two integers l , r ( 1 <= q l <= q r <= q |s| ) and a non-empty string x consisting of lowercase English letters. The total length of strings x for all queries does not exceed 2 cdot 10^{5} . Output q lines, each of them should contain the desired string or -1 , if there is no such string. Consider the first example. The string s is "baa". The queries are as follows. '...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
42416740 Adham74 H Sept. 3, 2018, 7:36 a.m. OK GNU C++ TESTS 88 202 10444800 2900
42445907 samjia2000 H Sept. 4, 2018, 3:15 a.m. OK GNU C++ TESTS 88 373 85504000 2900
42430356 rainy_season H Sept. 3, 2018, 2:31 p.m. OK GNU C++ TESTS 88 1169 305152000 2900
44757282 test616.cpp H Oct. 24, 2018, 4:04 a.m. OK GNU C++11 TESTS 88 124 31539200 2900
43513035 tritanngo99 H Sept. 28, 2018, 1:54 a.m. OK GNU C++11 TESTS 88 202 10240000 2900
43363273 Rabbicode H Sept. 24, 2018, 10:49 a.m. OK GNU C++11 TESTS 88 202 10240000 2900
43710503 optimum H Oct. 3, 2018, 3:16 a.m. OK GNU C++11 TESTS 88 202 10444800 2900
43710479 optimum H Oct. 3, 2018, 3:14 a.m. OK GNU C++11 TESTS 88 202 10444800 2900
44068628 luogu_bot3 H Oct. 10, 2018, 10:51 a.m. OK GNU C++11 TESTS 88 202 31641600 2900
44067675 mmmod_lqs H Oct. 10, 2018, 10:19 a.m. OK GNU C++11 TESTS 88 202 31641600 2900
42484581 CodeLeague H Sept. 5, 2018, 8:12 a.m. OK GNU C++11 TESTS 88 217 10240000 2900
47538522 AuqaKyz H Dec. 27, 2018, 5:04 a.m. OK GNU C++11 TESTS 88 217 78131200 2900
43710455 optimum H Oct. 3, 2018, 3:13 a.m. OK GNU C++11 TESTS 88 218 10444800 2900
44680225 NAMELESS H Oct. 22, 2018, 5:47 a.m. OK GNU C++14 TESTS 88 202 64921600 2900
44680205 NAMELESS H Oct. 22, 2018, 5:46 a.m. OK GNU C++14 TESTS 88 202 65331200 2900
42964984 tmwilliamlin168 H Sept. 16, 2018, 11:19 p.m. OK GNU C++14 TESTS 88 202 65331200 2900
42965008 tmwilliamlin168 H Sept. 16, 2018, 11:22 p.m. OK GNU C++14 TESTS 88 218 65331200 2900
42866304 tmwilliamlin168 H Sept. 14, 2018, 3:53 p.m. OK GNU C++14 TESTS 88 218 65331200 2900
43710349 optimum H Oct. 3, 2018, 3:07 a.m. OK GNU C++14 TESTS 88 233 10444800 2900
42461743 DEMOPON H Sept. 4, 2018, 1:56 p.m. OK GNU C++14 TESTS 88 233 10444800 2900
42442432 I_Love_gKseni H Sept. 3, 2018, 10:11 p.m. OK GNU C++14 TESTS 88 233 10444800 2900
43710372 optimum H Oct. 3, 2018, 3:09 a.m. OK GNU C++14 TESTS 88 234 10444800 2900
42964987 tmwilliamlin168 H Sept. 16, 2018, 11:19 p.m. OK GNU C++14 TESTS 88 234 65331200 2900
42695986 ReaLNero1 H Sept. 9, 2018, 7:11 a.m. OK GNU C++17 TESTS 88 202 2150400 2900
42441973 neal H Sept. 3, 2018, 9:36 p.m. OK GNU C++17 TESTS 88 202 2150400 2900
42991896 dacin21 H Sept. 17, 2018, 10:30 a.m. OK GNU C++17 TESTS 88 202 65331200 2900
61831108 sigma425 H Oct. 4, 2019, 6:35 a.m. OK GNU C++17 TESTS 88 218 25702400 2900
42994771 dacin21 H Sept. 17, 2018, 11:39 a.m. OK GNU C++17 TESTS 88 218 65331200 2900
46539311 doMkU56DP3NupVNjZXe8W8Gp H Dec. 3, 2018, 11:04 a.m. OK GNU C++17 TESTS 88 233 10444800 2900
43018397 Kelvzxu H Sept. 18, 2018, 2:08 a.m. OK GNU C++17 TESTS 88 233 65331200 2900
43710182 optimum H Oct. 3, 2018, 2:58 a.m. OK GNU C++17 TESTS 88 234 10444800 2900
43696664 optimum H Oct. 2, 2018, 4:44 p.m. OK GNU C++17 TESTS 88 234 10444800 2900
42435930 neal H Sept. 3, 2018, 5:23 p.m. OK GNU C++17 TESTS 88 249 2150400 2900
69010042 dalt H Jan. 18, 2020, 2:59 a.m. OK Java 8 TESTS 88 2323 103526400 2900
68778209 vjudge3 H Jan. 14, 2020, 2:07 p.m. OK MS C++ 2017 TESTS 88 436 434483200 2900
68859693 vjudge1 H Jan. 15, 2020, 11:41 a.m. OK MS C++ 2017 TESTS 88 451 434483200 2900
68775552 vjudge4 H Jan. 14, 2020, 1:19 p.m. OK MS C++ 2017 TESTS 88 514 298803200 2900
68748011 vjudge3 H Jan. 14, 2020, 5:35 a.m. OK MS C++ 2017 TESTS 88 514 298803200 2900

remove filters

Back to search problems