Codeforces Round 1062 (Div. 4)

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
2167 Codeforces Round 1062 (Div. 4) FINISHED False 8100 14743523 Oct. 28, 2025, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 51213 ) B Your Name PROGRAMMING sortings strings

Khba is writing his girlfriend's name. He has (n) cubes, each with one lowercase Latin letter written on it. They are arranged in a row, forming a string (s). His girlfriend's name is also a string (t), consisting of (n) lowercase Latin letters. To prove his love, he must check whether it is possible to rearrange the letters of string (s) so that it becomes her name (t). The first line contains an integer (q) ((1 \le q \le 1000)) — the number of test cases. The first line of each test case contains an integer (n) ((1 \le n \le 20)). The second line of each test case contains two distinct strings (s) and (t), each consisting of (n) lowercase Latin letters. For each test case, output " YES " if the letters of (s) can be arranged to form (t); otherwise, output " NO ". You can output the answer in any case (upper or lower). For example, the strings " yEs ", " yes ", " Yes " and " YES " will be recognized as positive responses. In the first example, the initial string is " humitsa ", and the following operations can be performed: swap the first and third characters, resulting in " muhitsa " swap the second and fourth characters, resulting in " mihutsa " swap the third and fifth characters, resulting in " mithusa " swap the fourth and sixth characters, resulting in " mitsuha " In the second example, the initial string is " orhi ", and the following operations can be performed: swap the second and third characters, resulting in " ohri " swap the first and second characters, resulting in " hori "

Tutorials

