Codeforces Round 770 (Div. 2)

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
1634 Codeforces Round 770 (Div. 2) FINISHED False 9000 93021863 Feb. 6, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 24032 ) A Reverse and Concatenate PROGRAMMING brute force strings

B"You are given a string s of length n and a number k . Let's denote by rev(s) the reversed string s (i.e. rev(s) = s_n s_{n-1} ... s_1 ). You can apply one of the two kinds of operations to the string: How many different strings can you get as a result of performing exactly k operations (possibly of different kinds) on the original string s ? In this statement we denoted the concatenation of strings s and t as s + t . In other words, s + t = s_1 s_2 ... s_n t_1 t_2 ... t_m , where n and m are the lengths of strings s and t respectively. The first line contains one integer t ( 1 <= t <= 100 ) -- number of test cases. Next 2 cdot t lines contain t test cases: The first line of a test case contains two integers n and k ( 1 <= n <= 100 , 0 <= k <= 1000 ) -- the length of the string and the number of operations respectively. The second string of a test case contains one string s of length n consisting of lowercase Latin letters. For each test case, print the answer (that is, the number of different strings that you can get after exactly k operations) on a separate line. It can be shown that the answer does not exceed 10^9 under the given constraints. In the first test case of the example: After the first operation the string s can become either aabbaa or baaaab. After the second operation there are 2 possibilities for s : aabbaaaabbaa and baaaabbaaaab. "...

Tutorials

