Technocup 2020 - Elimination Round 3

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
1227 Technocup 2020 - Elimination Round 3 FINISHED False 7200 162856487 Nov. 24, 2019, 8:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5554 ) C Messy PROGRAMMING constructive algorithms 1700

B'You are fed up with your messy room, so you decided to clean it up. Your room is a bracket sequence s=s_{1}s_{2} ... s_{n} of length n . Each character of this string is either an opening bracket '( ' or a closing bracket ') '. In one operation you can choose any consecutive substring of s and reverse it. In other words, you can choose any substring s[l ... r]=s_l, s_{l+1}, ... , s_r and change the order of elements in it into s_r, s_{r-1}, ... , s_{l} . For example, if you will decide to reverse substring s[2 ... 4] of string s= "((()))" it will be equal to s= "()(())". A regular (aka balanced) bracket sequence is a bracket sequence that can be transformed into a correct arithmetic expression by inserting characters '1 ' and '+ ' between the original characters of the sequence. For example, bracket sequences "()()", "(())" are regular (the resulting expressions are: "(1)+(1)", "((1+1)+1)"), and ")(" and "(" are not. A prefix of a string s is a substring that starts at position 1 . For example, for s= "(())()" there are 6 prefixes: "(", "((", "(()", "(())", "(())(" and "(())()". In your opinion, a neat and clean room s is a bracket sequence that: For example, if k = 2 , then "(())()" is a neat and clean room. You want to use at most n operations to make your room neat and clean. Operations are applied one after another sequentially. It is guaranteed that the answer exists. Note that you do not need to minimize the number of operations: find any way to achieve the desired configuration in n or less operations. The first line contains integer number t ( 1 <= t <= 100 ) -- the number of test cases in the input. Then t test cases follow. The first line of a test case contains two integers n and k ( 1 <= k <= frac{n}{2}, 2 <= n <= 2000 , n is even) -- length of s and required number of regular prefixes. The second li'...

Tutorials

