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'Monocarp is working on his new site, and the current challenge is to make the users pick strong passwords. Monocarp decided that strong passwords should satisfy the following conditions: Note that it 's allowed for the password to have only letters or only digits. Monocarp managed to implement the first condition, but he struggles with the remaining ones. Can you help him to verify the passwords? The first line contains a single integer t ( 1 <= t <= 1000 ) -- the number of testcases. The first line of each testcase contains a single integer n ( 1 <= n <= 20 ) -- the length of the password. The second line contains a string, consisting of exactly n characters. Each character is either a lowercase Latin letter or a digit. For each testcase, print "YES" if the given password is strong and "NO" otherwise. In the second testcase, the letters are not sorted in the non-decreasing order. In the fourth testcase, there is a digit that comes after a letter -- digit '1 ' after a letter 'c '. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
263436681 |
og.kostya |
A |
May 31, 2024, 8:29 a.m. |
OK |
C# 10 |
TESTS |
10 |
124 |
0 |
|
|
263401311 |
karamkontar |
A |
May 31, 2024, 2:50 a.m. |
OK |
C# 10 |
TESTS |
10 |
124 |
614400 |
|
|
263397365 |
Chuong |
A |
May 31, 2024, 1:33 a.m. |
OK |
C# 10 |
TESTS |
10 |
140 |
0 |
|
|
263401270 |
karamkontar |
A |
May 31, 2024, 2:49 a.m. |
OK |
C# 10 |
TESTS |
10 |
155 |
614400 |
|
|
263689559 |
huangkx |
A |
June 2, 2024, 1:20 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
10 |
46 |
0 |
|
|
263688674 |
Ammar_23 |
A |
June 2, 2024, 12:55 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
10 |
46 |
0 |
|
|
263666348 |
Suparna7 |
A |
June 1, 2024, 5:54 p.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
10 |
46 |
0 |
|
|
263662172 |
bNaresh |
A |
June 1, 2024, 5:14 p.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
10 |
46 |
0 |
|
|
263655529 |
MLCFE |
A |
June 1, 2024, 4:20 p.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
10 |
46 |
0 |
|
|
263634883 |
Eric159357CF |
A |
June 1, 2024, 1:23 p.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
10 |
46 |
0 |
|
|
263638828 |
Kent530 |
A |
June 1, 2024, 1:57 p.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
10 |
46 |
0 |
|
|
263695338 |
cooking_master |
A |
June 2, 2024, 3:32 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
10 |
46 |
0 |
|
|
263694307 |
2024CZL |
A |
June 2, 2024, 3:11 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
10 |
46 |
0 |
|
|
263691203 |
jintongyu |
A |
June 2, 2024, 2:04 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
10 |
46 |
0 |
|
|
263572056 |
170zhiyixi |
A |
June 1, 2024, 4:13 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
10 |
31 |
0 |
|
|
263523641 |
ashmelev |
A |
May 31, 2024, 4:05 p.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
10 |
31 |
0 |
|
|
263693989 |
SkyMagic |
A |
June 2, 2024, 3:04 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
10 |
46 |
0 |
|
|
263704661 |
llzero04 |
A |
June 2, 2024, 5:53 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
10 |
46 |
0 |
|
|
263704460 |
Mosey |
A |
June 2, 2024, 5:50 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
10 |
46 |
0 |
|
|
263701229 |
vanshulagarwal |
A |
June 2, 2024, 5:09 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
10 |
46 |
0 |
|
|
263697451 |
house_guard |
A |
June 2, 2024, 4:09 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
10 |
46 |
0 |
|
|
263696181 |
Chinmay_Kulkarni_Codes |
A |
June 2, 2024, 3:47 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
10 |
46 |
0 |
|
|
263694942 |
jims77 |
A |
June 2, 2024, 3:24 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
10 |
46 |
0 |
|
|
263694692 |
AvadaKedavara |
A |
June 2, 2024, 3:19 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
10 |
46 |
0 |
|
|
263407133 |
prakharmishra |
A |
May 31, 2024, 4:09 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
10 |
31 |
0 |
|
|
263534610 |
dominospizza |
A |
May 31, 2024, 5:42 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
10 |
31 |
102400 |
|
|
263702457 |
atharv_j07 |
A |
June 2, 2024, 5:25 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
10 |
46 |
0 |
|
|
263695334 |
MIKEFENG |
A |
June 2, 2024, 3:32 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
10 |
46 |
0 |
|
|
263694734 |
action-e |
A |
June 2, 2024, 3:20 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
10 |
46 |
0 |
|
|
263690207 |
M0Ren_R33 |
A |
June 2, 2024, 1:36 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
10 |
46 |
0 |
|
|
263677816 |
sofiaklim |
A |
June 1, 2024, 8:07 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
10 |
46 |
0 |
|
|
263679999 |
Tiger0124 |
A |
June 1, 2024, 8:42 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
10 |
46 |
0 |
|
|
263679229 |
Ivan_Filippov |
A |
June 1, 2024, 8:29 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
10 |
46 |
0 |
|
|
263678612 |
sonni_44ka |
A |
June 1, 2024, 8:20 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
10 |
46 |
0 |
|
|
263389605 |
bluemegane |
A |
May 30, 2024, 9:59 p.m. |
OK |
C# 8 |
TESTS |
10 |
124 |
0 |
|
|
263381322 |
Cane-no-fly |
A |
May 30, 2024, 7:34 p.m. |
OK |
GNU C11 |
TESTS |
10 |
46 |
0 |
|
|
263606181 |
xialingn |
A |
June 1, 2024, 9:27 a.m. |
OK |
GNU C11 |
TESTS |
10 |
46 |
0 |
|
|
263545187 |
attractors |
A |
May 31, 2024, 7:36 p.m. |
OK |
GNU C11 |
TESTS |
10 |
46 |
0 |
|
|
263526118 |
Anonymous_HF |
A |
May 31, 2024, 4:27 p.m. |
OK |
GNU C11 |
TESTS |
10 |
46 |
0 |
|
|
263434418 |
alien_huntrr |
A |
May 31, 2024, 8:09 a.m. |
OK |
GNU C11 |
TESTS |
10 |
46 |
0 |
|
|
263545978 |
al_anas404 |
A |
May 31, 2024, 7:49 p.m. |
OK |
GNU C11 |
TESTS |
10 |
46 |
102400 |
|
|
263421234 |
ankitnayek700 |
A |
May 31, 2024, 6:26 a.m. |
OK |
GNU C11 |
TESTS |
10 |
46 |
102400 |
|
|
263541684 |
timonti |
A |
May 31, 2024, 6:52 p.m. |
OK |
GNU C11 |
TESTS |
10 |
62 |
102400 |
|
|
263434825 |
Minrasta |
A |
May 31, 2024, 8:13 a.m. |
OK |
GNU C11 |
TESTS |
10 |
62 |
102400 |
|
|
263599730 |
pragspuda |
A |
June 1, 2024, 8:35 a.m. |
OK |
GNU C11 |
TESTS |
10 |
77 |
0 |
|
|
263655411 |
loyalnui |
A |
June 1, 2024, 4:19 p.m. |
OK |
Go |
TESTS |
10 |
46 |
102400 |
|
|
263656818 |
nguyenquocthao00 |
A |
June 1, 2024, 4:30 p.m. |
OK |
Go |
TESTS |
10 |
62 |
0 |
|
|
263400638 |
79209748 |
A |
May 31, 2024, 2:39 a.m. |
OK |
Go |
TESTS |
10 |
62 |
0 |
|
|
263382804 |
ic3dra9on |
A |
May 30, 2024, 7:55 p.m. |
OK |
Go |
TESTS |
10 |
77 |
204800 |
|
|
263393762 |
crapcode |
A |
May 30, 2024, 11:54 p.m. |
OK |
Go |
TESTS |
10 |
78 |
0 |
|
|
263540121 |
shaili17 |
A |
May 31, 2024, 6:34 p.m. |
OK |
Java 21 |
TESTS |
10 |
218 |
512000 |
|
|
263534568 |
SD125 |
A |
May 31, 2024, 5:42 p.m. |
OK |
Java 21 |
TESTS |
10 |
218 |
1331200 |
|
|
263621333 |
rams47 |
A |
June 1, 2024, 11:27 a.m. |
OK |
Java 21 |
TESTS |
10 |
233 |
42188800 |
|
|
263526577 |
Suriya_2805 |
A |
May 31, 2024, 4:31 p.m. |
OK |
Java 21 |
TESTS |
10 |
234 |
819200 |
|
|
263399049 |
ashBorn_08 |
A |
May 31, 2024, 2:09 a.m. |
OK |
Java 21 |
TESTS |
10 |
249 |
102400 |
|
|
263395909 |
ItsLever |
A |
May 31, 2024, 12:57 a.m. |
OK |
Java 21 |
TESTS |
10 |
249 |
307200 |
|
|
263403956 |
rishirajsingh |
A |
May 31, 2024, 3:28 a.m. |
OK |
Java 21 |
TESTS |
10 |
249 |
512000 |
|
|
263382902 |
dew.nsh |
A |
May 30, 2024, 7:56 p.m. |
OK |
Java 21 |
TESTS |
10 |
249 |
614400 |
|
|
263425521 |
SecondThread |
A |
May 31, 2024, 6:58 a.m. |
OK |
Java 21 |
TESTS |
10 |
249 |
42188800 |
|
|
263587726 |
ApocJTL |
A |
June 1, 2024, 6:55 a.m. |
OK |
Java 21 |
TESTS |
10 |
250 |
512000 |
|
|
263544014 |
Noureldin_Khaled |
A |
May 31, 2024, 7:20 p.m. |
OK |
Java 8 |
TESTS |
10 |
124 |
0 |
|
|
263432550 |
Prince_Nandha |
A |
May 31, 2024, 7:54 a.m. |
OK |
Java 8 |
TESTS |
10 |
139 |
0 |
|
|
263413877 |
Q_R_Y |
A |
May 31, 2024, 5:20 a.m. |
OK |
Java 8 |
TESTS |
10 |
139 |
0 |
|
|
263520826 |
Night1324 |
A |
May 31, 2024, 3:41 p.m. |
OK |
Java 8 |
TESTS |
10 |
140 |
0 |
|
|
263509150 |
abdulrahmanElfeky |
A |
May 31, 2024, 2:05 p.m. |
OK |
Java 8 |
TESTS |
10 |
140 |
0 |
|
|
263660095 |
f20230203 |
A |
June 1, 2024, 4:56 p.m. |
OK |
Java 8 |
TESTS |
10 |
155 |
0 |
|
|
263609943 |
codeanand17 |
A |
June 1, 2024, 9:59 a.m. |
OK |
Java 8 |
TESTS |
10 |
155 |
0 |
|
|
263586132 |
coderman2004 |
A |
June 1, 2024, 6:43 a.m. |
OK |
Java 8 |
TESTS |
10 |
155 |
0 |
|
|
263565750 |
Rianj |
A |
June 1, 2024, 2:51 a.m. |
OK |
Java 8 |
TESTS |
10 |
155 |
0 |
|
|
263403150 |
yvbf |
A |
May 31, 2024, 3:17 a.m. |
OK |
Java 8 |
TESTS |
10 |
155 |
0 |
|
|
263434025 |
Vaibhav_Domadia |
A |
May 31, 2024, 8:06 a.m. |
OK |
Kotlin 1.9 |
TESTS |
10 |
155 |
0 |
|
|
263704028 |
bhanusribanothu |
A |
June 2, 2024, 5:45 a.m. |
OK |
PyPy 3 |
TESTS |
10 |
108 |
1740800 |
|
|
263533994 |
sky_coder_ |
A |
May 31, 2024, 5:37 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
108 |
1945600 |
|
|
263432869 |
rrr213 |
A |
May 31, 2024, 7:57 a.m. |
OK |
PyPy 3 |
TESTS |
10 |
155 |
3584000 |
|
|
263383285 |
Kefrov |
A |
May 30, 2024, 8:01 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
155 |
3686400 |
|
|
263424969 |
Deepak_0123 |
A |
May 31, 2024, 6:54 a.m. |
OK |
PyPy 3 |
TESTS |
10 |
171 |
3891200 |
|
|
263528859 |
Hlamaged |
A |
May 31, 2024, 4:51 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
171 |
4505600 |
|
|
263645430 |
codsila |
A |
June 1, 2024, 2:54 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
171 |
6144000 |
|
|
263381059 |
Paras2856 |
A |
May 30, 2024, 7:31 p.m. |
OK |
PyPy 3 |
TESTS |
10 |
187 |
4812800 |
|
|
263399466 |
JeanExtreme002 |
A |
May 31, 2024, 2:17 a.m. |
OK |
PyPy 3 |
TESTS |
10 |
233 |
5017600 |
|
|
263687198 |
nealzane |
A |
June 2, 2024, 12:02 a.m. |
OK |
PyPy 3 |
TESTS |
10 |
233 |
5324800 |
|
|
263527507 |
singh.eureka |
A |
May 31, 2024, 4:39 p.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
77 |
1433600 |
|
|
263595308 |
Youarenotgood |
A |
June 1, 2024, 7:58 a.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
78 |
1433600 |
|
|
263426354 |
Taraksriram |
A |
May 31, 2024, 7:05 a.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
92 |
2048000 |
|
|
263515735 |
bergus |
A |
May 31, 2024, 2:57 p.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
93 |
1331200 |
|
|
263407989 |
gardengnome |
A |
May 31, 2024, 4:19 a.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
93 |
1331200 |
|
|
263515845 |
bergus |
A |
May 31, 2024, 2:58 p.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
93 |
1433600 |
|
|
263645739 |
aryan.sinha2002 |
A |
June 1, 2024, 2:56 p.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
93 |
2150400 |
|
|
263539771 |
TediousR |
A |
May 31, 2024, 6:31 p.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
93 |
2150400 |
|
|
263526994 |
singh.eureka |
A |
May 31, 2024, 4:35 p.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
93 |
2150400 |
|
|
263667591 |
DemonicAK |
A |
June 1, 2024, 6:05 p.m. |
OK |
PyPy 3-64 |
TESTS |
10 |
93 |
2252800 |
|
|
263556333 |
edsxbrzero |
A |
May 31, 2024, 11:20 p.m. |
OK |
Python 3 |
TESTS |
10 |
61 |
0 |
|
|
263526881 |
garg2023 |
A |
May 31, 2024, 4:34 p.m. |
OK |
Python 3 |
TESTS |
10 |
61 |
0 |
|
|
263703451 |
DC_0001 |
A |
June 2, 2024, 5:39 a.m. |
OK |
Python 3 |
TESTS |
10 |
62 |
0 |
|
|
263682145 |
celsoares |
A |
June 1, 2024, 9:28 p.m. |
OK |
Python 3 |
TESTS |
10 |
62 |
0 |
|
|
263639660 |
tdpencil |
A |
June 1, 2024, 2:04 p.m. |
OK |
Python 3 |
TESTS |
10 |
62 |
0 |
|
|
263637188 |
awesomep |
A |
June 1, 2024, 1:42 p.m. |
OK |
Python 3 |
TESTS |
10 |
62 |
0 |
|
|
263614272 |
ZeoCool |
A |
June 1, 2024, 10:37 a.m. |
OK |
Python 3 |
TESTS |
10 |
62 |
0 |
|
|
263593991 |
ashaik |
A |
June 1, 2024, 7:47 a.m. |
OK |
Python 3 |
TESTS |
10 |
62 |
0 |
|
|
263592706 |
ArfatBhatti |
A |
June 1, 2024, 7:36 a.m. |
OK |
Python 3 |
TESTS |
10 |
62 |
0 |
|
|
263568386 |
hirose2020 |
A |
June 1, 2024, 3:30 a.m. |
OK |
Python 3 |
TESTS |
10 |
62 |
0 |
|
|
263599640 |
M1ngXu |
A |
June 1, 2024, 8:34 a.m. |
OK |
Rust 2021 |
TESTS |
10 |
62 |
0 |
|
|
263418539 |
rishabhxchoudhary |
A |
May 31, 2024, 6:04 a.m. |
OK |
Rust 2021 |
TESTS |
10 |
62 |
0 |
|
|
263397684 |
n0b0dy01 |
A |
May 31, 2024, 1:40 a.m. |
OK |
Rust 2021 |
TESTS |
10 |
78 |
0 |
|
|
remove filters
Back to search problems