Codeforces Round 689 (Div. 2, based on Zed Code Competition)

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
1461 Codeforces Round 689 (Div. 2, based on Zed Code Competition) FINISHED False 7200 124125899 Dec. 11, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 18601 ) A String Generation PROGRAMMING constructive algorithms greedy

B'One fall day Joe got bored because he couldn 't find himself something interesting to do. Marty suggested Joe to generate a string of length n to entertain him somehow. It didn 't seem particularly difficult, but Joe 's generated string had to follow these rules: A string a is a substring of a string b if a can be obtained from b by deletion of several (possibly, zero or all) characters from the beginning and several (possibly, zero or all) characters from the end. For example, strings "a", "bc", "abc" are substrings of a string "abc", while strings "ac", "ba", "cba" are not. A string is a palindrome if it reads the same from the left to the right and from the right to the left. For example, strings "abccba", "abbba", "aba", "abacaba", "a", and "bacab" are palindromes, while strings "abcbba", "abb", and "ab" are not. Now Joe wants to find any correct string. Help him! It can be proven that the answer always exists under the given constraints. Each test contains one or more test cases. The first line contains the number of test cases t ( 1 <= t <= 10 ). The only line of each test case contains two integers n and k ( 1 <= k <= n <= 1 ,000 ) -- the required string length and the maximum length of a palindrome substring, respectively. For each test case, print any string that satisfies the conditions from the problem statement. If there are multiple correct answers, you can print any one of them. It can be proven that the answer always exists under the given constraints. In the first test case of the example, the palindrome substring with the maximum length is "aa". Its length does not exceed 2 , so it fits. In the second test case all palindrome substrings have the length one. '...

Tutorials

