Codeforces Round 706 (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
1496 Codeforces Round 706 (Div. 2) FINISHED False 7200 121802063 March 10, 2021, 12:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 21182 ) A Split it! PROGRAMMING brute force constructive algorithms greedy strings

B'Kawashiro Nitori is a girl who loves competitive programming. One day she found a string and an integer. As an advanced problem setter, she quickly thought of a problem. Given a string s and a parameter k , you need to check if there exist k+1 non-empty strings a_1,a_2...,a_{k+1} , such that s=a_1+a_2+ ldots +a_k+a_{k+1}+R(a_k)+R(a_{k-1})+ ldots+R(a_{1}). Here + represents concatenation. We define R(x) as a reversed string x . For example R(abcd) = dcba . Note that in the formula above the part R(a_{k+1}) is intentionally skipped. The input consists of multiple test cases. The first line contains a single integer t ( 1 <= t <= 100 ) -- the number of test cases. The description of the test cases follows. The first line of each test case description contains two integers n , k ( 1 <= n <= 100 , 0 <= k <= lfloor frac{n}{2} rfloor ) -- the length of the string s and the parameter k . The second line of each test case description contains a single string s of length n , consisting of lowercase English letters. For each test case, print "YES" (without quotes), if it is possible to find a_1,a_2, ldots,a_{k+1} , and "NO" (without quotes) otherwise. You can print letters in any case (upper or lower). In the first test case, one possible solution is a_1=qw and a_2=q . In the third test case, one possible solution is a_1=i and a_2=o . In the fifth test case, one possible solution is a_1=dokidokiliteratureclub . '...

Tutorials