Codeforces Round #770 (Div. 2) editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
145490723 jkl2469_ A Feb. 7, 2022, 2:22 a.m. OK Clang++17 Diagnostics TESTS 9 31 0
145497067 antor_roy A Feb. 7, 2022, 4:31 a.m. OK Clang++17 Diagnostics TESTS 9 31 0
145471267 tatianyi A Feb. 6, 2022, 6:04 p.m. OK Clang++17 Diagnostics TESTS 9 31 0
145472622 Sleep_Mode A Feb. 6, 2022, 6:17 p.m. OK GNU C11 TESTS 9 15 0
145489106 BILLION_mengyi A Feb. 7, 2022, 1:32 a.m. OK GNU C11 TESTS 9 15 0
145489501 BILLION_mengyi A Feb. 7, 2022, 1:44 a.m. OK GNU C11 TESTS 9 15 0
145503152 Pawan_Lahoti A Feb. 7, 2022, 6 a.m. OK GNU C11 TESTS 9 15 0
145473185 matlab A Feb. 6, 2022, 6:23 p.m. OK GNU C11 TESTS 9 15 0
145481425 Akanta A Feb. 6, 2022, 8:39 p.m. OK GNU C11 TESTS 9 15 0
145486894 gxlois A Feb. 7, 2022, 12:05 a.m. OK GNU C11 TESTS 9 15 0
145483598 Thebad A Feb. 6, 2022, 9:48 p.m. OK GNU C11 TESTS 9 15 0
145488503 kela_bush A Feb. 7, 2022, 1:13 a.m. OK GNU C11 TESTS 9 15 0
145472676 shailesh_2583 A Feb. 6, 2022, 6:18 p.m. OK GNU C11 TESTS 9 15 0
145501404 pklykan2021 A Feb. 7, 2022, 5:37 a.m. OK GNU C++14 TESTS 9 0 0
145500811 DL-POWER A Feb. 7, 2022, 5:29 a.m. OK GNU C++14 TESTS 9 0 0
145500675 zhaohongfei A Feb. 7, 2022, 5:27 a.m. OK GNU C++14 TESTS 9 0 0
145500065 s39202972 A Feb. 7, 2022, 5:18 a.m. OK GNU C++14 TESTS 9 0 0
145499982 sourabhsuman65 A Feb. 7, 2022, 5:17 a.m. OK GNU C++14 TESTS 9 0 0
145499670 V.panchal A Feb. 7, 2022, 5:12 a.m. OK GNU C++14 TESTS 9 0 0
145499469 SrinivasTeja A Feb. 7, 2022, 5:09 a.m. OK GNU C++14 TESTS 9 0 0
145502737 Sourabh003 A Feb. 7, 2022, 5:56 a.m. OK GNU C++14 TESTS 9 0 0
145502642 urieg_alltime A Feb. 7, 2022, 5:55 a.m. OK GNU C++14 TESTS 9 0 0
145502258 PAulCe8 A Feb. 7, 2022, 5:49 a.m. OK GNU C++14 TESTS 9 0 0
145501022 sourav.gupta0401 A Feb. 7, 2022, 5:31 a.m. OK GNU C++17 TESTS 9 0 0
145500837 codeymody_21 A Feb. 7, 2022, 5:29 a.m. OK GNU C++17 TESTS 9 0 0
145501299 aaronhma A Feb. 7, 2022, 5:36 a.m. OK GNU C++17 TESTS 9 0 0
145501319 Sushant_Mishra A Feb. 7, 2022, 5:36 a.m. OK GNU C++17 TESTS 9 0 0
145501339 the_Professr A Feb. 7, 2022, 5:36 a.m. OK GNU C++17 TESTS 9 0 0
145501983 visheshgargb A Feb. 7, 2022, 5:45 a.m. OK GNU C++17 TESTS 9 0 0
145503194 Lord_Ganesha A Feb. 7, 2022, 6:01 a.m. OK GNU C++17 TESTS 9 0 0
145501109 AAAAA_A A Feb. 7, 2022, 5:33 a.m. OK GNU C++17 TESTS 9 0 0
145501087 CodeIsLuv A Feb. 7, 2022, 5:33 a.m. OK GNU C++17 TESTS 9 0 0
145501079 BenzeneAlcohol A Feb. 7, 2022, 5:32 a.m. OK GNU C++17 TESTS 9 0 0
145498731 Nirvan147 A Feb. 7, 2022, 4:58 a.m. OK GNU C++17 (64) TESTS 9 0 0
145503105 komalsah003 A Feb. 7, 2022, 6 a.m. OK GNU C++17 (64) TESTS 9 0 0
145502745 hara_1999 A Feb. 7, 2022, 5:56 a.m. OK GNU C++17 (64) TESTS 9 0 0
145500316 anikanawer A Feb. 7, 2022, 5:22 a.m. OK GNU C++17 (64) TESTS 9 0 0
145495239 BhaTTa A Feb. 7, 2022, 3:58 a.m. OK GNU C++17 (64) TESTS 9 0 0
145494093 17821147 A Feb. 7, 2022, 3:36 a.m. OK GNU C++17 (64) TESTS 9 0 0
145493871 JvJv A Feb. 7, 2022, 3:32 a.m. OK GNU C++17 (64) TESTS 9 0 0
145492898 ujjwalkrishna A Feb. 7, 2022, 3:12 a.m. OK GNU C++17 (64) TESTS 9 0 0
145491687 Xc4l16r3 A Feb. 7, 2022, 2:46 a.m. OK GNU C++17 (64) TESTS 9 0 0
145491472 vandijk A Feb. 7, 2022, 2:41 a.m. OK GNU C++17 (64) TESTS 9 0 0
145496453 SID1204 A Feb. 7, 2022, 4:21 a.m. OK GNU C++20 (64) TESTS 9 0 0
145496419 MrGlaz A Feb. 7, 2022, 4:20 a.m. OK GNU C++20 (64) TESTS 9 0 0
145496552 gamicrab A Feb. 7, 2022, 4:23 a.m. OK GNU C++20 (64) TESTS 9 0 0
145496827 parasgami3 A Feb. 7, 2022, 4:28 a.m. OK GNU C++20 (64) TESTS 9 0 0
145497070 FReAk A Feb. 7, 2022, 4:31 a.m. OK GNU C++20 (64) TESTS 9 0 0
145499097 UnHingedFrog A Feb. 7, 2022, 5:04 a.m. OK GNU C++20 (64) TESTS 9 0 0
145499172 zuber_23 A Feb. 7, 2022, 5:05 a.m. OK GNU C++20 (64) TESTS 9 0 0
145500276 MYFJCHX A Feb. 7, 2022, 5:21 a.m. OK GNU C++20 (64) TESTS 9 0 0
145500362 Abdurroshid A Feb. 7, 2022, 5:23 a.m. OK GNU C++20 (64) TESTS 9 0 0
145502881 luvgoyal40 A Feb. 7, 2022, 5:57 a.m. OK GNU C++20 (64) TESTS 9 0 0
145485102 anvorguesa A Feb. 6, 2022, 10:46 p.m. OK Go TESTS 9 31 102400
145480092 n1trob4ct3r A Feb. 6, 2022, 8:09 p.m. OK Haskell TESTS 9 15 0
145470794 Satyaa A Feb. 6, 2022, 6 p.m. OK Java 11 TESTS 9 140 0
145496222 x21svage A Feb. 7, 2022, 4:16 a.m. OK Java 11 TESTS 9 155 0
145497559 palindro.me A Feb. 7, 2022, 4:40 a.m. OK Java 11 TESTS 9 155 0
145497463 R3KT A Feb. 7, 2022, 4:38 a.m. OK Java 11 TESTS 9 155 0
145495570 __Serendipity A Feb. 7, 2022, 4:04 a.m. OK Java 11 TESTS 9 155 0
145495568 ND_ A Feb. 7, 2022, 4:04 a.m. OK Java 11 TESTS 9 155 0
145493047 MadDuke A Feb. 7, 2022, 3:15 a.m. OK Java 11 TESTS 9 155 0
145490690 NSU_Luminous A Feb. 7, 2022, 2:21 a.m. OK Java 11 TESTS 9 155 0
145488509 Andwerp A Feb. 7, 2022, 1:13 a.m. OK Java 11 TESTS 9 155 0
145481192 frenzykryger A Feb. 6, 2022, 8:33 p.m. OK Java 11 TESTS 9 155 0
145479573 0xRmQu A Feb. 6, 2022, 7:59 p.m. OK Java 8 TESTS 9 78 0
145493887 rahul_r1910 A Feb. 7, 2022, 3:33 a.m. OK Java 8 TESTS 9 78 0
145496093 hacker_157 A Feb. 7, 2022, 4:13 a.m. OK Java 8 TESTS 9 92 0
145480954 BabySharkHi A Feb. 6, 2022, 8:27 p.m. OK Java 8 TESTS 9 93 0
145487929 leonlian A Feb. 7, 2022, 12:51 a.m. OK Java 8 TESTS 9 93 0
145484706 ElectronicsEngineer A Feb. 6, 2022, 10:32 p.m. OK Java 8 TESTS 9 93 0
145499679 Koka A Feb. 7, 2022, 5:12 a.m. OK Java 8 TESTS 9 93 0
145499013 Dark_Knight_07 A Feb. 7, 2022, 5:02 a.m. OK Java 8 TESTS 9 93 0
145497547 govindrajput A Feb. 7, 2022, 4:40 a.m. OK Java 8 TESTS 9 93 0
145497031 DoPractice A Feb. 7, 2022, 4:31 a.m. OK Java 8 TESTS 9 93 0
145476243 AsuraPro A Feb. 6, 2022, 7 p.m. OK Kotlin 1.5 TESTS 9 156 0
145469149 Nuklinoid A Feb. 6, 2022, 5:49 p.m. OK Mono C# TESTS 9 30 0
145486684 karim.elsa3d100 A Feb. 6, 2022, 11:57 p.m. OK MS C++ 2017 TESTS 9 0 0
145476073 Tangerine A Feb. 6, 2022, 6:57 p.m. OK MS C++ 2017 TESTS 9 0 0
145469960 Dybulina_Anna A Feb. 6, 2022, 5:54 p.m. OK MS C++ 2017 TESTS 9 15 0
145490734 Ir0nic_Joker A Feb. 7, 2022, 2:22 a.m. OK MS C++ 2017 TESTS 9 15 0
145489649 edfearay11 A Feb. 7, 2022, 1:49 a.m. OK MS C++ 2017 TESTS 9 15 0
145468214 temur_sherov A Feb. 6, 2022, 5:45 p.m. OK MS C++ 2017 TESTS 9 15 0
145464600 Togstation A Feb. 6, 2022, 5:01 p.m. OK .NET Core C# TESTS 9 77 102400
145481858 suraj A Feb. 6, 2022, 8:51 p.m. OK .NET Core C# TESTS 9 77 204800
145457848 chinchill0r A Feb. 6, 2022, 4:43 p.m. OK Node.js TESTS 9 62 102400
145468188 1_2_3_4_5_9 A Feb. 6, 2022, 5:45 p.m. OK PyPy 2 TESTS 9 77 409600
145497869 Preetmodh_13 A Feb. 7, 2022, 4:45 a.m. OK PyPy 3 TESTS 9 62 0
145496401 CODING_Duck A Feb. 7, 2022, 4:20 a.m. OK PyPy 3 TESTS 9 62 0
145470636 Hqxor A Feb. 6, 2022, 5:59 p.m. OK PyPy 3 TESTS 9 62 0
145470243 ayushmishra0910 A Feb. 6, 2022, 5:56 p.m. OK PyPy 3 TESTS 9 62 0
145483420 ayshiff A Feb. 6, 2022, 9:40 p.m. OK PyPy 3 TESTS 9 77 0
145497702 OGname A Feb. 7, 2022, 4:42 a.m. OK PyPy 3 TESTS 9 77 0
145485874 Noureldin A Feb. 6, 2022, 11:19 p.m. OK PyPy 3 TESTS 9 77 0
145481128 noobsatish A Feb. 6, 2022, 8:32 p.m. OK PyPy 3 TESTS 9 77 0
145475655 silvertint A Feb. 6, 2022, 6:52 p.m. OK PyPy 3 TESTS 9 77 0
145473944 nezzd A Feb. 6, 2022, 6:31 p.m. OK PyPy 3 TESTS 9 77 0
145483104 Jihed503 A Feb. 6, 2022, 9:29 p.m. OK PyPy 3-64 TESTS 9 46 0
145492924 tranductri2003 A Feb. 7, 2022, 3:12 a.m. OK PyPy 3-64 TESTS 9 46 0
145483030 kwikiel A Feb. 6, 2022, 9:27 p.m. OK PyPy 3-64 TESTS 9 46 0
145482049 MonkeyDoug A Feb. 6, 2022, 8:56 p.m. OK PyPy 3-64 TESTS 9 46 0
145470159 Himanshu_Kaithal A Feb. 6, 2022, 5:55 p.m. OK PyPy 3-64 TESTS 9 46 0
145488453 porpoise A Feb. 7, 2022, 1:11 a.m. OK PyPy 3-64 TESTS 9 46 1024000
145492817 tranductri2003 A Feb. 7, 2022, 3:10 a.m. OK PyPy 3-64 TESTS 9 61 0
145469701 Sherlemious A Feb. 6, 2022, 5:52 p.m. OK PyPy 3-64 TESTS 9 61 614400
145460106 jaglike_makkar A Feb. 6, 2022, 4:49 p.m. OK PyPy 3-64 TESTS 9 61 1945600
145493788 freakbuoyancy A Feb. 7, 2022, 3:31 a.m. OK PyPy 3-64 TESTS 9 61 2150400
145469562 OLOGY A Feb. 6, 2022, 5:51 p.m. OK Python 2 TESTS 9 31 0
145469747 kevin0216 A Feb. 6, 2022, 5:52 p.m. OK Python 3 TESTS 9 30 0
145478633 Divyansh10108 A Feb. 6, 2022, 7:40 p.m. OK Python 3 TESTS 9 30 0
145499584 harshk_52 A Feb. 7, 2022, 5:11 a.m. OK Python 3 TESTS 9 31 0
145498097 M.MUEED.AWAIS A Feb. 7, 2022, 4:48 a.m. OK Python 3 TESTS 9 31 0
145497222 sbs2001 A Feb. 7, 2022, 4:34 a.m. OK Python 3 TESTS 9 31 0
145492857 Klu_2000031509 A Feb. 7, 2022, 3:11 a.m. OK Python 3 TESTS 9 31 0
145492061 khaliqdaad A Feb. 7, 2022, 2:54 a.m. OK Python 3 TESTS 9 31 0
145490654 raselislambabu0677 A Feb. 7, 2022, 2:20 a.m. OK Python 3 TESTS 9 31 0
145497001 yk777 A Feb. 7, 2022, 4:30 a.m. OK Python 3 TESTS 9 31 0
145496246 Bishwanath A Feb. 7, 2022, 4:17 a.m. OK Python 3 TESTS 9 31 0
145490796 Spheniscine A Feb. 7, 2022, 2:24 a.m. OK Rust 2021 TESTS 9 15 102400
145477772 f.society A Feb. 6, 2022, 7:24 p.m. OK Scala TESTS 9 404 0
145477039 7Midav7 A Feb. 6, 2022, 7:12 p.m. OK Scala TESTS 9 436 0

remove filters

Back to search problems