Arpa Video Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
346545754 Gopi_2006 B Oct. 30, 2025, 12:36 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
346561707 chandrasekhar_01 B Oct. 30, 2025, 4:05 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
346556329 taihoang B Oct. 30, 2025, 2:59 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
346555490 KiNnT B Oct. 30, 2025, 2:50 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
346552188 jsjycj B Oct. 30, 2025, 2:20 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
346550613 Ahmed_Hatem1 B Oct. 30, 2025, 2:06 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
346548942 DaniRocky B Oct. 30, 2025, 1:38 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
346547615 AKAeclipse B Oct. 30, 2025, 1:12 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
346546871 Mostafa.Soliman B Oct. 30, 2025, 12:59 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
346546335 Aloe_Vera_Gel B Oct. 30, 2025, 12:48 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
346402672 Maxwell2005 B Oct. 29, 2025, 3:06 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
346562407 janakisarakadam B Oct. 30, 2025, 4:14 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
346540873 Toninhorf B Oct. 29, 2025, 10:48 p.m. OK C++20 (GCC 13-64) TESTS 3 30 0
346524995 douma_1817 B Oct. 29, 2025, 7:10 p.m. OK C++20 (GCC 13-64) TESTS 3 30 0
346506135 WasithIO B Oct. 29, 2025, 5:06 p.m. OK C++20 (GCC 13-64) TESTS 3 30 0
346413261 HeavnlyDemon B Oct. 29, 2025, 5:22 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
346410810 shashank_jaiswal B Oct. 29, 2025, 4:57 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
346408181 Regenbogen710 B Oct. 29, 2025, 4:22 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
346404043 omkar_512 B Oct. 29, 2025, 3:26 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
346403968 daxisama B Oct. 29, 2025, 3:24 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
346500970 arkanmohamadi837 B Oct. 29, 2025, 4:42 p.m. OK C++23 (GCC 14-64, msys2) TESTS 3 15 0
346553282 ZuToMaYo06 B Oct. 30, 2025, 2:30 a.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
346566496 Benzn B Oct. 30, 2025, 4:47 a.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
346566258 Satyam_kr73 B Oct. 30, 2025, 4:45 a.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
346560373 anusher2012 B Oct. 30, 2025, 3:48 a.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
346548615 sattwiksaha888 B Oct. 30, 2025, 1:32 a.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
346544193 marton0526 B Oct. 30, 2025, 12:02 a.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
346513267 worthNothing B Oct. 29, 2025, 5:47 p.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
346496126 alu12 B Oct. 29, 2025, 4:13 p.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
346489757 yzdy_s B Oct. 29, 2025, 3:36 p.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
346511618 hariniyaragorla B Oct. 29, 2025, 5:37 p.m. OK C# 8 TESTS 3 93 2150400
346533120 hasanhemal B Oct. 29, 2025, 8:30 p.m. OK GNU C11 TESTS 3 30 0
346554068 miraz22 B Oct. 30, 2025, 2:37 a.m. OK GNU C11 TESTS 3 30 102400
346561725 Doaibu123 B Oct. 30, 2025, 4:05 a.m. OK GNU C11 TESTS 3 31 0
346437749 voidtech B Oct. 29, 2025, 9:13 a.m. OK GNU C11 TESTS 3 31 0
346547789 leledawang B Oct. 30, 2025, 1:16 a.m. OK GNU C11 TESTS 3 31 102400
346542710 Mohamed0007 B Oct. 29, 2025, 11:30 p.m. OK GNU C11 TESTS 3 31 102400
346404180 mondysasw2005 B Oct. 29, 2025, 3:28 a.m. OK GNU C11 TESTS 3 31 307200
346570188 AlAmin2230 B Oct. 30, 2025, 5:26 a.m. OK GNU C11 TESTS 3 46 0
346522407 srm.raees B Oct. 29, 2025, 6:48 p.m. OK GNU C11 TESTS 3 46 0
346504578 user_name11 B Oct. 29, 2025, 4:56 p.m. OK GNU C11 TESTS 3 46 0
346487453 abdullahelshebrawy B Oct. 29, 2025, 3:23 p.m. OK Go TESTS 3 31 102400
346517212 DeymosX B Oct. 29, 2025, 6:12 p.m. OK Go TESTS 3 77 102400
346506890 SigVist B Oct. 29, 2025, 5:10 p.m. OK Go TESTS 3 93 512000
346545529 me_shivendra01 B Oct. 30, 2025, 12:31 a.m. OK Java 21 TESTS 3 171 307200
346509126 Sahil_Patel_2507 B Oct. 29, 2025, 5:23 p.m. OK Java 21 TESTS 3 202 512000
346394654 Jhonnata_011 B Oct. 29, 2025, 12:28 a.m. OK Java 21 TESTS 3 202 819200
346508276 VaHiX B Oct. 29, 2025, 5:18 p.m. OK Java 21 TESTS 3 218 0
346515028 bommavarshini B Oct. 29, 2025, 5:58 p.m. OK Java 21 TESTS 3 218 0
346561704 minibin B Oct. 30, 2025, 4:05 a.m. OK Java 21 TESTS 3 218 512000
346397232 ccj123 B Oct. 29, 2025, 1:32 a.m. OK Java 21 TESTS 3 218 614400
346413237 katare2004 B Oct. 29, 2025, 5:22 a.m. OK Java 21 TESTS 3 218 819200
346505339 jagrati789 B Oct. 29, 2025, 5:01 p.m. OK Java 21 TESTS 3 218 2560000
346494306 220108062 B Oct. 29, 2025, 4:03 p.m. OK Java 21 TESTS 3 233 1126400
346413815 lupunish B Oct. 29, 2025, 5:28 a.m. OK Java 8 TESTS 3 108 0
346529176 sarthaKKharKa_18 B Oct. 29, 2025, 7:50 p.m. OK Java 8 TESTS 3 124 0
346405794 kartikdhande772 B Oct. 29, 2025, 3:51 a.m. OK Java 8 TESTS 3 124 0
346390026 leonlian B Oct. 28, 2025, 10:07 p.m. OK Java 8 TESTS 3 124 0
346489989 Chandan_mehra94 B Oct. 29, 2025, 3:38 p.m. OK Java 8 TESTS 3 156 0
346574336 cantbecode B Oct. 30, 2025, 6:05 a.m. OK Java 8 TESTS 3 171 0
346573604 rajbhaveshpatel1 B Oct. 30, 2025, 5:58 a.m. OK Java 8 TESTS 3 171 0
346411061 Ankush981 B Oct. 29, 2025, 4:59 a.m. OK Java 8 TESTS 3 171 0
346403044 SriLalitha.Y B Oct. 29, 2025, 3:11 a.m. OK Java 8 TESTS 3 171 0
346397670 varaammu16 B Oct. 29, 2025, 1:41 a.m. OK Java 8 TESTS 3 171 0
346387273 AhMeD_El-MaLkY B Oct. 28, 2025, 9:41 p.m. OK Kotlin 2.2 TESTS 3 202 0
346507665 VaHiX B Oct. 29, 2025, 5:14 p.m. OK Kotlin 2.2 TESTS 3 218 1433600
346506865 VaHiX B Oct. 29, 2025, 5:10 p.m. OK Mono C# TESTS 3 93 409600
346405206 fazil143 B Oct. 29, 2025, 3:43 a.m. OK Node.js TESTS 3 202 8396800
346523856 mosaab20111 B Oct. 29, 2025, 7 p.m. OK Perl TESTS 3 77 0
346531806 bkdn25.Rainy B Oct. 29, 2025, 8:16 p.m. OK PyPy 3 TESTS 3 155 4096000
346400190 makimakimakki B Oct. 29, 2025, 2:29 a.m. OK PyPy 3 TESTS 3 171 3891200
346382946 Msaz B Oct. 28, 2025, 8:52 p.m. OK PyPy 3 TESTS 3 171 5427200
346499116 krxshh B Oct. 29, 2025, 4:31 p.m. OK PyPy 3 TESTS 3 186 4198400
346486264 kuanc B Oct. 29, 2025, 3:16 p.m. OK PyPy 3 TESTS 3 187 2560000
346520280 Georgy_Hryashev B Oct. 29, 2025, 6:32 p.m. OK PyPy 3 TESTS 3 218 5939200
346487484 Georgy_Hryashev B Oct. 29, 2025, 3:23 p.m. OK PyPy 3 TESTS 3 218 5939200
346550503 mo-hit B Oct. 30, 2025, 2:04 a.m. OK PyPy 3 TESTS 3 233 5324800
346552069 Presi028 B Oct. 30, 2025, 2:19 a.m. OK PyPy 3 TESTS 3 296 8192000
346485881 s0dumb B Oct. 29, 2025, 3:14 p.m. OK PyPy 3-64 TESTS 3 62 1433600
346521441 jvatsal0709 B Oct. 29, 2025, 6:41 p.m. OK PyPy 3-64 TESTS 3 77 1536000
346507085 VaHiX B Oct. 29, 2025, 5:11 p.m. OK PyPy 3-64 TESTS 3 77 1536000
346488273 pusheen_1024 B Oct. 29, 2025, 3:28 p.m. OK PyPy 3-64 TESTS 3 77 1536000
346411600 Sumeet_Sharma_01 B Oct. 29, 2025, 5:05 a.m. OK PyPy 3-64 TESTS 3 77 1536000
346566051 Code.FATHER B Oct. 30, 2025, 4:43 a.m. OK PyPy 3-64 TESTS 3 77 1638400
346413411 javlontoy B Oct. 29, 2025, 5:24 a.m. OK PyPy 3-64 TESTS 3 93 1536000
346407390 HumbleRobo B Oct. 29, 2025, 4:12 a.m. OK PyPy 3-64 TESTS 3 93 1536000
346391624 YhuanDebeste B Oct. 28, 2025, 10:51 p.m. OK PyPy 3-64 TESTS 3 93 1536000
346543367 lattermatter B Oct. 29, 2025, 11:45 p.m. OK PyPy 3-64 TESTS 3 93 2252800
346555783 ranjithkumar5807 B Oct. 30, 2025, 2:53 a.m. OK Python 2 TESTS 3 62 0
346567775 arundhati0711 B Oct. 30, 2025, 5:01 a.m. OK Python 3 TESTS 3 46 0
346511333 waffleprinter B Oct. 29, 2025, 5:36 p.m. OK Python 3 TESTS 3 46 0
346565648 kauz7 B Oct. 30, 2025, 4:38 a.m. OK Python 3 TESTS 3 61 0
346565282 medina.snz B Oct. 30, 2025, 4:34 a.m. OK Python 3 TESTS 3 61 0
346503048 firedespire B Oct. 29, 2025, 4:55 p.m. OK Python 3 TESTS 3 61 0
346412575 cheesesh B Oct. 29, 2025, 5:14 a.m. OK Python 3 TESTS 3 61 0
346406264 tekka_ity B Oct. 29, 2025, 3:57 a.m. OK Python 3 TESTS 3 61 0
346398280 darshrustagi B Oct. 29, 2025, 1:54 a.m. OK Python 3 TESTS 3 61 0
346398499 kris30j B Oct. 29, 2025, 1:58 a.m. OK Python 3 TESTS 3 61 102400
346570367 joker_man_96 B Oct. 30, 2025, 5:28 a.m. OK Python 3 TESTS 3 62 0
346567161 Truestman B Oct. 30, 2025, 4:55 a.m. OK Ruby 3 TESTS 3 280 819200
346541343 superLazyProgrammer B Oct. 29, 2025, 10:59 p.m. OK Rust 2024 TESTS 3 31 102400

remove filters

Back to search problems