Разбор задач №2

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
65736489 dblark C Nov. 26, 2019, 8:04 a.m. OK FPC TESTS 22 31 409600 1700
65648914 LaSWeeG C Nov. 24, 2019, 9:37 a.m. OK FPC TESTS 22 62 2048000 1700
66223331 luogu_bot3 C Dec. 3, 2019, 11:38 a.m. OK GNU C++11 TESTS 22 15 0 1700
66211003 racoon C Dec. 3, 2019, 6:44 a.m. OK GNU C++11 TESTS 22 30 0 1700
65642282 eeestrelok C Nov. 24, 2019, 9:04 a.m. OK GNU C++11 TESTS 22 30 0 1700
69713195 bqq C Jan. 29, 2020, 7:56 a.m. OK GNU C++11 TESTS 22 31 0 1700
68332187 JC.SV C Jan. 6, 2020, 7:23 p.m. OK GNU C++11 TESTS 22 31 0 1700
67657059 Cowbby C Dec. 26, 2019, 2:18 p.m. OK GNU C++11 TESTS 22 31 0 1700
67506857 fclear C Dec. 24, 2019, 7:39 a.m. OK GNU C++11 TESTS 22 31 0 1700
67469444 vjudge1 C Dec. 23, 2019, 12:16 p.m. OK GNU C++11 TESTS 22 31 0 1700
67456535 _dark_side C Dec. 23, 2019, 7:09 a.m. OK GNU C++11 TESTS 22 31 0 1700
67418014 georgerapeanu C Dec. 22, 2019, 10:37 a.m. OK GNU C++11 TESTS 22 31 0 1700
65952975 NoTeamName C Nov. 29, 2019, 11:39 a.m. OK GNU C++14 TESTS 22 15 0 1700
65693969 starve_to_death C Nov. 25, 2019, 6:49 a.m. OK GNU C++14 TESTS 22 15 0 1700
65680794 Igor_2017 C Nov. 24, 2019, 7:57 p.m. OK GNU C++14 TESTS 22 15 0 1700
67498204 AngelVzla99 C Dec. 24, 2019, 1:43 a.m. OK GNU C++14 TESTS 22 15 102400 1700
66465112 Mlxa C Dec. 7, 2019, 4:13 p.m. OK GNU C++14 TESTS 22 15 102400 1700
65939754 atom0410 C Nov. 29, 2019, 5:26 a.m. OK GNU C++14 TESTS 22 15 102400 1700
65757262 JSZX11556 C Nov. 26, 2019, 2:27 p.m. OK GNU C++14 TESTS 22 15 102400 1700
65711542 Andreasyan C Nov. 25, 2019, 2:34 p.m. OK GNU C++14 TESTS 22 15 102400 1700
65646873 Aris C Nov. 24, 2019, 9:28 a.m. OK GNU C++14 TESTS 22 15 102400 1700
67051723 LeviLima C Dec. 17, 2019, 4:32 a.m. OK GNU C++14 TESTS 22 15 204800 1700
67965358 M...... C Dec. 30, 2019, 1:08 p.m. OK GNU C++17 TESTS 22 15 0 1700
67178009 Kallaf C Dec. 18, 2019, 8:22 p.m. OK GNU C++17 TESTS 22 15 0 1700
65796171 VioletSaber C Nov. 27, 2019, 4:52 a.m. OK GNU C++17 TESTS 22 15 0 1700
65729131 Stenton C Nov. 26, 2019, 3:23 a.m. OK GNU C++17 TESTS 22 15 0 1700
65727089 LightInShadow C Nov. 26, 2019, 12:54 a.m. OK GNU C++17 TESTS 22 15 0 1700
69090483 Rahul_cpp C Jan. 19, 2020, 9:58 a.m. OK GNU C++17 TESTS 22 15 102400 1700
66504722 sharrad99 C Dec. 8, 2019, 1:55 p.m. OK GNU C++17 TESTS 22 15 102400 1700
66362922 mgoncharov C Dec. 5, 2019, 6:27 p.m. OK GNU C++17 TESTS 22 15 102400 1700
66271252 Andr1y C Dec. 4, 2019, 12:23 p.m. OK GNU C++17 TESTS 22 15 102400 1700
65732580 mechashadow C Nov. 26, 2019, 6 a.m. OK GNU C++17 TESTS 22 15 102400 1700
65695046 potatmen C Nov. 25, 2019, 7:32 a.m. OK Java 11 TESTS 22 187 0 1700
65767086 IslamTalipovTop C Nov. 26, 2019, 6:29 p.m. OK Java 11 TESTS 22 202 0 1700
65688516 lpls1 C Nov. 25, 2019, 2:41 a.m. OK Java 11 TESTS 22 217 0 1700
65651139 ivemari C Nov. 24, 2019, 9:48 a.m. OK Java 11 TESTS 22 218 0 1700
66478888 AnandOza C Dec. 7, 2019, 11:26 p.m. OK Java 8 TESTS 22 109 0 1700
65690572 tmwilliamlin168 C Nov. 25, 2019, 4:30 a.m. OK Java 8 TESTS 22 109 0 1700
65673053 4mda4mda C Nov. 24, 2019, 4:47 p.m. OK Java 8 TESTS 22 124 0 1700
65639913 mikhaylov_boris C Nov. 24, 2019, 8:54 a.m. OK Java 8 TESTS 22 124 0 1700
65689273 luchy0120 C Nov. 25, 2019, 3:22 a.m. OK Java 8 TESTS 22 139 0 1700
65703315 wretar C Nov. 25, 2019, 11:37 a.m. OK Java 8 TESTS 22 140 0 1700
65821090 Ad-007 C Nov. 27, 2019, 10:34 a.m. OK Java 8 TESTS 22 982 0 1700
69713145 vjudge4 C Jan. 29, 2020, 7:55 a.m. OK MS C++ 2017 TESTS 22 31 0 1700
66552687 IPRIT C Dec. 9, 2019, 3:31 p.m. OK MS C++ 2017 TESTS 22 31 0 1700
65992397 kurs C Nov. 29, 2019, 4:40 p.m. OK MS C++ 2017 TESTS 22 31 0 1700
65649295 Sad_cat C Nov. 24, 2019, 9:39 a.m. OK MS C++ 2017 TESTS 22 31 0 1700
65632252 Catmoonlight C Nov. 24, 2019, 8:26 a.m. OK MS C++ 2017 TESTS 22 31 0 1700
65638662 EgorShibaev C Nov. 24, 2019, 8:49 a.m. OK MS C++ 2017 TESTS 22 31 102400 1700
65653211 Pricolno C Nov. 24, 2019, 9:58 a.m. OK MS C++ 2017 TESTS 22 31 307200 1700
65653161 AndreWiking C Nov. 24, 2019, 9:58 a.m. OK MS C++ 2017 TESTS 22 31 307200 1700
65638760 TeaTime C Nov. 24, 2019, 8:50 a.m. OK MS C++ 2017 TESTS 22 31 409600 1700
66674857 Still_Theory C Dec. 12, 2019, 10:54 a.m. OK MS C++ 2017 TESTS 22 31 512000 1700
65930150 m.ni C Nov. 28, 2019, 8:29 p.m. OK PyPy 3 TESTS 22 155 2150400 1700
65708489 Andy_High C Nov. 25, 2019, 1:28 p.m. OK PyPy 3 TESTS 22 155 3276800 1700
65644722 ulyss C Nov. 24, 2019, 9:16 a.m. OK PyPy 3 TESTS 22 170 1945600 1700
65648448 aloner1100 C Nov. 24, 2019, 9:35 a.m. OK PyPy 3 TESTS 22 171 1843200 1700
65728453 ss7890 C Nov. 26, 2019, 2:39 a.m. OK PyPy 3 TESTS 22 171 3481600 1700
65648312 yekaterina_nikolaeva C Nov. 24, 2019, 9:34 a.m. OK PyPy 3 TESTS 22 186 3379200 1700
65706632 Tihohon C Nov. 25, 2019, 12:50 p.m. OK PyPy 3 TESTS 22 186 3481600 1700
65757908 23sergey03 C Nov. 26, 2019, 2:41 p.m. OK PyPy 3 TESTS 22 186 3788800 1700
65650632 i999gera C Nov. 24, 2019, 9:46 a.m. OK PyPy 3 TESTS 22 187 3174400 1700
65639763 Moon_Sugar C Nov. 24, 2019, 8:53 a.m. OK PyPy 3 TESTS 22 187 3379200 1700
68121577 Kurisu__ C Jan. 3, 2020, 1:31 p.m. OK Python 3 TESTS 22 108 409600 1700
65713021 rrrrrrrrrrrrrrrr1 C Nov. 25, 2019, 3:12 p.m. OK Python 3 TESTS 22 124 716800 1700
65958579 paspasuy C Nov. 29, 2019, 1:48 p.m. OK Python 3 TESTS 22 124 1228800 1700
65644338 bushm174 C Nov. 24, 2019, 9:13 a.m. OK Python 3 TESTS 22 140 409600 1700
65760877 vanek2002 C Nov. 26, 2019, 3:48 p.m. OK Python 3 TESTS 22 218 1228800 1700
66975785 sruthi_1729 C Dec. 15, 2019, 2:39 p.m. OK Python 3 TESTS 22 327 614400 1700
65654013 Kursakov C Nov. 24, 2019, 10:02 a.m. OK Python 3 TESTS 22 358 409600 1700
65652841 NeoSab C Nov. 24, 2019, 9:57 a.m. OK Python 3 TESTS 22 420 102400 1700
65790466 Timerke C Nov. 26, 2019, 9:56 p.m. OK Python 3 TESTS 22 421 409600 1700

remove filters

Back to search problems