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.
Problems
B'You are given two bracket sequences (not necessarily regular) s and t consisting only of characters '( ' and ') '. You want to construct the shortest regular bracket sequence that contains both given bracket sequences as subsequences (not necessarily contiguous). Recall what is the regular bracket sequence: Recall that the subsequence of the string s is such string t that can be obtained from s by removing some (possibly, zero) amount of characters. For example, "coder", "force", "cf" and "cores" are subsequences of "codeforces", but "fed" and "z" are not. The first line of the input contains one bracket sequence s consisting of no more than 200 characters '( ' and ') '. The second line of the input contains one bracket sequence t consisting of no more than 200 characters '( ' and ') '. Print one line -- the shortest regular bracket sequence that contains both given bracket sequences as subsequences (not necessarily contiguous). If there are several answers, you can print any. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
66724306 |
Chipe1 |
F |
Dec. 12, 2019, 3:45 p.m. |
OK |
GNU C11 |
TESTS |
54 |
77 |
131481600 |
|
2400 |
67035441 |
alvinpiter |
F |
Dec. 16, 2019, 5:14 p.m. |
OK |
GNU C++11 |
TESTS |
54 |
46 |
67072000 |
|
2400 |
66765160 |
shenxy13 |
F |
Dec. 13, 2019, 7:34 a.m. |
OK |
GNU C++11 |
TESTS |
54 |
46 |
130150400 |
|
2400 |
66748972 |
yizemin1999 |
F |
Dec. 13, 2019, 4:50 a.m. |
OK |
GNU C++11 |
TESTS |
54 |
61 |
138137600 |
|
2400 |
66895047 |
yalizjc |
F |
Dec. 15, 2019, 12:40 a.m. |
OK |
GNU C++11 |
TESTS |
54 |
61 |
148480000 |
|
2400 |
66727953 |
birka0 |
F |
Dec. 12, 2019, 4:36 p.m. |
OK |
GNU C++11 |
TESTS |
54 |
62 |
33075200 |
|
2400 |
66728872 |
natofp |
F |
Dec. 12, 2019, 4:51 p.m. |
OK |
GNU C++11 |
TESTS |
54 |
62 |
87756800 |
|
2400 |
68844210 |
tch1001 |
F |
Jan. 15, 2020, 6:52 a.m. |
OK |
GNU C++11 |
TESTS |
54 |
62 |
138137600 |
|
2400 |
66724316 |
yinghua1314 |
F |
Dec. 12, 2019, 3:45 p.m. |
OK |
GNU C++11 |
TESTS |
54 |
62 |
157798400 |
|
2400 |
66856258 |
Sylvie233 |
F |
Dec. 14, 2019, 12:16 p.m. |
OK |
GNU C++11 |
TESTS |
54 |
62 |
276275200 |
|
2400 |
66773858 |
Jiaaaaaaaqi |
F |
Dec. 13, 2019, 9:07 a.m. |
OK |
GNU C++11 |
TESTS |
54 |
62 |
289894400 |
|
2400 |
66871948 |
rfpermen |
F |
Dec. 14, 2019, 1:57 p.m. |
OK |
GNU C++14 |
TESTS |
54 |
46 |
34508800 |
|
2400 |
66732245 |
_HossamYehia_ |
F |
Dec. 12, 2019, 5:54 p.m. |
OK |
GNU C++14 |
TESTS |
54 |
46 |
34508800 |
|
2400 |
68219455 |
nightlight |
F |
Jan. 5, 2020, 3:30 a.m. |
OK |
GNU C++14 |
TESTS |
54 |
46 |
34508800 |
|
2400 |
66724087 |
N_o_o_B |
F |
Dec. 12, 2019, 3:43 p.m. |
OK |
GNU C++14 |
TESTS |
54 |
46 |
140390400 |
|
2400 |
66744053 |
illuminati_XY |
F |
Dec. 12, 2019, 11:58 p.m. |
OK |
GNU C++14 |
TESTS |
54 |
61 |
69120000 |
|
2400 |
67209549 |
sher_wu |
F |
Dec. 19, 2019, 1:33 p.m. |
OK |
GNU C++14 |
TESTS |
54 |
61 |
90624000 |
|
2400 |
66756438 |
Sixpathsguy |
F |
Dec. 13, 2019, 6:10 a.m. |
OK |
GNU C++14 |
TESTS |
54 |
61 |
281804800 |
|
2400 |
67178770 |
testacc12345 |
F |
Dec. 18, 2019, 8:54 p.m. |
OK |
GNU C++14 |
TESTS |
54 |
62 |
32460800 |
|
2400 |
66731837 |
moidda |
F |
Dec. 12, 2019, 5:46 p.m. |
OK |
GNU C++14 |
TESTS |
54 |
62 |
33075200 |
|
2400 |
66723907 |
210709 |
F |
Dec. 12, 2019, 3:41 p.m. |
OK |
GNU C++14 |
TESTS |
54 |
62 |
34099200 |
|
2400 |
66740779 |
Redemptioner |
F |
Dec. 12, 2019, 8:40 p.m. |
OK |
GNU C++17 |
TESTS |
54 |
46 |
34508800 |
|
2400 |
68099368 |
Scano |
F |
Jan. 3, 2020, 12:42 a.m. |
OK |
GNU C++17 |
TESTS |
54 |
46 |
34611200 |
|
2400 |
67266362 |
gn0uchat |
F |
Dec. 20, 2019, 6:21 a.m. |
OK |
GNU C++17 |
TESTS |
54 |
46 |
40345600 |
|
2400 |
67032044 |
Soulless7s |
F |
Dec. 16, 2019, 4:09 p.m. |
OK |
GNU C++17 |
TESTS |
54 |
46 |
43827200 |
|
2400 |
66734847 |
mat_v |
F |
Dec. 12, 2019, 6:23 p.m. |
OK |
GNU C++17 |
TESTS |
54 |
46 |
64204800 |
|
2400 |
67485481 |
0-jij-0 |
F |
Dec. 23, 2019, 5:19 p.m. |
OK |
GNU C++17 |
TESTS |
54 |
46 |
65126400 |
|
2400 |
66749619 |
marX |
F |
Dec. 13, 2019, 5:13 a.m. |
OK |
GNU C++17 |
TESTS |
54 |
46 |
65126400 |
|
2400 |
66736390 |
ck98 |
F |
Dec. 12, 2019, 7:03 p.m. |
OK |
GNU C++17 |
TESTS |
54 |
46 |
69120000 |
|
2400 |
66734652 |
mello |
F |
Dec. 12, 2019, 6:19 p.m. |
OK |
GNU C++17 |
TESTS |
54 |
46 |
81203200 |
|
2400 |
68639246 |
Pi_Yuan_Yuan |
F |
Jan. 12, 2020, 6:59 a.m. |
OK |
GNU C++17 |
TESTS |
54 |
46 |
85299200 |
|
2400 |
66725134 |
TheSawan |
F |
Dec. 12, 2019, 3:54 p.m. |
OK |
Java 11 |
TESTS |
54 |
420 |
39731200 |
|
2400 |
67012904 |
gaidash |
F |
Dec. 16, 2019, 10:30 a.m. |
OK |
Java 11 |
TESTS |
54 |
1107 |
265011200 |
|
2400 |
67072284 |
potatmen |
F |
Dec. 17, 2019, 1:11 p.m. |
OK |
Java 11 |
TESTS |
54 |
1169 |
449126400 |
|
2400 |
67072418 |
potatmen |
F |
Dec. 17, 2019, 1:14 p.m. |
OK |
Java 11 |
TESTS |
54 |
1185 |
449126400 |
|
2400 |
67133607 |
jjluczyn |
F |
Dec. 18, 2019, 2:20 a.m. |
OK |
Java 11 |
TESTS |
54 |
1855 |
530329600 |
|
2400 |
67148985 |
dyhu083 |
F |
Dec. 18, 2019, 9:59 a.m. |
OK |
Java 8 |
TESTS |
54 |
234 |
78848000 |
|
2400 |
67499600 |
gouh9qn |
F |
Dec. 24, 2019, 3:22 a.m. |
OK |
Java 8 |
TESTS |
54 |
264 |
75673600 |
|
2400 |
66812423 |
luchy0120 |
F |
Dec. 14, 2019, 3:44 a.m. |
OK |
Java 8 |
TESTS |
54 |
265 |
76390400 |
|
2400 |
66725454 |
Ahmed_Hosssam |
F |
Dec. 12, 2019, 3:58 p.m. |
OK |
Java 8 |
TESTS |
54 |
296 |
77414400 |
|
2400 |
67424284 |
minaezzat |
F |
Dec. 22, 2019, 12:51 p.m. |
OK |
Java 8 |
TESTS |
54 |
311 |
144384000 |
|
2400 |
66783281 |
Khater |
F |
Dec. 13, 2019, 12:46 p.m. |
OK |
Java 8 |
TESTS |
54 |
326 |
142643200 |
|
2400 |
66785767 |
Khater |
F |
Dec. 13, 2019, 1:36 p.m. |
OK |
Java 8 |
TESTS |
54 |
343 |
142643200 |
|
2400 |
67667547 |
NMouad21 |
F |
Dec. 26, 2019, 6:33 p.m. |
OK |
Java 8 |
TESTS |
54 |
389 |
144486400 |
|
2400 |
66726267 |
YahiaSherif |
F |
Dec. 12, 2019, 4:09 p.m. |
OK |
Java 8 |
TESTS |
54 |
405 |
260505600 |
|
2400 |
67451534 |
Java |
F |
Dec. 23, 2019, 4:35 a.m. |
OK |
Java 8 |
TESTS |
54 |
420 |
59904000 |
|
2400 |
68341582 |
Spheniscine |
F |
Jan. 7, 2020, 4:09 a.m. |
OK |
Kotlin |
TESTS |
54 |
343 |
25088000 |
|
2400 |
68340949 |
Spheniscine |
F |
Jan. 7, 2020, 3:33 a.m. |
OK |
Kotlin |
TESTS |
54 |
343 |
25088000 |
|
2400 |
68340768 |
Spheniscine |
F |
Jan. 7, 2020, 3:23 a.m. |
OK |
Kotlin |
TESTS |
54 |
1435 |
203161600 |
|
2400 |
68340824 |
Spheniscine |
F |
Jan. 7, 2020, 3:25 a.m. |
OK |
Kotlin |
TESTS |
54 |
1543 |
202444800 |
|
2400 |
69834900 |
vjudge3 |
F |
Jan. 30, 2020, 11:32 a.m. |
OK |
MS C++ |
TESTS |
54 |
280 |
173363200 |
|
2400 |
67700645 |
vjudge4 |
F |
Dec. 27, 2019, 2:29 p.m. |
OK |
MS C++ |
TESTS |
54 |
405 |
218112000 |
|
2400 |
66763192 |
efyjef |
F |
Dec. 13, 2019, 7:18 a.m. |
OK |
MS C++ 2017 |
TESTS |
54 |
61 |
69324800 |
|
2400 |
66729138 |
LinusTorvaldsFan |
F |
Dec. 12, 2019, 4:56 p.m. |
OK |
MS C++ 2017 |
TESTS |
54 |
77 |
71168000 |
|
2400 |
66873269 |
wuxigk |
F |
Dec. 14, 2019, 2:14 p.m. |
OK |
MS C++ 2017 |
TESTS |
54 |
139 |
153804800 |
|
2400 |
66808191 |
MBHuman |
F |
Dec. 13, 2019, 11:20 p.m. |
OK |
MS C++ 2017 |
TESTS |
54 |
186 |
330342400 |
|
2400 |
66987678 |
YaMi506 |
F |
Dec. 15, 2019, 6:50 p.m. |
OK |
MS C++ 2017 |
TESTS |
54 |
186 |
385331200 |
|
2400 |
66724686 |
pajenegod |
F |
Dec. 12, 2019, 3:49 p.m. |
OK |
PyPy 2 |
TESTS |
54 |
436 |
72601600 |
|
2400 |
66727252 |
auouo |
F |
Dec. 12, 2019, 4:25 p.m. |
OK |
PyPy 3 |
TESTS |
54 |
920 |
76185600 |
|
2400 |
66737512 |
Stelutzu |
F |
Dec. 12, 2019, 7:35 p.m. |
OK |
PyPy 3 |
TESTS |
54 |
1092 |
172646400 |
|
2400 |
66786027 |
SMMaster |
F |
Dec. 13, 2019, 1:40 p.m. |
OK |
PyPy 3 |
TESTS |
54 |
1107 |
172748800 |
|
2400 |
67937941 |
addammy |
F |
Dec. 29, 2019, 9:35 p.m. |
OK |
PyPy 3 |
TESTS |
54 |
1528 |
171315200 |
|
2400 |
67369395 |
Georgy.B |
F |
Dec. 21, 2019, 1:16 p.m. |
OK |
PyPy 3 |
TESTS |
54 |
1544 |
261222400 |
|
2400 |
remove filters
Back to search problems