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 |
162
|
VK Cup 2012 Wild-card Round 1 |
FINISHED |
False |
7200 |
399739799 |
March 18, 2012, 3:10 p.m. |
Problems
B'A sequence of brackets is called balanced if one can turn it into a valid math expression by adding characters "+" and "1". For example, sequences "(())()", "()" and "(()(()))" are balanced, while ")(", "(()" and "(()))(" are not. You are given a string which consists of opening and closing round brackets. Check whether it is a balanced bracket sequence. The only line of input contains a string between 1 and 100 characters long, inclusive. Each character in the string will be "(" or ")". Output "YES" if the bracket sequence is balanced, and "NO" otherwise (quotes for clarity only).'... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
4058696 |
Router |
J |
July 13, 2013, 8:35 a.m. |
OK |
Factor |
TESTS |
47 |
109 |
0 |
|
2400 |
3669289 |
Omelianenko |
J |
May 4, 2013, 1:25 p.m. |
OK |
Factor |
TESTS |
47 |
125 |
0 |
|
2400 |
3818189 |
yermak0v |
J |
June 3, 2013, 9:34 a.m. |
OK |
Factor |
TESTS |
47 |
140 |
0 |
|
2400 |
4564052 |
DarthShrine |
J |
Sept. 25, 2013, 10:26 p.m. |
OK |
Factor |
TESTS |
47 |
156 |
0 |
|
2400 |
1408389 |
watashi |
J |
March 25, 2012, 10:59 a.m. |
OK |
Factor |
TESTS |
47 |
160 |
185856000 |
|
2400 |
1379442 |
rexim |
J |
March 19, 2012, 2:43 p.m. |
OK |
Factor |
TESTS |
47 |
160 |
185856000 |
|
2400 |
1665705 |
Bit-World |
J |
May 6, 2012, 6:51 a.m. |
OK |
Factor |
TESTS |
47 |
170 |
185856000 |
|
2400 |
1509434 |
tec |
J |
April 11, 2012, 12:35 a.m. |
OK |
Factor |
TESTS |
47 |
170 |
185856000 |
|
2400 |
1377753 |
Orfest |
J |
March 18, 2012, 5:43 p.m. |
OK |
Factor |
TESTS |
47 |
170 |
185856000 |
|
2400 |
1377546 |
vkuzkokov |
J |
March 18, 2012, 5:06 p.m. |
OK |
Factor |
TESTS |
47 |
170 |
185856000 |
|
2400 |
remove filters
Back to search problems