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 have been assigned to develop a filter for bad messages in the in-game chat. A message is a string S of length n , consisting of lowercase English letters and characters ') '. The message is bad if the number of characters ') ' at the end of the string strictly greater than the number of remaining characters. For example, the string ")bc)))" has three parentheses at the end, three remaining characters, and is not considered bad. The first line contains the number of test cases t ( 1 <= q t <= q 100 ). Description of the t test cases follows. The first line of each test case contains an integer n ( 1 <= q n <= q 100 ). The second line of each test case contains a string S of length n , consisting of lowercase English letters and characters ') '. For each of t test cases, print "Yes" if the string is bad. Otherwise, print "No". You can print each letter in any case (upper or lower). '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
101874888 |
Yuri132 |
A |
Dec. 20, 2020, 3:27 p.m. |
OK |
FPC |
TESTS |
11 |
30 |
102400 |
|
|
101899601 |
olegenok03 |
A |
Dec. 20, 2020, 4:49 p.m. |
OK |
GNU C11 |
TESTS |
11 |
15 |
0 |
|
|
101871140 |
AlexRt |
A |
Dec. 20, 2020, 3:19 p.m. |
OK |
GNU C11 |
TESTS |
11 |
15 |
0 |
|
|
101899175 |
Piroshok |
A |
Dec. 20, 2020, 4:48 p.m. |
OK |
GNU C11 |
TESTS |
11 |
31 |
0 |
|
|
101868927 |
mariamyshko |
A |
Dec. 20, 2020, 3:15 p.m. |
OK |
GNU C11 |
TESTS |
11 |
31 |
0 |
|
|
101886832 |
Zarip |
A |
Dec. 20, 2020, 4:05 p.m. |
OK |
GNU C11 |
TESTS |
11 |
31 |
0 |
|
|
101872046 |
AndrewNikon |
A |
Dec. 20, 2020, 3:21 p.m. |
OK |
GNU C++11 |
TESTS |
11 |
15 |
0 |
|
|
101873066 |
Groshev_Vladimir |
A |
Dec. 20, 2020, 3:23 p.m. |
OK |
GNU C++11 |
TESTS |
11 |
15 |
0 |
|
|
101872877 |
Demidid |
A |
Dec. 20, 2020, 3:22 p.m. |
OK |
GNU C++11 |
TESTS |
11 |
15 |
0 |
|
|
101870645 |
sarvar_yuldashev |
A |
Dec. 20, 2020, 3:18 p.m. |
OK |
GNU C++11 |
TESTS |
11 |
15 |
0 |
|
|
101892051 |
poituk |
A |
Dec. 20, 2020, 4:23 p.m. |
OK |
GNU C++11 |
TESTS |
11 |
15 |
0 |
|
|
101885005 |
20alex20 |
A |
Dec. 20, 2020, 3:59 p.m. |
OK |
GNU C++11 |
TESTS |
11 |
15 |
0 |
|
|
101881434 |
PetrShinomontazh |
A |
Dec. 20, 2020, 3:47 p.m. |
OK |
GNU C++11 |
TESTS |
11 |
15 |
0 |
|
|
101880470 |
Alimov_M |
A |
Dec. 20, 2020, 3:43 p.m. |
OK |
GNU C++11 |
TESTS |
11 |
15 |
0 |
|
|
101879711 |
SanRut |
A |
Dec. 20, 2020, 3:41 p.m. |
OK |
GNU C++11 |
TESTS |
11 |
15 |
0 |
|
|
101875525 |
jesusnashbog |
A |
Dec. 20, 2020, 3:29 p.m. |
OK |
GNU C++11 |
TESTS |
11 |
15 |
0 |
|
|
101875477 |
ArterKrilOk |
A |
Dec. 20, 2020, 3:29 p.m. |
OK |
GNU C++14 |
TESTS |
11 |
15 |
0 |
|
|
101869035 |
akabest |
A |
Dec. 20, 2020, 3:15 p.m. |
OK |
GNU C++14 |
TESTS |
11 |
15 |
0 |
|
|
101886655 |
mikhart |
A |
Dec. 20, 2020, 4:04 p.m. |
OK |
GNU C++14 |
TESTS |
11 |
15 |
204800 |
|
|
101928472 |
do_atA_all |
A |
Dec. 21, 2020, 4:15 a.m. |
OK |
GNU C++14 |
TESTS |
11 |
30 |
0 |
|
|
101932326 |
shivambhattad |
A |
Dec. 21, 2020, 5:41 a.m. |
OK |
GNU C++14 |
TESTS |
11 |
30 |
0 |
|
|
101876313 |
e1turin |
A |
Dec. 20, 2020, 3:31 p.m. |
OK |
GNU C++14 |
TESTS |
11 |
30 |
0 |
|
|
101870358 |
Baurr |
A |
Dec. 20, 2020, 3:17 p.m. |
OK |
GNU C++14 |
TESTS |
11 |
30 |
0 |
|
|
101866386 |
endless_code |
A |
Dec. 20, 2020, 3:12 p.m. |
OK |
GNU C++14 |
TESTS |
11 |
30 |
0 |
|
|
101865598 |
ILOLSS |
A |
Dec. 20, 2020, 3:11 p.m. |
OK |
GNU C++14 |
TESTS |
11 |
30 |
0 |
|
|
101863495 |
FY_Moon |
A |
Dec. 20, 2020, 3:09 p.m. |
OK |
GNU C++14 |
TESTS |
11 |
30 |
0 |
|
|
101871638 |
MrAlihan |
A |
Dec. 20, 2020, 3:20 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
15 |
0 |
|
|
101871629 |
Artem_Alex |
A |
Dec. 20, 2020, 3:20 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
15 |
0 |
|
|
101870998 |
_Arkadiy_ |
A |
Dec. 20, 2020, 3:19 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
15 |
0 |
|
|
101866956 |
maqsut03 |
A |
Dec. 20, 2020, 3:12 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
15 |
0 |
|
|
101930407 |
mduba_dead_inside |
A |
Dec. 21, 2020, 5:01 a.m. |
OK |
GNU C++17 |
TESTS |
11 |
15 |
0 |
|
|
101929321 |
exceeded |
A |
Dec. 21, 2020, 4:37 a.m. |
OK |
GNU C++17 |
TESTS |
11 |
15 |
0 |
|
|
101916422 |
6konFire |
A |
Dec. 20, 2020, 8:19 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
15 |
0 |
|
|
101888939 |
inform12i |
A |
Dec. 20, 2020, 4:12 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
15 |
0 |
|
|
101875921 |
RUSLoker |
A |
Dec. 20, 2020, 3:30 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
15 |
0 |
|
|
101872092 |
pepelulka1 |
A |
Dec. 20, 2020, 3:21 p.m. |
OK |
GNU C++17 |
TESTS |
11 |
15 |
0 |
|
|
101866666 |
lovelylittleangel |
A |
Dec. 20, 2020, 3:12 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
15 |
0 |
|
|
101863947 |
BlogUnderground |
A |
Dec. 20, 2020, 3:09 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
15 |
0 |
|
|
101863771 |
Sholastik |
A |
Dec. 20, 2020, 3:09 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
15 |
0 |
|
|
101862542 |
yarik1 |
A |
Dec. 20, 2020, 3:08 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
15 |
0 |
|
|
101911374 |
haxer |
A |
Dec. 20, 2020, 6:42 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
15 |
0 |
|
|
101879085 |
Nagim123 |
A |
Dec. 20, 2020, 3:39 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
15 |
0 |
|
|
101876111 |
pepilica |
A |
Dec. 20, 2020, 3:30 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
15 |
0 |
|
|
101867633 |
protogrammer |
A |
Dec. 20, 2020, 3:13 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
15 |
0 |
|
|
101861671 |
hader239 |
A |
Dec. 20, 2020, 3:08 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
15 |
0 |
|
|
101865853 |
EreminVladimir |
A |
Dec. 20, 2020, 3:11 p.m. |
OK |
GNU C++17 (64) |
TESTS |
11 |
15 |
0 |
|
|
101880737 |
Vimtaid |
A |
Dec. 20, 2020, 3:44 p.m. |
OK |
Go |
TESTS |
11 |
46 |
0 |
|
|
101879561 |
IvanNebotov |
A |
Dec. 20, 2020, 3:40 p.m. |
OK |
Go |
TESTS |
11 |
46 |
0 |
|
|
101913426 |
HoBoCTb |
A |
Dec. 20, 2020, 7:16 p.m. |
OK |
Haskell |
TESTS |
11 |
31 |
102400 |
|
|
101864287 |
gimabd30 |
A |
Dec. 20, 2020, 3:10 p.m. |
OK |
Java 11 |
TESTS |
11 |
171 |
0 |
|
|
101927253 |
La_Pagla |
A |
Dec. 21, 2020, 3:43 a.m. |
OK |
Java 11 |
TESTS |
11 |
187 |
0 |
|
|
101866485 |
excavator |
A |
Dec. 20, 2020, 3:12 p.m. |
OK |
Java 11 |
TESTS |
11 |
187 |
0 |
|
|
101887493 |
onlytrall |
A |
Dec. 20, 2020, 4:07 p.m. |
OK |
Java 11 |
TESTS |
11 |
202 |
0 |
|
|
101919486 |
SalahAshraf21 |
A |
Dec. 20, 2020, 9:45 p.m. |
OK |
Java 11 |
TESTS |
11 |
202 |
0 |
|
|
101871487 |
worit |
A |
Dec. 20, 2020, 3:20 p.m. |
OK |
Java 11 |
TESTS |
11 |
233 |
0 |
|
|
101877803 |
Daiyr |
A |
Dec. 20, 2020, 3:35 p.m. |
OK |
Java 11 |
TESTS |
11 |
249 |
0 |
|
|
101860312 |
Shokersss |
A |
Dec. 20, 2020, 3:07 p.m. |
OK |
Java 8 |
TESTS |
11 |
93 |
0 |
|
|
101870043 |
kriss182 |
A |
Dec. 20, 2020, 3:17 p.m. |
OK |
Java 8 |
TESTS |
11 |
109 |
0 |
|
|
101881779 |
NosovDmitriy |
A |
Dec. 20, 2020, 3:48 p.m. |
OK |
Java 8 |
TESTS |
11 |
109 |
0 |
|
|
101866106 |
volodamlv |
A |
Dec. 20, 2020, 3:11 p.m. |
OK |
Java 8 |
TESTS |
11 |
109 |
0 |
|
|
101881707 |
Emmerich |
A |
Dec. 20, 2020, 3:48 p.m. |
OK |
Java 8 |
TESTS |
11 |
124 |
0 |
|
|
101928828 |
utkarsh_786 |
A |
Dec. 21, 2020, 4:26 a.m. |
OK |
Java 8 |
TESTS |
11 |
140 |
0 |
|
|
101907938 |
Ayush_Gar9 |
A |
Dec. 20, 2020, 6:06 p.m. |
OK |
Java 8 |
TESTS |
11 |
186 |
0 |
|
|
101876059 |
FilippShai |
A |
Dec. 20, 2020, 3:30 p.m. |
OK |
MS C++ |
TESTS |
11 |
30 |
0 |
|
|
101881229 |
PavelBesp |
A |
Dec. 20, 2020, 3:46 p.m. |
OK |
MS C++ |
TESTS |
11 |
31 |
0 |
|
|
101872301 |
dimak_9111 |
A |
Dec. 20, 2020, 3:21 p.m. |
OK |
MS C++ 2017 |
TESTS |
11 |
15 |
0 |
|
|
101865945 |
ElizaBest |
A |
Dec. 20, 2020, 3:11 p.m. |
OK |
MS C++ 2017 |
TESTS |
11 |
15 |
0 |
|
|
101872526 |
dAsVb |
A |
Dec. 20, 2020, 3:22 p.m. |
OK |
MS C++ 2017 |
TESTS |
11 |
30 |
0 |
|
|
101866243 |
gleb_shkoda |
A |
Dec. 20, 2020, 3:12 p.m. |
OK |
MS C++ 2017 |
TESTS |
11 |
30 |
0 |
|
|
101865991 |
verybadcoder |
A |
Dec. 20, 2020, 3:11 p.m. |
OK |
MS C++ 2017 |
TESTS |
11 |
30 |
0 |
|
|
101875720 |
vladikusi |
A |
Dec. 20, 2020, 3:29 p.m. |
OK |
MS C++ 2017 |
TESTS |
11 |
30 |
0 |
|
|
101890745 |
Darkaxe4 |
A |
Dec. 20, 2020, 4:18 p.m. |
OK |
MS C++ 2017 |
TESTS |
11 |
31 |
0 |
|
|
101890211 |
Ksenia_Schekina |
A |
Dec. 20, 2020, 4:16 p.m. |
OK |
MS C++ 2017 |
TESTS |
11 |
31 |
0 |
|
|
101888551 |
InoxBall |
A |
Dec. 20, 2020, 4:11 p.m. |
OK |
MS C++ 2017 |
TESTS |
11 |
31 |
0 |
|
|
101910919 |
Stash8 |
A |
Dec. 20, 2020, 6:36 p.m. |
OK |
MS C++ 2017 |
TESTS |
11 |
31 |
0 |
|
|
101894635 |
SMaxDProgrammer |
A |
Dec. 20, 2020, 4:32 p.m. |
OK |
.NET Core C# |
TESTS |
11 |
78 |
0 |
|
|
101877400 |
Striker_32 |
A |
Dec. 20, 2020, 3:34 p.m. |
OK |
.NET Core C# |
TESTS |
11 |
92 |
0 |
|
|
101877126 |
IgorSivirinov |
A |
Dec. 20, 2020, 3:33 p.m. |
OK |
.NET Core C# |
TESTS |
11 |
92 |
0 |
|
|
101878629 |
Firewolf304 |
A |
Dec. 20, 2020, 3:38 p.m. |
OK |
.NET Core C# |
TESTS |
11 |
93 |
0 |
|
|
101872225 |
virl0k |
A |
Dec. 20, 2020, 3:21 p.m. |
OK |
.NET Core C# |
TESTS |
11 |
93 |
0 |
|
|
101869093 |
Pays |
A |
Dec. 20, 2020, 3:15 p.m. |
OK |
.NET Core C# |
TESTS |
11 |
93 |
0 |
|
|
101891008 |
Kanya |
A |
Dec. 20, 2020, 4:19 p.m. |
OK |
.NET Core C# |
TESTS |
11 |
93 |
0 |
|
|
101866657 |
CatMer |
A |
Dec. 20, 2020, 3:12 p.m. |
OK |
.NET Core C# |
TESTS |
11 |
93 |
0 |
|
|
101865202 |
qwdf1wd122321 |
A |
Dec. 20, 2020, 3:10 p.m. |
OK |
.NET Core C# |
TESTS |
11 |
93 |
102400 |
|
|
101912648 |
n1ksON |
A |
Dec. 20, 2020, 7:03 p.m. |
OK |
Node.js |
TESTS |
11 |
62 |
0 |
|
|
101931762 |
progmatik |
A |
Dec. 21, 2020, 5:30 a.m. |
OK |
PascalABC.NET |
TESTS |
11 |
280 |
0 |
|
|
101891876 |
Vladislav73 |
A |
Dec. 20, 2020, 4:22 p.m. |
OK |
PascalABC.NET |
TESTS |
11 |
280 |
0 |
|
|
101887115 |
sasham14 |
A |
Dec. 20, 2020, 4:06 p.m. |
OK |
PascalABC.NET |
TESTS |
11 |
280 |
0 |
|
|
101877913 |
Clem_amel |
A |
Dec. 20, 2020, 3:35 p.m. |
OK |
PascalABC.NET |
TESTS |
11 |
280 |
0 |
|
|
101870035 |
Danilaltd |
A |
Dec. 20, 2020, 3:17 p.m. |
OK |
PascalABC.NET |
TESTS |
11 |
280 |
0 |
|
|
101879201 |
danil212211 |
A |
Dec. 20, 2020, 3:39 p.m. |
OK |
PascalABC.NET |
TESTS |
11 |
280 |
204800 |
|
|
101881206 |
LuFFy__SSS |
A |
Dec. 20, 2020, 3:46 p.m. |
OK |
PascalABC.NET |
TESTS |
11 |
280 |
307200 |
|
|
101877994 |
nastuxakok |
A |
Dec. 20, 2020, 3:36 p.m. |
OK |
PascalABC.NET |
TESTS |
11 |
295 |
0 |
|
|
101894861 |
KorolOrol |
A |
Dec. 20, 2020, 4:33 p.m. |
OK |
PascalABC.NET |
TESTS |
11 |
295 |
0 |
|
|
101894361 |
olegknjazev |
A |
Dec. 20, 2020, 4:31 p.m. |
OK |
PascalABC.NET |
TESTS |
11 |
295 |
0 |
|
|
101876105 |
Danil05 |
A |
Dec. 20, 2020, 3:30 p.m. |
OK |
PHP |
TESTS |
11 |
46 |
512000 |
|
|
101928363 |
tan_delhi |
A |
Dec. 21, 2020, 4:12 a.m. |
OK |
PyPy 3 |
TESTS |
11 |
124 |
1331200 |
|
|
101872090 |
vn_152 |
A |
Dec. 20, 2020, 3:21 p.m. |
OK |
PyPy 3 |
TESTS |
11 |
124 |
1331200 |
|
|
101863338 |
Dmitry314 |
A |
Dec. 20, 2020, 3:09 p.m. |
OK |
PyPy 3 |
TESTS |
11 |
124 |
1331200 |
|
|
101860526 |
Pechalka |
A |
Dec. 20, 2020, 3:07 p.m. |
OK |
PyPy 3 |
TESTS |
11 |
124 |
1331200 |
|
|
101870150 |
Alexey045 |
A |
Dec. 20, 2020, 3:17 p.m. |
OK |
PyPy 3 |
TESTS |
11 |
124 |
1433600 |
|
|
101883768 |
zinovand |
A |
Dec. 20, 2020, 3:55 p.m. |
OK |
PyPy 3 |
TESTS |
11 |
139 |
0 |
|
|
101870165 |
max2208 |
A |
Dec. 20, 2020, 3:17 p.m. |
OK |
PyPy 3 |
TESTS |
11 |
139 |
0 |
|
|
101863648 |
VBikov |
A |
Dec. 20, 2020, 3:09 p.m. |
OK |
PyPy 3 |
TESTS |
11 |
139 |
0 |
|
|
101862454 |
VadimKamalov |
A |
Dec. 20, 2020, 3:08 p.m. |
OK |
PyPy 3 |
TESTS |
11 |
139 |
0 |
|
|
101864711 |
IlyinAD |
A |
Dec. 20, 2020, 3:10 p.m. |
OK |
PyPy 3 |
TESTS |
11 |
139 |
1126400 |
|
|
101932318 |
akkempavan2000 |
A |
Dec. 21, 2020, 5:41 a.m. |
OK |
Python 3 |
TESTS |
11 |
93 |
0 |
|
|
101920512 |
premik |
A |
Dec. 20, 2020, 10:28 p.m. |
OK |
Python 3 |
TESTS |
11 |
93 |
0 |
|
|
101902604 |
ikonn2004 |
A |
Dec. 20, 2020, 4:59 p.m. |
OK |
Python 3 |
TESTS |
11 |
93 |
0 |
|
|
101902238 |
RomanDizzy |
A |
Dec. 20, 2020, 4:58 p.m. |
OK |
Python 3 |
TESTS |
11 |
93 |
0 |
|
|
101900235 |
justanapple |
A |
Dec. 20, 2020, 4:52 p.m. |
OK |
Python 3 |
TESTS |
11 |
93 |
0 |
|
|
101888073 |
nekabr |
A |
Dec. 20, 2020, 4:09 p.m. |
OK |
Python 3 |
TESTS |
11 |
93 |
0 |
|
|
101887943 |
Dubovoy6211 |
A |
Dec. 20, 2020, 4:09 p.m. |
OK |
Python 3 |
TESTS |
11 |
93 |
0 |
|
|
101883435 |
NeKita30 |
A |
Dec. 20, 2020, 3:53 p.m. |
OK |
Python 3 |
TESTS |
11 |
93 |
0 |
|
|
101880172 |
Mariya2020 |
A |
Dec. 20, 2020, 3:42 p.m. |
OK |
Python 3 |
TESTS |
11 |
93 |
0 |
|
|
101880076 |
ronzylonaro |
A |
Dec. 20, 2020, 3:42 p.m. |
OK |
Python 3 |
TESTS |
11 |
93 |
0 |
|
|
101870235 |
yosik |
A |
Dec. 20, 2020, 3:17 p.m. |
OK |
Rust |
TESTS |
11 |
31 |
0 |
|
|
remove filters
Back to search problems