IndiaHacks 2016 - Online Edition (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
653 IndiaHacks 2016 - Online Edition (Div. 1 + Div. 2) FINISHED False 7200 278803463 March 19, 2016, 8:35 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1007 ) F Paper task PROGRAMMING data structures string suffix structures strings 2500

B'Alex was programming while Valentina (his toddler daughter) got there and started asking many questions about the round brackets (or parenthesis) in the code. He explained her a bit and when she got it he gave her a task in order to finish his code on time. For the purpose of this problem we consider only strings consisting of opening and closing round brackets, that is characters '( ' and ') '. The sequence of brackets is called correct if: For example, the sequences "()()" and "((()))(())" are correct, while ")(()", "(((((" and "())" are not. Alex took a piece of paper, wrote a string s consisting of brackets and asked Valentina to count the number of distinct non-empty substrings of s that are correct sequences of brackets. In other words, her task is to count the number of non-empty correct sequences of brackets that occur in a string s as a substring (don 't mix up with subsequences). When Valentina finished the task, Alex noticed he doesn 't know the answer. Help him don 't loose face in front of Valentina and solve the problem! The first line of the input contains an integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89500 xe2 x80 x89000) -- the length of the string s. The second line contains a string s of length n consisting of only '( ' and ') '. Print the number of distinct non-empty correct sequences that occur in s as substring. In the first sample, there are 5 distinct substrings we should count: "()", "()()", "()()()", "()()()()" and "()()()()()". In the second sample, there are 3 distinct substrings we should count: "()", "(())" and "(())()". '...

Tutorials

