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'There is a string a (unknown to you), consisting of lowercase Latin letters, encrypted according to the following rule into string s : You are given string s , and you need to output the initial string a . In other words, you need to decrypt string s . Note that each string encrypted in this way is decrypted uniquely. The first line of the input contains a single integer t ( 1 <= t <= 1000 ) -- the number of test cases. The descriptions of the test cases follow. The first line of each test case contains a single integer n ( 2 <= n <= 100 ) -- the length of the encrypted message. The second line of each test case contains a string s of length n -- the encrypted message obtained from some string a . For each test case, output the decrypted message a on a separate line. In the first encrypted message, the letter a is encrypted as aba , and the letter c is encrypted as cabac . In the second encrypted message, only one letter q is encrypted as qzxcq . In the third encrypted message, zero characters are added to each letter. '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
208847633 |
AutumnMist |
A |
June 7, 2023, 3:20 a.m. |
OK |
C# 10 |
TESTS |
3 |
31 |
204800 |
|
|
208847570 |
AutumnMist |
A |
June 7, 2023, 3:18 a.m. |
OK |
C# 10 |
TESTS |
3 |
31 |
204800 |
|
|
208831093 |
Dhru008 |
A |
June 6, 2023, 7:51 p.m. |
OK |
C# 8 |
TESTS |
3 |
61 |
307200 |
|
|
208828505 |
uNNastasya |
A |
June 6, 2023, 7:10 p.m. |
OK |
C# 8 |
TESTS |
3 |
62 |
102400 |
|
|
208837719 |
bluemegane |
A |
June 6, 2023, 10:32 p.m. |
OK |
C# 8 |
TESTS |
3 |
93 |
204800 |
|
|
208832087 |
Parihar01 |
A |
June 6, 2023, 8:08 p.m. |
OK |
Clang++17 Diagnostics |
TESTS |
3 |
62 |
0 |
|
|
208840304 |
Ywave |
A |
June 7, 2023, 12:19 a.m. |
OK |
Clang++20 Diagnostics |
TESTS |
3 |
15 |
0 |
|
|
208819890 |
Dolaris |
A |
June 6, 2023, 5:37 p.m. |
OK |
Clang++20 Diagnostics |
TESTS |
3 |
30 |
0 |
|
|
208820155 |
Dolaris |
A |
June 6, 2023, 5:39 p.m. |
OK |
Clang++20 Diagnostics |
TESTS |
3 |
31 |
0 |
|
|
208856464 |
adityamastud1 |
A |
June 7, 2023, 5:42 a.m. |
OK |
Clang++20 Diagnostics |
TESTS |
3 |
46 |
0 |
|
|
208819996 |
Dolaris |
A |
June 6, 2023, 5:38 p.m. |
OK |
Clang++20 Diagnostics |
TESTS |
3 |
46 |
0 |
|
|
208831760 |
NenadDapic |
A |
June 6, 2023, 8:02 p.m. |
OK |
FPC |
TESTS |
3 |
30 |
0 |
|
|
208853440 |
JADarius |
A |
June 7, 2023, 4:57 a.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
0 |
|
|
208840607 |
SuperSunShine |
A |
June 7, 2023, 12:31 a.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
0 |
|
|
208822104 |
Md_Almizan |
A |
June 6, 2023, 5:57 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
0 |
|
|
208812562 |
Sabia123Trisha |
A |
June 6, 2023, 4:53 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
0 |
|
|
208824533 |
girish_sai_krishna_18 |
A |
June 6, 2023, 6:21 p.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
102400 |
|
|
208849214 |
swayingdream |
A |
June 7, 2023, 3:47 a.m. |
OK |
GNU C11 |
TESTS |
3 |
15 |
409600 |
|
|
208811215 |
iicewt |
A |
June 6, 2023, 4:49 p.m. |
OK |
GNU C11 |
TESTS |
3 |
30 |
0 |
|
|
208824181 |
lazy_baymax |
A |
June 6, 2023, 6:17 p.m. |
OK |
GNU C11 |
TESTS |
3 |
31 |
0 |
|
|
208849460 |
Joseph08 |
A |
June 7, 2023, 3:52 a.m. |
OK |
GNU C11 |
TESTS |
3 |
31 |
0 |
|
|
208820054 |
abdullah_09c |
A |
June 6, 2023, 5:38 p.m. |
OK |
GNU C11 |
TESTS |
3 |
31 |
0 |
|
|
208842102 |
seekluna |
A |
June 7, 2023, 1:22 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
208842050 |
seekluna |
A |
June 7, 2023, 1:21 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
208841901 |
seekluna |
A |
June 7, 2023, 1:17 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
208841190 |
kyle845 |
A |
June 7, 2023, 12:52 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
208840357 |
lyanl |
A |
June 7, 2023, 12:21 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
208843610 |
katyayni |
A |
June 7, 2023, 2 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
208845150 |
MongoRolls |
A |
June 7, 2023, 2:32 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
208849733 |
guptajirock176 |
A |
June 7, 2023, 3:56 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
208851292 |
andyp3 |
A |
June 7, 2023, 4:22 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
208857040 |
nidhish_shukla |
A |
June 7, 2023, 5:51 a.m. |
OK |
GNU C++14 |
TESTS |
3 |
0 |
0 |
|
|
208853828 |
Scano |
A |
June 7, 2023, 5:03 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
208854968 |
Uday8045 |
A |
June 7, 2023, 5:21 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
208855549 |
Aman_Dangi |
A |
June 7, 2023, 5:29 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
208856028 |
vjudge3 |
A |
June 7, 2023, 5:36 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
208857716 |
siamjotry |
A |
June 7, 2023, 6 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
208853726 |
yeerxiaoqi |
A |
June 7, 2023, 5:01 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
208853599 |
Shubh_30 |
A |
June 7, 2023, 5 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
208853156 |
hydra_cody |
A |
June 7, 2023, 4:52 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
208851671 |
csai-H |
A |
June 7, 2023, 4:29 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
208851471 |
im_anik |
A |
June 7, 2023, 4:25 a.m. |
OK |
GNU C++17 |
TESTS |
3 |
0 |
0 |
|
|
208836951 |
rakib2624 |
A |
June 6, 2023, 10:07 p.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
208852045 |
VeNoM002 |
A |
June 7, 2023, 4:35 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
208850859 |
Fiatiustitia |
A |
June 7, 2023, 4:15 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
208847635 |
xlxys |
A |
June 7, 2023, 3:20 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
208846896 |
kk28xd |
A |
June 7, 2023, 3:06 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
208844287 |
0_Shipul_1 |
A |
June 7, 2023, 2:16 a.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
208839522 |
haku_suki |
A |
June 6, 2023, 11:42 p.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
208834073 |
enslaved |
A |
June 6, 2023, 8:48 p.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
208831100 |
MostafaAlii |
A |
June 6, 2023, 7:51 p.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
208829392 |
SwastikSambhav |
A |
June 6, 2023, 7:24 p.m. |
OK |
GNU C++17 (64) |
TESTS |
3 |
0 |
0 |
|
|
208856083 |
zhangzs |
A |
June 7, 2023, 5:37 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
208856208 |
wa_maker |
A |
June 7, 2023, 5:39 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
208856257 |
Abhi20211 |
A |
June 7, 2023, 5:39 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
208856552 |
PanC_ake |
A |
June 7, 2023, 5:44 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
208856573 |
HONG-LOU |
A |
June 7, 2023, 5:44 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
208857065 |
vkcodeforces |
A |
June 7, 2023, 5:51 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
208857112 |
wuyun |
A |
June 7, 2023, 5:52 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
208857214 |
louayftw |
A |
June 7, 2023, 5:53 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
208857416 |
vasubeladiya |
A |
June 7, 2023, 5:55 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
208857789 |
Nafis_Ahmed_174 |
A |
June 7, 2023, 6:01 a.m. |
OK |
GNU C++20 (64) |
TESTS |
3 |
0 |
0 |
|
|
208836665 |
profchi |
A |
June 6, 2023, 9:58 p.m. |
OK |
Java 11 |
TESTS |
3 |
155 |
0 |
|
|
208820159 |
GradZ002 |
A |
June 6, 2023, 5:39 p.m. |
OK |
Java 11 |
TESTS |
3 |
186 |
0 |
|
|
208856007 |
OGtwelve |
A |
June 7, 2023, 5:36 a.m. |
OK |
Java 11 |
TESTS |
3 |
217 |
0 |
|
|
208848116 |
pankajsirari222 |
A |
June 7, 2023, 3:28 a.m. |
OK |
Java 11 |
TESTS |
3 |
217 |
0 |
|
|
208843521 |
Un_sung |
A |
June 7, 2023, 1:58 a.m. |
OK |
Java 11 |
TESTS |
3 |
217 |
0 |
|
|
208827986 |
Leenelmir |
A |
June 6, 2023, 7:03 p.m. |
OK |
Java 11 |
TESTS |
3 |
218 |
0 |
|
|
208820578 |
bhaumik7544 |
A |
June 6, 2023, 5:43 p.m. |
OK |
Java 11 |
TESTS |
3 |
233 |
0 |
|
|
208850079 |
veilside |
A |
June 7, 2023, 4:02 a.m. |
OK |
Java 11 |
TESTS |
3 |
233 |
102400 |
|
|
208842447 |
s945958 |
A |
June 7, 2023, 1:31 a.m. |
OK |
Java 11 |
TESTS |
3 |
248 |
204800 |
|
|
208848190 |
Dake04 |
A |
June 7, 2023, 3:29 a.m. |
OK |
Java 11 |
TESTS |
3 |
249 |
0 |
|
|
208847089 |
Suraj1607 |
A |
June 7, 2023, 3:10 a.m. |
OK |
Java 17 |
TESTS |
3 |
139 |
307200 |
|
|
208854305 |
Mahesh_6174 |
A |
June 7, 2023, 5:11 a.m. |
OK |
Java 17 |
TESTS |
3 |
140 |
41984000 |
|
|
208813122 |
rated21 |
A |
June 6, 2023, 4:55 p.m. |
OK |
Java 17 |
TESTS |
3 |
155 |
0 |
|
|
208846922 |
kkz666 |
A |
June 7, 2023, 3:07 a.m. |
OK |
Java 17 |
TESTS |
3 |
171 |
204800 |
|
|
208849849 |
rdhakar246 |
A |
June 7, 2023, 3:58 a.m. |
OK |
Java 17 |
TESTS |
3 |
186 |
409600 |
|
|
208834485 |
Ayyylmao |
A |
June 6, 2023, 8:57 p.m. |
OK |
Java 17 |
TESTS |
3 |
186 |
512000 |
|
|
208857868 |
skylord69 |
A |
June 7, 2023, 6:01 a.m. |
OK |
Java 17 |
TESTS |
3 |
186 |
614400 |
|
|
208820992 |
Rachhh_04 |
A |
June 6, 2023, 5:46 p.m. |
OK |
Java 17 |
TESTS |
3 |
187 |
1126400 |
|
|
208818845 |
SuprHUlk |
A |
June 6, 2023, 5:28 p.m. |
OK |
Java 17 |
TESTS |
3 |
202 |
204800 |
|
|
208844458 |
chandana_233 |
A |
June 7, 2023, 2:19 a.m. |
OK |
Java 17 |
TESTS |
3 |
233 |
409600 |
|
|
208825809 |
EliudGarcia2004 |
A |
June 6, 2023, 6:35 p.m. |
OK |
Java 8 |
TESTS |
3 |
93 |
0 |
|
|
208831433 |
Shaker_32 |
A |
June 6, 2023, 7:56 p.m. |
OK |
Java 8 |
TESTS |
3 |
109 |
0 |
|
|
208846192 |
klsane04 |
A |
June 7, 2023, 2:53 a.m. |
OK |
Java 8 |
TESTS |
3 |
139 |
0 |
|
|
208854726 |
tangzhenyu |
A |
June 7, 2023, 5:17 a.m. |
OK |
Java 8 |
TESTS |
3 |
140 |
0 |
|
|
208830067 |
Abhishek.B |
A |
June 6, 2023, 7:34 p.m. |
OK |
Java 8 |
TESTS |
3 |
155 |
0 |
|
|
208851663 |
Hakiobo |
A |
June 7, 2023, 4:28 a.m. |
OK |
Kotlin 1.7 |
TESTS |
3 |
187 |
0 |
|
|
208814036 |
zmshahmeer687 |
A |
June 6, 2023, 4:59 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
15 |
0 |
|
|
208848542 |
IsCulture |
A |
June 7, 2023, 3:35 a.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
15 |
0 |
|
|
208834362 |
OMgL |
A |
June 6, 2023, 8:55 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
15 |
0 |
|
|
208832992 |
pratb09 |
A |
June 6, 2023, 8:24 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
15 |
0 |
|
|
208832216 |
Gadi |
A |
June 6, 2023, 8:10 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
15 |
0 |
|
|
208820651 |
ifti-210041111 |
A |
June 6, 2023, 5:43 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
15 |
0 |
|
|
208815499 |
kumys777 |
A |
June 6, 2023, 5:06 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
15 |
0 |
|
|
208835036 |
DonSilvio |
A |
June 6, 2023, 9:10 p.m. |
OK |
MS C++ 2017 |
TESTS |
3 |
30 |
0 |
|
|
208839930 |
iluvsneklanguage |
A |
June 7, 2023, 12:01 a.m. |
OK |
PyPy 3 |
TESTS |
3 |
108 |
2560000 |
|
|
208836263 |
rasheed_ashen_one |
A |
June 6, 2023, 9:44 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
124 |
2662400 |
|
|
208853182 |
Rahul071103 |
A |
June 7, 2023, 4:52 a.m. |
OK |
PyPy 3 |
TESTS |
3 |
124 |
4710400 |
|
|
208845771 |
pavtlly |
A |
June 7, 2023, 2:45 a.m. |
OK |
PyPy 3 |
TESTS |
3 |
155 |
3891200 |
|
|
208834504 |
LazyRGuy |
A |
June 6, 2023, 8:58 p.m. |
OK |
PyPy 3 |
TESTS |
3 |
155 |
4608000 |
|
|
208850846 |
Beerus789 |
A |
June 7, 2023, 4:14 a.m. |
OK |
PyPy 3 |
TESTS |
3 |
156 |
5427200 |
|
|
208842852 |
pan-xiaolan |
A |
June 7, 2023, 1:41 a.m. |
OK |
PyPy 3 |
TESTS |
3 |
202 |
5632000 |
|
|
208850087 |
kuanc |
A |
June 7, 2023, 4:02 a.m. |
OK |
PyPy 3 |
TESTS |
3 |
202 |
9216000 |
|
|
208821764 |
damya |
A |
June 6, 2023, 5:53 p.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
46 |
2457600 |
|
|
208841985 |
Quick-One |
A |
June 7, 2023, 1:19 a.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
61 |
2560000 |
|
|
208826122 |
reijnnn |
A |
June 6, 2023, 6:38 p.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
62 |
2150400 |
|
|
208841657 |
KS_2003 |
A |
June 7, 2023, 1:10 a.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
62 |
2150400 |
|
|
208819531 |
gardengnome |
A |
June 6, 2023, 5:34 p.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
62 |
2457600 |
|
|
208849893 |
kwin |
A |
June 7, 2023, 3:59 a.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
62 |
2457600 |
|
|
208814551 |
I_Am_That |
A |
June 6, 2023, 5:01 p.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
62 |
2764800 |
|
|
208849071 |
layzer |
A |
June 7, 2023, 3:45 a.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
77 |
3174400 |
|
|
208815551 |
flexr |
A |
June 6, 2023, 5:07 p.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
92 |
2560000 |
|
|
208839200 |
nealzane |
A |
June 6, 2023, 11:29 p.m. |
OK |
PyPy 3-64 |
TESTS |
3 |
92 |
4608000 |
|
|
208848579 |
Litiumn |
A |
June 7, 2023, 3:36 a.m. |
OK |
Python 3 |
TESTS |
3 |
30 |
102400 |
|
|
208855801 |
ashwini_b1 |
A |
June 7, 2023, 5:33 a.m. |
OK |
Python 3 |
TESTS |
3 |
31 |
0 |
|
|
208852001 |
wetler |
A |
June 7, 2023, 4:34 a.m. |
OK |
Python 3 |
TESTS |
3 |
31 |
0 |
|
|
208837941 |
clangell125 |
A |
June 6, 2023, 10:38 p.m. |
OK |
Python 3 |
TESTS |
3 |
31 |
0 |
|
|
208837767 |
chopin123 |
A |
June 6, 2023, 10:33 p.m. |
OK |
Python 3 |
TESTS |
3 |
31 |
0 |
|
|
208833681 |
_GGhost_ |
A |
June 6, 2023, 8:40 p.m. |
OK |
Python 3 |
TESTS |
3 |
31 |
0 |
|
|
208819885 |
rostoki |
A |
June 6, 2023, 5:37 p.m. |
OK |
Python 3 |
TESTS |
3 |
31 |
0 |
|
|
208818826 |
Ankit2406 |
A |
June 6, 2023, 5:28 p.m. |
OK |
Python 3 |
TESTS |
3 |
31 |
0 |
|
|
208831641 |
Anton_Morning |
A |
June 6, 2023, 7:59 p.m. |
OK |
Python 3 |
TESTS |
3 |
31 |
102400 |
|
|
208856833 |
ns2020 |
A |
June 7, 2023, 5:48 a.m. |
OK |
Python 3 |
TESTS |
3 |
46 |
0 |
|
|
208821200 |
matheusdacach |
A |
June 6, 2023, 5:48 p.m. |
OK |
Rust 2021 |
TESTS |
3 |
15 |
204800 |
|
|
remove filters
Back to search problems