Codeforces Round #706 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
109644022 Indolent_Kawhi A March 10, 2021, 5:03 p.m. OK Clang++17 Diagnostics TESTS 5 46 0
109631064 lumia A March 10, 2021, 3 p.m. OK Clang++17 Diagnostics TESTS 5 46 0
109644612 Aditya_871 A March 10, 2021, 5:10 p.m. OK GNU C11 TESTS 5 15 0
109646410 rajshreerao6 A March 10, 2021, 5:32 p.m. OK GNU C11 TESTS 5 15 0
109655749 dead_end007 A March 10, 2021, 7:57 p.m. OK GNU C11 TESTS 5 15 0
109666114 Cccc23333 A March 11, 2021, 2:33 a.m. OK GNU C11 TESTS 5 15 0
109674187 Ridwan_Islam A March 11, 2021, 5:37 a.m. OK GNU C11 TESTS 5 15 0
109674944 Samadeol A March 11, 2021, 5:49 a.m. OK GNU C11 TESTS 5 15 0
109675936 _Akhil_3366 A March 11, 2021, 6:02 a.m. OK GNU C11 TESTS 5 15 0
109635618 Arpitkr A March 10, 2021, 3:36 p.m. OK GNU C11 TESTS 5 15 0
109637525 uditpd3000 A March 10, 2021, 3:53 p.m. OK GNU C11 TESTS 5 15 0
109637707 CastleBravo A March 10, 2021, 3:55 p.m. OK GNU C11 TESTS 5 15 0
109662326 Indigosky A March 10, 2021, 11:56 p.m. OK GNU C++11 TESTS 5 0 0
109671438 ddaydream A March 11, 2021, 4:51 a.m. OK GNU C++11 TESTS 5 15 0
109675838 StrongerIrene A March 11, 2021, 6:01 a.m. OK GNU C++11 TESTS 5 15 0
109675573 vice_why112 A March 11, 2021, 5:57 a.m. OK GNU C++11 TESTS 5 15 0
109674898 Sanandreas A March 11, 2021, 5:48 a.m. OK GNU C++11 TESTS 5 15 0
109674691 thyismine A March 11, 2021, 5:45 a.m. OK GNU C++11 TESTS 5 15 0
109673273 junker A March 11, 2021, 5:23 a.m. OK GNU C++11 TESTS 5 15 0
109672924 rion_cse A March 11, 2021, 5:18 a.m. OK GNU C++11 TESTS 5 15 0
109672076 Sabnaj A March 11, 2021, 5:03 a.m. OK GNU C++11 TESTS 5 15 0
109671285 trbaobaohoo A March 11, 2021, 4:48 a.m. OK GNU C++11 TESTS 5 15 0
109656314 Matei A March 10, 2021, 8:09 p.m. OK GNU C++14 TESTS 5 0 0
109632274 Doofenshmirtz A March 10, 2021, 3:09 p.m. OK GNU C++14 TESTS 5 0 0
109625052 srakash317 A March 10, 2021, 2:29 p.m. OK GNU C++14 TESTS 5 0 0
109665093 J_b_m_1_0 A March 11, 2021, 1:57 a.m. OK GNU C++14 TESTS 5 0 0
109674086 sumontoc A March 11, 2021, 5:36 a.m. OK GNU C++14 TESTS 5 15 0
109674953 sulkykookie A March 11, 2021, 5:49 a.m. OK GNU C++14 TESTS 5 15 0
109675806 imas_713_a A March 11, 2021, 6 a.m. OK GNU C++14 TESTS 5 15 0
109675892 FigaZZo A March 11, 2021, 6:02 a.m. OK GNU C++14 TESTS 5 15 0
109675974 abhi699 A March 11, 2021, 6:03 a.m. OK GNU C++14 TESTS 5 15 0
109675721 Taran106 A March 11, 2021, 5:59 a.m. OK GNU C++14 TESTS 5 15 0
109637691 _swaraj_ A March 10, 2021, 3:55 p.m. OK GNU C++17 TESTS 5 0 0
109644299 double_slit A March 10, 2021, 5:06 p.m. OK GNU C++17 TESTS 5 0 0
109646233 Siddharth0723 A March 10, 2021, 5:29 p.m. OK GNU C++17 TESTS 5 0 0
109646708 hns17502 A March 10, 2021, 5:36 p.m. OK GNU C++17 TESTS 5 0 0
109659250 Rush_For_AC A March 10, 2021, 9:37 p.m. OK GNU C++17 TESTS 5 0 0
109676146 udit5656 A March 11, 2021, 6:05 a.m. OK GNU C++17 TESTS 5 15 0
109676092 aakashkalra47 A March 11, 2021, 6:05 a.m. OK GNU C++17 TESTS 5 15 0
109675916 Im_aj26 A March 11, 2021, 6:02 a.m. OK GNU C++17 TESTS 5 15 0
109675823 YaoYaoLe A March 11, 2021, 6:01 a.m. OK GNU C++17 TESTS 5 15 0
109675272 kguniverse A March 11, 2021, 5:53 a.m. OK GNU C++17 TESTS 5 15 0
109647157 _rAkib A March 10, 2021, 5:41 p.m. OK GNU C++17 (64) TESTS 5 0 0
109669470 afrin2 A March 11, 2021, 4:07 a.m. OK GNU C++17 (64) TESTS 5 0 0
109674257 sv2002 A March 11, 2021, 5:38 a.m. OK GNU C++17 (64) TESTS 5 15 0
109675428 ganpa A March 11, 2021, 5:55 a.m. OK GNU C++17 (64) TESTS 5 15 0
109675386 Sooh31 A March 11, 2021, 5:55 a.m. OK GNU C++17 (64) TESTS 5 15 0
109671679 css_snowflake A March 11, 2021, 4:56 a.m. OK GNU C++17 (64) TESTS 5 15 0
109671371 __jarvis A March 11, 2021, 4:50 a.m. OK GNU C++17 (64) TESTS 5 15 0
109671183 Mx. A March 11, 2021, 4:46 a.m. OK GNU C++17 (64) TESTS 5 15 0
109671091 M0riarty A March 11, 2021, 4:44 a.m. OK GNU C++17 (64) TESTS 5 15 0
109670356 nikhilsh20 A March 11, 2021, 4:28 a.m. OK GNU C++17 (64) TESTS 5 15 0
109656633 Akshat1409 A March 10, 2021, 8:17 p.m. OK Java 11 TESTS 5 155 0
109644880 ryanranaut A March 10, 2021, 5:13 p.m. OK Java 11 TESTS 5 156 0
109640351 gssakash A March 10, 2021, 4:21 p.m. OK Java 11 TESTS 5 170 0
109657601 kumarsaksham54 A March 10, 2021, 8:44 p.m. OK Java 11 TESTS 5 170 0
109639545 gssakash A March 10, 2021, 4:12 p.m. OK Java 11 TESTS 5 170 0
109631508 lifeiteng A March 10, 2021, 3:04 p.m. OK Java 11 TESTS 5 170 0
109656553 soumik_giggle_07673 A March 10, 2021, 8:15 p.m. OK Java 11 TESTS 5 171 0
109653415 anshumankhatte A March 10, 2021, 7:13 p.m. OK Java 11 TESTS 5 171 0
109652109 ak_ankit A March 10, 2021, 6:53 p.m. OK Java 11 TESTS 5 171 0
109672469 dhiraj23 A March 11, 2021, 5:10 a.m. OK Java 11 TESTS 5 171 0
109650611 saxC A March 10, 2021, 6:30 p.m. OK Java 8 TESTS 5 93 0
109646914 twoBit A March 10, 2021, 5:38 p.m. OK Java 8 TESTS 5 93 0
109628327 amit_roy A March 10, 2021, 2:44 p.m. OK Java 8 TESTS 5 93 0
109630496 group11_9 A March 10, 2021, 2:56 p.m. OK Java 8 TESTS 5 93 0
109625511 InANutshell A March 10, 2021, 2:31 p.m. OK Java 8 TESTS 5 93 0
109667751 Parimal A March 11, 2021, 3:21 a.m. OK Java 8 TESTS 5 93 0
109662479 Java A March 11, 2021, 12:05 a.m. OK Java 8 TESTS 5 93 0
109647243 Abhichauhan A March 10, 2021, 5:42 p.m. OK Java 8 TESTS 5 108 0
109627863 rw6 A March 10, 2021, 2:42 p.m. OK Java 8 TESTS 5 108 0
109629596 shojin_pro A March 10, 2021, 2:51 p.m. OK Java 8 TESTS 5 108 0
109653027 SlimShady985 A March 10, 2021, 7:07 p.m. OK Kotlin TESTS 5 109 0
109666764 Spheniscine A March 11, 2021, 2:52 a.m. OK Kotlin TESTS 5 124 0
109652955 koper A March 10, 2021, 7:06 p.m. OK Kotlin TESTS 5 140 102400
109631122 ustaritz A March 10, 2021, 3:01 p.m. OK MS C++ 2017 TESTS 5 15 0
109625079 RaVincent A March 10, 2021, 2:29 p.m. OK MS C++ 2017 TESTS 5 15 0
109664437 _Rimjhim_36 A March 11, 2021, 1:33 a.m. OK MS C++ 2017 TESTS 5 15 0
109662429 ky_fishing A March 11, 2021, 12:02 a.m. OK MS C++ 2017 TESTS 5 15 0
109658406 truevampire A March 10, 2021, 9:08 p.m. OK MS C++ 2017 TESTS 5 15 0
109657285 Denish_ A March 10, 2021, 8:34 p.m. OK MS C++ 2017 TESTS 5 15 0
109651132 NeverS5 A March 10, 2021, 6:38 p.m. OK MS C++ 2017 TESTS 5 15 0
109665420 Harshita_0304 A March 11, 2021, 2:10 a.m. OK MS C++ 2017 TESTS 5 15 307200
109649199 cz_itsme A March 10, 2021, 6:10 p.m. OK MS C++ 2017 TESTS 5 30 0
109672338 dear-john A March 11, 2021, 5:08 a.m. OK MS C++ 2017 TESTS 5 30 0
109631490 axoctavian A March 10, 2021, 3:03 p.m. OK .NET Core C# TESTS 5 92 0
109667055 sakapon A March 11, 2021, 2:59 a.m. OK .NET Core C# TESTS 5 93 204800
109668986 henrychenOutlook A March 11, 2021, 3:54 a.m. OK Node.js TESTS 5 46 0
109668825 henrychenOutlook A March 11, 2021, 3:50 a.m. OK Node.js TESTS 5 77 102400
109656460 CrazyDr A March 10, 2021, 8:13 p.m. OK PHP TESTS 5 46 0
109626159 ananya_18 A March 10, 2021, 2:34 p.m. OK PyPy 3 TESTS 5 77 0
109642960 mukul00912 A March 10, 2021, 4:50 p.m. OK PyPy 3 TESTS 5 77 0
109632928 srijan.sarkar A March 10, 2021, 3:13 p.m. OK PyPy 3 TESTS 5 92 0
109627260 lucas.a A March 10, 2021, 2:39 p.m. OK PyPy 3 TESTS 5 92 0
109627255 bhavyrajdev0 A March 10, 2021, 2:39 p.m. OK PyPy 3 TESTS 5 92 0
109656791 byte_bit78 A March 10, 2021, 8:21 p.m. OK PyPy 3 TESTS 5 92 102400
109640495 vivekpatel123 A March 10, 2021, 4:22 p.m. OK PyPy 3 TESTS 5 92 1228800
109668249 Fazel A March 11, 2021, 3:35 a.m. OK PyPy 3 TESTS 5 93 0
109675896 Aadat_se_majboor A March 11, 2021, 6:02 a.m. OK PyPy 3 TESTS 5 93 0
109668895 KA_Rma A March 11, 2021, 3:52 a.m. OK PyPy 3 TESTS 5 93 0
109652518 thuglife69 A March 10, 2021, 6:59 p.m. OK Python 2 TESTS 5 62 0
109651458 elistark A March 10, 2021, 6:42 p.m. OK Python 2 TESTS 5 77 0
109672408 WhatWHY A March 11, 2021, 5:09 a.m. OK Python 3 TESTS 5 46 0
109664192 pvnhan A March 11, 2021, 1:25 a.m. OK Python 3 TESTS 5 46 0
109648947 the100thGod A March 10, 2021, 6:06 p.m. OK Python 3 TESTS 5 46 0
109644772 dnshah A March 10, 2021, 5:12 p.m. OK Python 3 TESTS 5 46 0
109625226 AGZubkova A March 10, 2021, 2:30 p.m. OK Python 3 TESTS 5 46 0
109671437 nikampriyanka2002 A March 11, 2021, 4:51 a.m. OK Python 3 TESTS 5 46 307200
109655617 bertrandovide A March 10, 2021, 7:54 p.m. OK Python 3 TESTS 5 46 307200
109646058 Antifreeze A March 10, 2021, 5:27 p.m. OK Python 3 TESTS 5 46 307200
109645049 Harsh_Xerus A March 10, 2021, 5:15 p.m. OK Python 3 TESTS 5 46 307200
109642770 IngaleAnkur10 A March 10, 2021, 4:48 p.m. OK Python 3 TESTS 5 46 307200
109648258 Millouw A March 10, 2021, 5:56 p.m. OK Rust TESTS 5 15 0
109649813 apilat A March 10, 2021, 6:19 p.m. OK Rust TESTS 5 31 102400

remove filters

Back to search problems