IndiaHacks Finals 2016 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
17387426 assassain F April 19, 2016, 1:13 p.m. OK GNU C++ TESTS 68 78 63180800 2500
16830289 GentleSmile F March 20, 2016, 3:08 a.m. OK GNU C++ TESTS 68 93 58880000 2500
17222340 darkranger F April 8, 2016, 6:34 a.m. OK GNU C++ TESTS 68 108 71372800 2500
17225255 3614zys F April 8, 2016, 11 a.m. OK GNU C++ TESTS 68 109 58675200 2500
40984690 ReaLNero1 F July 30, 2018, 7:31 p.m. OK GNU C++ TESTS 68 109 60928000 2500
16812308 RNS_JKS F March 19, 2016, 9:54 a.m. OK GNU C++ TESTS 68 156 61644800 2500
16812853 black_horse2014 F March 19, 2016, 10:03 a.m. OK GNU C++ TESTS 68 171 40960000 2500
16834405 lature F March 20, 2016, 8:28 a.m. OK GNU C++ TESTS 68 202 64307200 2500
16813359 jcvb F March 19, 2016, 10:11 a.m. OK GNU C++ TESTS 68 217 36147200 2500
17993226 yaoling1997 F May 19, 2016, 3:09 p.m. OK GNU C++ TESTS 68 233 136601600 2500
18985307 zzzzzfy F July 9, 2016, 12:04 p.m. OK GNU C++11 TESTS 68 77 61132800 2500
64758755 amr962 F Nov. 12, 2019, 6:06 p.m. OK GNU C++11 TESTS 68 93 38604800 2500
61952792 kimoyami F Oct. 6, 2019, 4:30 a.m. OK GNU C++11 TESTS 68 93 46694400 2500
16860898 bingo8788 F March 21, 2016, 5:19 p.m. OK GNU C++11 TESTS 68 108 58880000 2500
68974129 LJC00118 F Jan. 17, 2020, 8:10 a.m. OK GNU C++11 TESTS 68 109 39526400 2500
68425716 liqing F Jan. 9, 2020, 3:03 a.m. OK GNU C++11 TESTS 68 124 26521600 2500
54502887 WOSHIGEPACHONG2 F May 23, 2019, 12:25 a.m. OK GNU C++11 TESTS 68 140 35532800 2500
53820049 shaojianan F May 6, 2019, 12:40 p.m. OK GNU C++11 TESTS 68 140 35532800 2500
23533887 satashun F Jan. 4, 2017, 11:11 a.m. OK GNU C++11 TESTS 68 156 33894400 2500
62913591 Xones F Oct. 19, 2019, 8:04 a.m. OK GNU C++11 TESTS 68 156 53555200 2500
57001936 KwanghyunOn F July 14, 2019, 4:20 a.m. OK GNU C++14 TESTS 68 124 22630400 2500
55865706 qiyue F June 21, 2019, 12:02 p.m. OK GNU C++14 TESTS 68 124 61440000 2500
27712810 RNS_JKS F June 11, 2017, 12:15 a.m. OK GNU C++14 TESTS 68 139 39731200 2500
55865925 luogu_bot3 F June 21, 2019, 12:08 p.m. OK GNU C++14 TESTS 68 139 61440000 2500
48586106 mjhun F Jan. 19, 2019, 7:47 p.m. OK GNU C++14 TESTS 68 140 41267200 2500
29431359 glebushka98 F Aug. 13, 2017, 10:53 a.m. OK GNU C++14 TESTS 68 187 52633600 2500
25238032 qwnp F March 5, 2017, 9:08 a.m. OK GNU C++14 TESTS 68 202 50995200 2500
63651228 Ycircle F Oct. 28, 2019, 11:26 a.m. OK GNU C++14 TESTS 68 217 52838400 2500
37255044 akaiNeko F April 12, 2018, 3:31 p.m. OK GNU C++14 TESTS 68 217 97177600 2500
44465174 I_love_Y_UME F Oct. 18, 2018, 1:05 a.m. OK GNU C++14 TESTS 68 218 41574400 2500
59938470 RedNextCentury F Sept. 3, 2019, 10:28 a.m. OK GNU C++17 TESTS 68 155 43622400 2500
61703539 Anachor F Oct. 2, 2019, 9:19 a.m. OK GNU C++17 TESTS 68 389 77312000 2500
67742280 toi333 F Dec. 27, 2019, 4:27 p.m. OK GNU C++17 TESTS 68 451 105574400 2500
67718621 toi333 F Dec. 27, 2019, 3:13 p.m. OK GNU C++17 TESTS 68 452 105574400 2500
67715821 toi333 F Dec. 27, 2019, 3:06 p.m. OK GNU C++17 TESTS 68 452 105574400 2500
67696023 toi333 F Dec. 27, 2019, 12:56 p.m. OK GNU C++17 TESTS 68 467 105574400 2500
67698586 toi333 F Dec. 27, 2019, 1:44 p.m. OK GNU C++17 TESTS 68 468 105574400 2500
67697180 toi333 F Dec. 27, 2019, 1:17 p.m. OK GNU C++17 TESTS 68 482 105574400 2500
67723126 toi333 F Dec. 27, 2019, 3:24 p.m. OK GNU C++17 TESTS 68 483 105574400 2500
51234016 chinmay0906 F March 12, 2019, 5:40 p.m. OK GNU C++17 TESTS 68 499 55705600 2500
17126510 meowoo F April 2, 2016, 8:38 a.m. OK Haskell TESTS 68 1388 338124800 2500
16813126 mmaxio F March 19, 2016, 10:08 a.m. OK Java 8 TESTS 68 795 77619200 2500
32027975 tomdmitriev F Nov. 3, 2017, 5:28 p.m. OK Java 8 TESTS 68 967 122982400 2500
64385918 Ahmad F Nov. 6, 2019, 3:31 p.m. OK Java 8 TESTS 68 967 132403200 2500
16821422 k790alex F March 19, 2016, 2:31 p.m. OK Java 8 TESTS 68 1060 79564800 2500
18022715 ogbonnachibuoyim12 F May 21, 2016, 6:18 p.m. OK Java 8 TESTS 68 1107 79564800 2500
16851879 meijun F March 21, 2016, 8:11 a.m. OK Java 8 TESTS 68 1575 196710400 2500
16883459 meijun F March 23, 2016, 9:18 a.m. OK Java 8 TESTS 68 1715 253849600 2500
24578356 AleksanderBalobanov F Feb. 10, 2017, 9:06 p.m. OK MS C++ TESTS 68 1107 380211200 2500
24578339 AleksanderBalobanov F Feb. 10, 2017, 9:04 p.m. OK MS C++ TESTS 68 1138 380211200 2500
24578325 AleksanderBalobanov F Feb. 10, 2017, 9:03 p.m. OK MS C++ TESTS 68 1154 380211200 2500
24578310 AleksanderBalobanov F Feb. 10, 2017, 9:01 p.m. OK MS C++ TESTS 68 1201 494387200 2500
17989225 robinyu F May 19, 2016, 10:26 a.m. OK MS C++ TESTS 68 1388 165785600 2500
16957954 ballon F March 26, 2016, 2:48 p.m. OK MS C++ TESTS 68 1653 192716800 2500

remove filters

Back to search problems