Codeforces Round #689 (Div. 2). Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
100964063 oghob A Dec. 11, 2020, 5:46 p.m. OK Clang++17 Diagnostics TESTS 14 46 5222400
100963862 oghob A Dec. 11, 2020, 5:44 p.m. OK Clang++17 Diagnostics TESTS 14 46 5222400
100968558 huangdachuan A Dec. 11, 2020, 6:47 p.m. OK Clang++17 Diagnostics TESTS 14 46 7372800
100980888 KhavidBap A Dec. 12, 2020, 1:49 a.m. OK FPC TESTS 14 31 0
100978294 BugLeave A Dec. 11, 2020, 11:23 p.m. OK GNU C11 TESTS 14 15 0
100947359 Left_leg A Dec. 11, 2020, 4:01 p.m. OK GNU C11 TESTS 14 30 0
100951768 Jazeel_Anwar A Dec. 11, 2020, 4:17 p.m. OK GNU C11 TESTS 14 31 0
100955561 heth1705 A Dec. 11, 2020, 4:29 p.m. OK GNU C11 TESTS 14 46 0
100949895 _Matrice A Dec. 11, 2020, 4:10 p.m. OK GNU C11 TESTS 14 46 0
100986459 dydydyy A Dec. 12, 2020, 4:52 a.m. OK GNU C11 TESTS 14 46 0
100983964 redoy_Kumar50 A Dec. 12, 2020, 3:41 a.m. OK GNU C11 TESTS 14 46 0
100983811 Redoy_Kumar A Dec. 12, 2020, 3:36 a.m. OK GNU C11 TESTS 14 46 0
100982555 _kid A Dec. 12, 2020, 2:58 a.m. OK GNU C11 TESTS 14 46 0
100965602 rafsan.rafi159 A Dec. 11, 2020, 6:05 p.m. OK GNU C11 TESTS 14 46 0
100982702 prakhar9998 A Dec. 12, 2020, 3:02 a.m. OK GNU C++11 TESTS 14 15 0
100983064 dagexiangdani A Dec. 12, 2020, 3:12 a.m. OK GNU C++11 TESTS 14 15 0
100985106 perhaw A Dec. 12, 2020, 4:16 a.m. OK GNU C++11 TESTS 14 15 0
100986067 punit_parakh A Dec. 12, 2020, 4:42 a.m. OK GNU C++11 TESTS 14 15 0
100987136 thehard A Dec. 12, 2020, 5:09 a.m. OK GNU C++11 TESTS 14 15 0
100988999 bigcola A Dec. 12, 2020, 5:46 a.m. OK GNU C++11 TESTS 14 15 0
100989815 RED2724 A Dec. 12, 2020, 6 a.m. OK GNU C++11 TESTS 14 15 0
100989074 Windman_ A Dec. 12, 2020, 5:47 a.m. OK GNU C++11 TESTS 14 15 0
100984229 Andy_0404 A Dec. 12, 2020, 3:49 a.m. OK GNU C++11 TESTS 14 15 0
100984013 fire_orb111 A Dec. 12, 2020, 3:42 a.m. OK GNU C++11 TESTS 14 15 0
100953047 abhinav_sri360 A Dec. 11, 2020, 4:21 p.m. OK GNU C++14 TESTS 14 15 0
100950441 BC_Khanh A Dec. 11, 2020, 4:12 p.m. OK GNU C++14 TESTS 14 15 0
100987647 ManojGuha A Dec. 12, 2020, 5:21 a.m. OK GNU C++14 TESTS 14 15 0
100986721 harsh.singh1411 A Dec. 12, 2020, 4:59 a.m. OK GNU C++14 TESTS 14 15 0
100984238 Second_id A Dec. 12, 2020, 3:49 a.m. OK GNU C++14 TESTS 14 15 0
100976155 pikmike A Dec. 11, 2020, 9:35 p.m. OK GNU C++14 TESTS 14 15 0
100986345 REAPTER A Dec. 12, 2020, 4:49 a.m. OK GNU C++14 TESTS 14 30 0
100986644 saksham_singh A Dec. 12, 2020, 4:57 a.m. OK GNU C++14 TESTS 14 30 0
100988374 PintuHossain A Dec. 12, 2020, 5:35 a.m. OK GNU C++14 TESTS 14 30 0
100990181 bharathsan A Dec. 12, 2020, 6:05 a.m. OK GNU C++14 TESTS 14 30 0
100984320 arindam54321 A Dec. 12, 2020, 3:52 a.m. OK GNU C++17 TESTS 14 15 0
100988308 smohaimen A Dec. 12, 2020, 5:33 a.m. OK GNU C++17 TESTS 14 15 0
100985038 Ax_alchemy A Dec. 12, 2020, 4:13 a.m. OK GNU C++17 TESTS 14 15 0
100984308 harshitpach A Dec. 12, 2020, 3:52 a.m. OK GNU C++17 TESTS 14 15 0
100980752 Amit56 A Dec. 12, 2020, 1:43 a.m. OK GNU C++17 TESTS 14 15 0
100972825 Test_KH_Name A Dec. 11, 2020, 8:05 p.m. OK GNU C++17 TESTS 14 15 0
100967776 Khiladi2020 A Dec. 11, 2020, 6:35 p.m. OK GNU C++17 TESTS 14 15 0
100964845 trozanstrap99 A Dec. 11, 2020, 5:56 p.m. OK GNU C++17 TESTS 14 15 0
100987848 kianaRZV A Dec. 12, 2020, 5:25 a.m. OK GNU C++17 TESTS 14 15 819200
100989725 manish19 A Dec. 12, 2020, 5:59 a.m. OK GNU C++17 TESTS 14 30 0
100969257 tanaypatni03 A Dec. 11, 2020, 6:58 p.m. OK GNU C++17 (64) TESTS 14 15 0
100967633 _mickey_mouse_ A Dec. 11, 2020, 6:33 p.m. OK GNU C++17 (64) TESTS 14 15 0
100967317 WrongAnswerOnTest1 A Dec. 11, 2020, 6:29 p.m. OK GNU C++17 (64) TESTS 14 15 0
100974372 lucid_dreamer A Dec. 11, 2020, 8:40 p.m. OK GNU C++17 (64) TESTS 14 15 0
100969900 sameerg2300 A Dec. 11, 2020, 7:08 p.m. OK GNU C++17 (64) TESTS 14 15 0
100979863 Gilgameshx A Dec. 12, 2020, 12:59 a.m. OK GNU C++17 (64) TESTS 14 15 0
100981659 PaliLo A Dec. 12, 2020, 2:24 a.m. OK GNU C++17 (64) TESTS 14 15 0
100985037 fuadhasanc9934 A Dec. 12, 2020, 4:13 a.m. OK GNU C++17 (64) TESTS 14 15 0
100977197 Gilgameshx A Dec. 11, 2020, 10:22 p.m. OK GNU C++17 (64) TESTS 14 15 0
100969507 kshitijg9899 A Dec. 11, 2020, 7:02 p.m. OK GNU C++17 (64) TESTS 14 15 0
100967347 williemaster A Dec. 11, 2020, 6:29 p.m. OK Go TESTS 14 46 4505600
100968033 MarcoMeijer A Dec. 11, 2020, 6:39 p.m. OK Haskell TESTS 14 31 0
100959752 axp A Dec. 11, 2020, 5:06 p.m. OK Haskell TESTS 14 31 102400
100963265 TomazGomes A Dec. 11, 2020, 5:37 p.m. OK Haskell TESTS 14 31 102400
100974881 abdelrahman-yousf A Dec. 11, 2020, 8:53 p.m. OK Java 11 TESTS 14 171 0
100987164 anshum_it_is A Dec. 12, 2020, 5:10 a.m. OK Java 11 TESTS 14 171 0
100968371 decoder_1671 A Dec. 11, 2020, 6:43 p.m. OK Java 11 TESTS 14 171 10240000
100959540 Sanju_250406 A Dec. 11, 2020, 5:05 p.m. OK Java 11 TESTS 14 187 0
100972562 gouthamKri5hna A Dec. 11, 2020, 8 p.m. OK Java 11 TESTS 14 187 0
100978678 qwerty12345qwerty A Dec. 11, 2020, 11:51 p.m. OK Java 11 TESTS 14 187 0
100970093 aruneet2000 A Dec. 11, 2020, 7:12 p.m. OK Java 11 TESTS 14 202 0
100967220 RahulTripathi1308 A Dec. 11, 2020, 6:27 p.m. OK Java 11 TESTS 14 202 0
100967939 KshitijT06 A Dec. 11, 2020, 6:38 p.m. OK Java 11 TESTS 14 202 0
100976424 catforce A Dec. 11, 2020, 9:45 p.m. OK Java 11 TESTS 14 202 0
100959926 arpit_c10992 A Dec. 11, 2020, 5:07 p.m. OK Java 8 TESTS 14 93 0
100986848 Uttam007 A Dec. 12, 2020, 5:02 a.m. OK Java 8 TESTS 14 108 0
100959518 naitikvarshney77 A Dec. 11, 2020, 5:05 p.m. OK Java 8 TESTS 14 108 0
100960991 ahmad_mamdouh A Dec. 11, 2020, 5:16 p.m. OK Java 8 TESTS 14 108 0
100989529 practice99 A Dec. 12, 2020, 5:55 a.m. OK Java 8 TESTS 14 108 0
100963094 jagrit_07 A Dec. 11, 2020, 5:36 p.m. OK Java 8 TESTS 14 108 0
100977440 flyman3046 A Dec. 11, 2020, 10:34 p.m. OK Java 8 TESTS 14 109 0
100985191 ronitchopda14 A Dec. 12, 2020, 4:18 a.m. OK Java 8 TESTS 14 109 0
100969884 Mercurrial A Dec. 11, 2020, 7:08 p.m. OK Java 8 TESTS 14 109 0
100989274 obsessed_titan A Dec. 12, 2020, 5:50 a.m. OK Java 8 TESTS 14 109 0
100966670 sylvyrfysh A Dec. 11, 2020, 6:20 p.m. OK Kotlin TESTS 14 140 102400
100968129 anish.1922 A Dec. 11, 2020, 6:40 p.m. OK Mono C# TESTS 14 93 11673600
100973029 tawfekhesham A Dec. 11, 2020, 8:09 p.m. OK MS C++ 2017 TESTS 14 30 0
100964557 dmitrySh239 A Dec. 11, 2020, 5:52 p.m. OK MS C++ 2017 TESTS 14 30 0
100972373 poulaatef A Dec. 11, 2020, 7:56 p.m. OK MS C++ 2017 TESTS 14 30 0
100979576 megatortik A Dec. 12, 2020, 12:43 a.m. OK MS C++ 2017 TESTS 14 31 0
100986294 Pingnian A Dec. 12, 2020, 4:47 a.m. OK MS C++ 2017 TESTS 14 31 0
100977903 charmander3333 itised A Dec. 11, 2020, 10:59 p.m. OK MS C++ 2017 TESTS 14 31 0
100975355 P___ A Dec. 11, 2020, 9:07 p.m. OK MS C++ 2017 TESTS 14 31 0
100973414 say_hi A Dec. 11, 2020, 8:18 p.m. OK MS C++ 2017 TESTS 14 31 0
100969614 201901432 A Dec. 11, 2020, 7:04 p.m. OK MS C++ 2017 TESTS 14 31 0
100966532 araba123357 A Dec. 11, 2020, 6:18 p.m. OK MS C++ 2017 TESTS 14 31 0
100961849 MyEighthName A Dec. 11, 2020, 5:23 p.m. OK .NET Core C# TESTS 14 93 204800
100974767 yaroslav76 A Dec. 11, 2020, 8:50 p.m. OK .NET Core C# TESTS 14 93 3276800
100975655 5HaR1ar_The_N00b A Dec. 11, 2020, 9:17 p.m. OK .NET Core C# TESTS 14 109 0
100970359 ap1008 A Dec. 11, 2020, 7:17 p.m. OK PyPy 2 TESTS 14 93 0
100989745 satyamcse A Dec. 12, 2020, 5:59 a.m. OK PyPy 2 TESTS 14 140 102400
100959625 sul3 A Dec. 11, 2020, 5:05 p.m. OK PyPy 3 TESTS 14 124 1433600
100959298 divyanshmandhan A Dec. 11, 2020, 5:04 p.m. OK PyPy 3 TESTS 14 139 0
100987529 dheerajkhatri0802 A Dec. 12, 2020, 5:18 a.m. OK PyPy 3 TESTS 14 139 0
100972374 uttharapally.chandra A Dec. 11, 2020, 7:56 p.m. OK PyPy 3 TESTS 14 139 0
100963312 neetnavkayasth004 A Dec. 11, 2020, 5:38 p.m. OK PyPy 3 TESTS 14 139 1331200
100988439 alfaijmansuri A Dec. 12, 2020, 5:36 a.m. OK PyPy 3 TESTS 14 140 0
100988283 Sahitya02 A Dec. 12, 2020, 5:33 a.m. OK PyPy 3 TESTS 14 140 0
100983647 mmpataki A Dec. 12, 2020, 3:30 a.m. OK PyPy 3 TESTS 14 140 0
100967514 Pratyush1606 A Dec. 11, 2020, 6:31 p.m. OK PyPy 3 TESTS 14 140 0
100963543 AaronThomasJoseph A Dec. 11, 2020, 5:40 p.m. OK PyPy 3 TESTS 14 140 0
100981053 ComptineDunAutreEte A Dec. 12, 2020, 1:55 a.m. OK Python 2 TESTS 14 155 0
100979116 biltharesatyendra A Dec. 12, 2020, 12:19 a.m. OK Python 2 TESTS 14 156 0
100959761 swega A Dec. 11, 2020, 5:06 p.m. OK Python 3 TESTS 14 93 0
100988319 Aman_Nafiz A Dec. 12, 2020, 5:34 a.m. OK Python 3 TESTS 14 93 0
100988201 pranjal_1234 A Dec. 12, 2020, 5:32 a.m. OK Python 3 TESTS 14 93 0
100984402 abhi.tiwari A Dec. 12, 2020, 3:55 a.m. OK Python 3 TESTS 14 93 0
100971804 gouthamKri5hna A Dec. 11, 2020, 7:45 p.m. OK Python 3 TESTS 14 93 0
100970475 photonInDoubleSlit A Dec. 11, 2020, 7:19 p.m. OK Python 3 TESTS 14 93 0
100970421 jahirtheboss A Dec. 11, 2020, 7:18 p.m. OK Python 3 TESTS 14 93 0
100964965 bufferjjh A Dec. 11, 2020, 5:57 p.m. OK Python 3 TESTS 14 93 0
100971221 testacc_28 A Dec. 11, 2020, 7:33 p.m. OK Python 3 TESTS 14 93 102400
100989296 _eneyrO_ A Dec. 12, 2020, 5:51 a.m. OK Python 3 TESTS 14 93 102400

remove filters

Back to search problems