Technocup 2019 - Elimination Round 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
1031 Technocup 2019 - Elimination Round 2 FINISHED False 7200 191713799 Oct. 21, 2018, 8:10 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2815 ) D Minimum path PROGRAMMING greedy 2000

B"You are given a matrix of size n x n filled with lowercase English letters. You can change no more than k letters in this matrix. Consider all paths from the upper left corner to the lower right corner that move from a cell to its neighboring cell to the right or down. Each path is associated with the string that is formed by all the letters in the cells the path visits. Thus, the length of each string is 2n - 1 . Find the lexicographically smallest string that can be associated with a path after changing letters in at most k cells of the matrix. A string a is lexicographically smaller than a string b , if the first different letter in a and b is smaller in a . The first line contains two integers n and k ( 1 <= n <= 2000 , 0 <= k <= n^2 ) -- the size of the matrix and the number of letters you can change. Each of the next n lines contains a string of n lowercase English letters denoting one row of the matrix. Output the lexicographically smallest string that can be associated with some valid path after changing no more than k letters in the matrix. In the first sample test case it is possible to change letters 'b' in cells (2, 1) and (3, 1) to 'a', then the minimum path contains cells (1, 1), (2, 1), (3, 1), (4, 1), (4, 2), (4, 3), (4, 4) . The first coordinate corresponds to the row and the second coordinate corresponds to the column. "...

Tutorials

