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"Matthew is given two strings a and b , both of length 3 . He thinks it's particularly funny to create two new words by swapping the first character of a with the first character of b . He wants you to output a and b after the swap. Note that the new words may not necessarily be different. The first line contains t ( 1 <= q t <= q 100 ) -- the number of test cases. The first and only line of each test case contains two space-separated strings, a and b , both of length 3 . The strings only contain lowercase Latin letters. For each test case, after the swap, output a and b , separated by a space. "... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
265404270 |
Lismar |
A |
June 11, 2024, 7:32 p.m. |
OK |
C# 10 |
TESTS |
2 |
61 |
0 |
|
|
265443174 |
Manpreet_Kaur |
A |
June 12, 2024, 5:53 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
2 |
30 |
0 |
|
|
265437170 |
PHY253611 |
A |
June 12, 2024, 4:53 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
2 |
30 |
0 |
|
|
265434968 |
000ywq |
A |
June 12, 2024, 4:26 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
2 |
30 |
0 |
|
|
265432076 |
ShengaTime |
A |
June 12, 2024, 3:51 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
2 |
30 |
0 |
|
|
265430455 |
Arpit.1 |
A |
June 12, 2024, 3:29 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
2 |
30 |
0 |
|
|
265425319 |
mdnazmulislam |
A |
June 12, 2024, 2:18 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
2 |
30 |
0 |
|
|
265422554 |
soumithvardhan06 |
A |
June 12, 2024, 1:26 a.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
2 |
30 |
0 |
|
|
265417770 |
lolstretch |
A |
June 11, 2024, 11:27 p.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
2 |
30 |
0 |
|
|
265398475 |
apurbmishra121212 |
A |
June 11, 2024, 6:30 p.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
2 |
30 |
0 |
|
|
265399051 |
Arif31415 |
A |
June 11, 2024, 6:35 p.m. |
OK |
C++14 (GCC 6-32) |
TESTS |
2 |
30 |
0 |
|
|
265421396 |
tnakao |
A |
June 12, 2024, 1:01 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
2 |
15 |
0 |
|
|
265440966 |
pawan.kumar.ug21 |
A |
June 12, 2024, 5:33 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
2 |
15 |
0 |
|
|
265437546 |
NeeeraJ |
A |
June 12, 2024, 4:57 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
2 |
15 |
0 |
|
|
265434410 |
Eternityo.o |
A |
June 12, 2024, 4:19 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
2 |
15 |
0 |
|
|
265431076 |
Zhidkiy |
A |
June 12, 2024, 3:37 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
2 |
15 |
0 |
|
|
265429369 |
LIT2022032 |
A |
June 12, 2024, 3:15 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
2 |
15 |
0 |
|
|
265427643 |
k3x9_ |
A |
June 12, 2024, 2:52 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
2 |
15 |
0 |
|
|
265427376 |
Ashwaghosh_ai |
A |
June 12, 2024, 2:48 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
2 |
15 |
0 |
|
|
265421905 |
lazydev01 |
A |
June 12, 2024, 1:12 a.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
2 |
15 |
0 |
|
|
265404935 |
PinnacleSpirit |
A |
June 11, 2024, 7:39 p.m. |
OK |
C++17 (GCC 7-32) |
TESTS |
2 |
15 |
0 |
|
|
265407503 |
qrq4 |
A |
June 11, 2024, 8:10 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
2 |
15 |
0 |
|
|
265440484 |
bhargavreddy007 |
A |
June 12, 2024, 5:28 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
2 |
15 |
0 |
|
|
265439341 |
divyenduvimal |
A |
June 12, 2024, 5:17 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
2 |
15 |
0 |
|
|
265438238 |
luis01qs |
A |
June 12, 2024, 5:05 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
2 |
15 |
0 |
|
|
265436364 |
maity.amit |
A |
June 12, 2024, 4:43 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
2 |
15 |
0 |
|
|
265435453 |
rw66 |
A |
June 12, 2024, 4:31 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
2 |
15 |
0 |
|
|
265434043 |
keshawrk94 |
A |
June 12, 2024, 4:15 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
2 |
15 |
0 |
|
|
265423500 |
Satyam_Atal_605 |
A |
June 12, 2024, 1:47 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
2 |
15 |
0 |
|
|
265423169 |
namanbhardwaj1454 |
A |
June 12, 2024, 1:40 a.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
2 |
15 |
0 |
|
|
265401176 |
maybeAayan |
A |
June 11, 2024, 6:57 p.m. |
OK |
C++20 (GCC 13-64) |
TESTS |
2 |
15 |
0 |
|
|
265414954 |
bluemegane |
A |
June 11, 2024, 10:13 p.m. |
OK |
C# 8 |
TESTS |
2 |
108 |
0 |
|
|
265402346 |
Adityas_231000004 |
A |
June 11, 2024, 7:10 p.m. |
OK |
GNU C11 |
TESTS |
2 |
15 |
0 |
|
|
265398112 |
Anzir_Noman |
A |
June 11, 2024, 6:26 p.m. |
OK |
GNU C11 |
TESTS |
2 |
30 |
102400 |
|
|
265395738 |
NightWING2435 |
A |
June 11, 2024, 6:06 p.m. |
OK |
GNU C11 |
TESTS |
2 |
46 |
0 |
|
|
265391684 |
petchimani11 |
A |
June 11, 2024, 5:41 p.m. |
OK |
GNU C11 |
TESTS |
2 |
46 |
0 |
|
|
265398721 |
kushina__ |
A |
June 11, 2024, 6:32 p.m. |
OK |
GNU C11 |
TESTS |
2 |
61 |
0 |
|
|
265402461 |
N_RIFAT22 |
A |
June 11, 2024, 7:11 p.m. |
OK |
GNU C11 |
TESTS |
2 |
77 |
0 |
|
|
265393716 |
crapcode |
A |
June 11, 2024, 5:50 p.m. |
OK |
Go |
TESTS |
2 |
46 |
0 |
|
|
265434545 |
xylu |
A |
June 12, 2024, 4:21 a.m. |
OK |
Go |
TESTS |
2 |
46 |
0 |
|
|
265400178 |
w0ik |
A |
June 11, 2024, 6:48 p.m. |
OK |
Go |
TESTS |
2 |
46 |
0 |
|
|
265392155 |
XxD4rkV0id |
A |
June 11, 2024, 5:45 p.m. |
OK |
Go |
TESTS |
2 |
46 |
0 |
|
|
265412840 |
1936557 |
A |
June 11, 2024, 9:26 p.m. |
OK |
Haskell |
TESTS |
2 |
46 |
0 |
|
|
265413898 |
Eslam_Ahmed |
A |
June 11, 2024, 9:49 p.m. |
OK |
Java 21 |
TESTS |
2 |
156 |
307200 |
|
|
265426042 |
Freedom_lifelong |
A |
June 12, 2024, 2:29 a.m. |
OK |
Java 21 |
TESTS |
2 |
171 |
614400 |
|
|
265444070 |
vishal2003gaikwad |
A |
June 12, 2024, 6:02 a.m. |
OK |
Java 21 |
TESTS |
2 |
171 |
716800 |
|
|
265433402 |
Aarush_Kinhikar |
A |
June 12, 2024, 4:07 a.m. |
OK |
Java 21 |
TESTS |
2 |
186 |
1024000 |
|
|
265420750 |
ShadowBeast_13 |
A |
June 12, 2024, 12:45 a.m. |
OK |
Java 21 |
TESTS |
2 |
187 |
819200 |
|
|
265437956 |
shubham_2166 |
A |
June 12, 2024, 5:01 a.m. |
OK |
Java 21 |
TESTS |
2 |
202 |
409600 |
|
|
265406872 |
cosenza |
A |
June 11, 2024, 8:03 p.m. |
OK |
Java 21 |
TESTS |
2 |
202 |
614400 |
|
|
265409919 |
RishiCodes |
A |
June 11, 2024, 8:37 p.m. |
OK |
Java 21 |
TESTS |
2 |
202 |
819200 |
|
|
265439999 |
Vinesh_01 |
A |
June 12, 2024, 5:23 a.m. |
OK |
Java 21 |
TESTS |
2 |
202 |
1024000 |
|
|
265435545 |
debu_27 |
A |
June 12, 2024, 4:32 a.m. |
OK |
Java 21 |
TESTS |
2 |
217 |
0 |
|
|
265393789 |
Sarthak_Kharka |
A |
June 11, 2024, 5:51 p.m. |
OK |
Java 8 |
TESTS |
2 |
108 |
0 |
|
|
265439935 |
Mr.Numerator_007 |
A |
June 12, 2024, 5:23 a.m. |
OK |
Java 8 |
TESTS |
2 |
124 |
0 |
|
|
265436071 |
coderman2004 |
A |
June 12, 2024, 4:39 a.m. |
OK |
Java 8 |
TESTS |
2 |
124 |
0 |
|
|
265417012 |
ankushtyagi |
A |
June 11, 2024, 11:07 p.m. |
OK |
Java 8 |
TESTS |
2 |
124 |
0 |
|
|
265396348 |
2manas1 |
A |
June 11, 2024, 6:11 p.m. |
OK |
Java 8 |
TESTS |
2 |
124 |
0 |
|
|
265406792 |
Isha_Chauhan001 |
A |
June 11, 2024, 8:02 p.m. |
OK |
Java 8 |
TESTS |
2 |
139 |
0 |
|
|
265395051 |
arpitachauhan4182 |
A |
June 11, 2024, 6:01 p.m. |
OK |
Java 8 |
TESTS |
2 |
139 |
0 |
|
|
265436110 |
ShivangiRai17 |
A |
June 12, 2024, 4:39 a.m. |
OK |
Java 8 |
TESTS |
2 |
140 |
0 |
|
|
265426322 |
Tushar0sharmA |
A |
June 12, 2024, 2:33 a.m. |
OK |
Java 8 |
TESTS |
2 |
140 |
0 |
|
|
265401625 |
TheCoder12345324 |
A |
June 11, 2024, 7:02 p.m. |
OK |
Java 8 |
TESTS |
2 |
140 |
0 |
|
|
265420626 |
gouravasdeo11 |
A |
June 12, 2024, 12:42 a.m. |
OK |
Kotlin 1.9 |
TESTS |
2 |
171 |
0 |
|
|
265396571 |
_Gh_ost_ |
A |
June 11, 2024, 6:13 p.m. |
OK |
Node.js |
TESTS |
2 |
77 |
0 |
|
|
265401358 |
cryptickid91 |
A |
June 11, 2024, 6:59 p.m. |
OK |
Node.js |
TESTS |
2 |
77 |
102400 |
|
|
265425311 |
itzdenkivn |
A |
June 12, 2024, 2:18 a.m. |
OK |
PyPy 3 |
TESTS |
2 |
62 |
0 |
|
|
265406461 |
aboudfialah98 |
A |
June 11, 2024, 7:57 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
62 |
0 |
|
|
265431102 |
Mr_Indian |
A |
June 12, 2024, 3:38 a.m. |
OK |
PyPy 3 |
TESTS |
2 |
77 |
0 |
|
|
265403583 |
DAGGERWRATH |
A |
June 11, 2024, 7:24 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
77 |
0 |
|
|
265403259 |
boehmer6669 |
A |
June 11, 2024, 7:20 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
77 |
0 |
|
|
265400288 |
Kefrov |
A |
June 11, 2024, 6:49 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
77 |
0 |
|
|
265400033 |
perfect_dash |
A |
June 11, 2024, 6:46 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
77 |
0 |
|
|
265392355 |
Juraj2134 |
A |
June 11, 2024, 5:46 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
77 |
614400 |
|
|
265432803 |
Madhav_08 |
A |
June 12, 2024, 4 a.m. |
OK |
PyPy 3 |
TESTS |
2 |
78 |
0 |
|
|
265394257 |
itachi_157 |
A |
June 11, 2024, 5:55 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
92 |
0 |
|
|
265429843 |
mengxinzcl |
A |
June 12, 2024, 3:21 a.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
46 |
0 |
|
|
265420678 |
23stuzyp |
A |
June 12, 2024, 12:43 a.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
46 |
0 |
|
|
265409952 |
ehchen10 |
A |
June 11, 2024, 8:38 p.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
61 |
0 |
|
|
265406508 |
fayk |
A |
June 11, 2024, 7:58 p.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
61 |
0 |
|
|
265402182 |
DDato |
A |
June 11, 2024, 7:08 p.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
61 |
0 |
|
|
265391185 |
AyuAnchor |
A |
June 11, 2024, 5:38 p.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
61 |
0 |
|
|
265442968 |
wyzkeyy |
A |
June 12, 2024, 5:51 a.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
62 |
0 |
|
|
265433791 |
Diksha_goyal |
A |
June 12, 2024, 4:12 a.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
62 |
0 |
|
|
265431184 |
hirose2020 |
A |
June 12, 2024, 3:39 a.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
62 |
0 |
|
|
265430859 |
Youarenotgood |
A |
June 12, 2024, 3:34 a.m. |
OK |
PyPy 3-64 |
TESTS |
2 |
62 |
0 |
|
|
265436942 |
quinox |
A |
June 12, 2024, 4:50 a.m. |
OK |
Python 3 |
TESTS |
2 |
46 |
0 |
|
|
265434709 |
naraink007 |
A |
June 12, 2024, 4:23 a.m. |
OK |
Python 3 |
TESTS |
2 |
46 |
0 |
|
|
265432133 |
naveents1915 |
A |
June 12, 2024, 3:51 a.m. |
OK |
Python 3 |
TESTS |
2 |
46 |
0 |
|
|
265431582 |
mvishok |
A |
June 12, 2024, 3:44 a.m. |
OK |
Python 3 |
TESTS |
2 |
46 |
0 |
|
|
265427144 |
C0mmandBlock |
A |
June 12, 2024, 2:45 a.m. |
OK |
Python 3 |
TESTS |
2 |
46 |
0 |
|
|
265426599 |
C0mmandBlock |
A |
June 12, 2024, 2:38 a.m. |
OK |
Python 3 |
TESTS |
2 |
46 |
0 |
|
|
265426269 |
210548735 |
A |
June 12, 2024, 2:33 a.m. |
OK |
Python 3 |
TESTS |
2 |
46 |
0 |
|
|
265422148 |
l1ch40 |
A |
June 12, 2024, 1:18 a.m. |
OK |
Python 3 |
TESTS |
2 |
46 |
0 |
|
|
265418640 |
deboraleda |
A |
June 11, 2024, 11:52 p.m. |
OK |
Python 3 |
TESTS |
2 |
46 |
0 |
|
|
265410271 |
vjudge.4 |
A |
June 11, 2024, 8:42 p.m. |
OK |
Python 3 |
TESTS |
2 |
46 |
0 |
|
|
265436787 |
10000 |
A |
June 12, 2024, 4:48 a.m. |
OK |
Rust 2021 |
TESTS |
2 |
46 |
0 |
|
|
265418369 |
DreadedHippy |
A |
June 11, 2024, 11:43 p.m. |
OK |
Rust 2021 |
TESTS |
2 |
46 |
0 |
|
|
remove filters
Back to search problems