Codeforces Round #517 and Technocup 2019 Elimination Round 2 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
52306314 vjudge2 D April 4, 2019, 12:20 p.m. OK GNU C11 TESTS 96 186 136294400 2000
45256089 cortan122 D Nov. 3, 2018, 7:55 p.m. OK GNU C11 TESTS 96 514 20377600 2000
44721088 _CZH D Oct. 23, 2018, 5:09 a.m. OK GNU C++11 TESTS 96 77 23961600 2000
44751732 ReaLNero1 D Oct. 23, 2018, 8:19 p.m. OK GNU C++11 TESTS 96 77 24268800 2000
69449612 vjudge5 D Jan. 24, 2020, 5:30 a.m. OK GNU C++11 TESTS 96 78 24064000 2000
45085779 Law_Aias D Oct. 30, 2018, 7:16 a.m. OK GNU C++11 TESTS 96 78 24166400 2000
45156622 KRrrrrrrrr D Nov. 1, 2018, 3:23 a.m. OK GNU C++11 TESTS 96 78 24166400 2000
45162672 KRrrrrrrrr D Nov. 1, 2018, 9:52 a.m. OK GNU C++11 TESTS 96 78 24166400 2000
45356156 yxc2003 D Nov. 6, 2018, 8:30 a.m. OK GNU C++11 TESTS 96 78 24268800 2000
44817838 BLUESKY007 D Oct. 24, 2018, 10:50 p.m. OK GNU C++11 TESTS 96 78 24268800 2000
44684589 munaiyi D Oct. 22, 2018, 8:41 a.m. OK GNU C++11 TESTS 96 78 56422400 2000
47126653 Twenty_Fifteen D Dec. 16, 2018, 3:48 p.m. OK GNU C++11 TESTS 96 93 20070400 2000
44844235 ytriayggg D Oct. 25, 2018, 1:54 p.m. OK GNU C++14 TESTS 96 93 24166400 2000
52484319 bbssgg11 D April 8, 2019, 7:58 a.m. OK GNU C++14 TESTS 96 93 24166400 2000
54346170 lanpang D May 18, 2019, 12:33 p.m. OK GNU C++14 TESTS 96 93 36454400 2000
54378676 bojverdict1 D May 19, 2019, 9:54 a.m. OK GNU C++14 TESTS 96 108 36454400 2000
51108812 AMnu D March 10, 2019, 2:26 a.m. OK GNU C++14 TESTS 96 109 20172800 2000
52144174 rich_and_yuong D April 1, 2019, 8:29 a.m. OK GNU C++14 TESTS 96 109 24166400 2000
69606156 abba5 D Jan. 27, 2020, 9:48 a.m. OK GNU C++14 TESTS 96 109 24268800 2000
45778621 Vijaykrishna D Nov. 15, 2018, 6:44 p.m. OK GNU C++14 TESTS 96 109 24371200 2000
52061264 Haworthia D March 31, 2019, 1:18 a.m. OK GNU C++14 TESTS 96 109 24473600 2000
48215174 mredigonda D Jan. 11, 2019, 2:14 p.m. OK GNU C++14 TESTS 96 124 21196800 2000
44952404 ShJ D Oct. 27, 2018, 12:44 p.m. OK GNU C++17 TESTS 96 93 23654400 2000
52371565 vjudge1 D April 6, 2019, 6:26 a.m. OK GNU C++17 TESTS 96 93 24166400 2000
52585648 lys1280023 D April 10, 2019, 11:32 p.m. OK GNU C++17 TESTS 96 93 24166400 2000
44711351 BdE D Oct. 22, 2018, 7 p.m. OK GNU C++17 TESTS 96 108 27648000 2000
67723617 Apprenti D Dec. 27, 2019, 3:25 p.m. OK GNU C++17 TESTS 96 109 20377600 2000
44966705 kakashi007 D Oct. 27, 2018, 7:42 p.m. OK GNU C++17 TESTS 96 109 24473600 2000
44723213 init_0 D Oct. 23, 2018, 6:37 a.m. OK GNU C++17 TESTS 96 109 36454400 2000
44738854 dimas.kovas D Oct. 23, 2018, 1:50 p.m. OK GNU C++17 TESTS 96 124 24371200 2000
44966748 kakashi007 D Oct. 27, 2018, 7:44 p.m. OK GNU C++17 TESTS 96 124 24473600 2000
69023492 vjudge1 D Jan. 18, 2020, 6:47 a.m. OK GNU C++17 TESTS 96 124 27545600 2000
68744607 vjudge3 D Jan. 14, 2020, 3:46 a.m. OK Go TESTS 96 1138 9830400 2000
68744458 synapse D Jan. 14, 2020, 3:40 a.m. OK Go TESTS 96 1138 9830400 2000
44716264 4mda4mda D Oct. 22, 2018, 10:01 p.m. OK Java 8 TESTS 96 233 38195200 2000
45467156 layersOf D Nov. 9, 2018, 6:49 a.m. OK Java 8 TESTS 96 358 77004800 2000
47435472 gamesterrex D Dec. 23, 2018, 6:39 p.m. OK Java 8 TESTS 96 483 40345600 2000
44765574 aman28rwt D Oct. 24, 2018, 9:37 a.m. OK Java 8 TESTS 96 655 156876800 2000
51683595 Ein_TheDog1 D March 22, 2019, 1:40 p.m. OK Java 8 TESTS 96 670 73523200 2000
44936755 vjudge3 D Oct. 27, 2018, 5:51 a.m. OK Java 8 TESTS 96 795 37273600 2000
44765479 aman28rwt D Oct. 24, 2018, 9:34 a.m. OK Java 8 TESTS 96 1044 259174400 2000
45114569 dimoff66 D Oct. 30, 2018, 8:30 p.m. OK JavaScript TESTS 96 420 29286400 2000
44724929 NEvOl D Oct. 23, 2018, 7:36 a.m. OK Mono C# TESTS 96 1247 161177600 2000
69899640 vjudge2 D Jan. 31, 2020, 12:41 p.m. OK MS C++ TESTS 96 78 24576000 2000
69897435 vjudge1 D Jan. 31, 2020, 12:08 p.m. OK MS C++ TESTS 96 124 40243200 2000
69936101 vjudge4 D Feb. 1, 2020, 3:52 a.m. OK MS C++ TESTS 96 139 25804800 2000
69902496 vjudge1 D Jan. 31, 2020, 1:21 p.m. OK MS C++ TESTS 96 140 24371200 2000
69942798 vjudge1 D Feb. 1, 2020, 6:40 a.m. OK MS C++ TESTS 96 155 24371200 2000
69935466 vjudge3 D Feb. 1, 2020, 3:27 a.m. OK MS C++ TESTS 96 280 24268800 2000
44679605 Ivan11 D Oct. 22, 2018, 5:17 a.m. OK MS C++ TESTS 96 436 24371200 2000
52381308 vjudge3 D April 6, 2019, 10:13 a.m. OK MS C++ TESTS 96 920 20377600 2000
46373314 gaoadt D Nov. 29, 2018, 5:05 p.m. OK PyPy 3 TESTS 96 1340 94310400 2000

remove filters

Back to search problems