Codeforces Round 991 (Div. 3)

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
2050 Codeforces Round 991 (Div. 3) FINISHED False 8100 42996323 Dec. 5, 2024, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 14406 ) E Three Strings PROGRAMMING dp implementation strings

You are given three strings: (a), (b), and (c), consisting of lowercase Latin letters. The string (c) was obtained in the following way: At each step, either string (a) or string (b) was randomly chosen, and the first character of the chosen string was removed from it and appended to the end of string (c), until one of the strings ran out. After that, the remaining characters of the non-empty string were added to the end of (c). Then, a certain number of characters in string (c) were randomly changed. For example, from the strings (a=\color{red}{\text{abra}}) and (b=\color{blue}{\text{cada}}), without character replacements, the strings (\color{blue}{\text{ca}}\color{red}{\text{ab}}\color{blue}{\text{d}}\color{red}{\text{ra}}\color{blue}{\text{a}}), (\color{red}{\text{abra}}\color{blue}{\text{cada}}), (\color{red}{\text{a}}\color{blue}{\text{cada}}\color{red}{\text{bra}}) could be obtained. Find the minimum number of characters that could have been changed in string (c). The first line of the input contains a single integer (t) ((1 \le t \le 10^3)) — the number of test cases. The first line of each test case contains one string of lowercase Latin letters (a) ((1 \leq |a| \leq 10^3)) — the first string, where (|a|) denotes the length of string (a). The second line of each test case contains one string of lowercase Latin letters (b) ((1 \leq |b| \leq 10^3)) — the second string, where (|b|) denotes the length of string (b). The third line of each test case contains one string of lowercase Latin letters (c) ((|c| = |a| + |b|)) — the third string. It is guaranteed that the sum of (|a|) across all test cases does not exceed (2 \cdot 10^3). Also, the sum of (|b|) across all test cases does not exceed (2 \cdot 10^3). For each test case, output a single integer — the minimum number of characters that could have been changed in string (c).

Tutorials

Разбор Codeforces Round 991 (Div. 3)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
295101176 og.kostya E Dec. 5, 2024, 5:08 p.m. OK C# 10 TESTS 16 109 19865600
295146631 chrisTris E Dec. 6, 2024, 1:59 a.m. OK C# 10 TESTS 16 156 7270400
295162740 Shubh_0601 E Dec. 6, 2024, 3:49 a.m. OK C++17 (GCC 7-32) TESTS 16 46 512000
295160319 Vansh223 E Dec. 6, 2024, 3:32 a.m. OK C++17 (GCC 7-32) TESTS 16 46 512000
295155844 userisnotvallid E Dec. 6, 2024, 3:02 a.m. OK C++17 (GCC 7-32) TESTS 16 46 512000
295151573 aaaaker E Dec. 6, 2024, 2:30 a.m. OK C++17 (GCC 7-32) TESTS 16 46 512000
295144028 SouhailMightWin E Dec. 6, 2024, 1:11 a.m. OK C++17 (GCC 7-32) TESTS 16 46 512000
295124487 Daemon_X E Dec. 5, 2024, 8:04 p.m. OK C++17 (GCC 7-32) TESTS 16 46 512000
295176250 invincible_vi E Dec. 6, 2024, 5:37 a.m. OK C++17 (GCC 7-32) TESTS 16 46 614400
295166296 abhiraj2024 E Dec. 6, 2024, 4:17 a.m. OK C++17 (GCC 7-32) TESTS 16 46 614400
295161209 FWhiteMoS E Dec. 6, 2024, 3:38 a.m. OK C++17 (GCC 7-32) TESTS 16 46 614400
295151962 Jeank_016 E Dec. 6, 2024, 2:33 a.m. OK C++17 (GCC 7-32) TESTS 16 46 614400
295157756 jiejiejiang E Dec. 6, 2024, 3:16 a.m. OK C++20 (GCC 13-64) TESTS 16 46 0
295154523 Misa-Misa E Dec. 6, 2024, 2:51 a.m. OK C++20 (GCC 13-64) TESTS 16 46 204800
295135517 protsenko.p E Dec. 5, 2024, 11:23 p.m. OK C++20 (GCC 13-64) TESTS 16 46 204800
295118698 PRINCE_BHADAURIYA E Dec. 5, 2024, 7:03 p.m. OK C++20 (GCC 13-64) TESTS 16 46 204800
295118381 sharanyabaidya2020 E Dec. 5, 2024, 7 p.m. OK C++20 (GCC 13-64) TESTS 16 46 204800
295108902 DAWN369 E Dec. 5, 2024, 5:45 p.m. OK C++20 (GCC 13-64) TESTS 16 46 204800
295179743 Bug_Noir E Dec. 6, 2024, 6:02 a.m. OK C++20 (GCC 13-64) TESTS 16 46 716800
295176803 sam_alt_acc E Dec. 6, 2024, 5:42 a.m. OK C++20 (GCC 13-64) TESTS 16 46 716800
295173643 FakeDuck E Dec. 6, 2024, 5:17 a.m. OK C++20 (GCC 13-64) TESTS 16 46 716800
295166464 xingye2 E Dec. 6, 2024, 4:19 a.m. OK C++20 (GCC 13-64) TESTS 16 46 716800
295172977 NoneBound E Dec. 6, 2024, 5:13 a.m. OK C++23 (GCC 14-64, msys2) TESTS 16 46 0
295166794 hnust_wanjiawen E Dec. 6, 2024, 4:22 a.m. OK C++23 (GCC 14-64, msys2) TESTS 16 46 0
295149658 yash_9a3b E Dec. 6, 2024, 2:20 a.m. OK C++23 (GCC 14-64, msys2) TESTS 16 46 102400
295128437 digital_vest E Dec. 5, 2024, 9 p.m. OK C++23 (GCC 14-64, msys2) TESTS 16 46 102400
295180700 RJ1412 E Dec. 6, 2024, 6:07 a.m. OK C++23 (GCC 14-64, msys2) TESTS 16 46 204800
295178040 TAFH E Dec. 6, 2024, 5:51 a.m. OK C++23 (GCC 14-64, msys2) TESTS 16 46 307200
295105632 3sha E Dec. 5, 2024, 5:27 p.m. OK C++23 (GCC 14-64, msys2) TESTS 16 46 307200
295178100 Septemper E Dec. 6, 2024, 5:51 a.m. OK C++23 (GCC 14-64, msys2) TESTS 16 46 819200
295169659 thakur008 E Dec. 6, 2024, 4:45 a.m. OK C++23 (GCC 14-64, msys2) TESTS 16 46 819200
295164874 reshke E Dec. 6, 2024, 4:07 a.m. OK C++23 (GCC 14-64, msys2) TESTS 16 46 819200
295163426 Brackets12 E Dec. 6, 2024, 3:55 a.m. OK FPC TESTS 16 62 4096000
295133676 haveOlogntime E Dec. 5, 2024, 10:37 p.m. OK GNU C11 TESTS 16 46 3993600
295175709 harilakshman24 E Dec. 6, 2024, 5:33 a.m. OK GNU C11 TESTS 16 62 3993600
295108381 dask_58 E Dec. 5, 2024, 5:42 p.m. OK GNU C11 TESTS 16 171 4198400
295122692 qwie E Dec. 5, 2024, 7:43 p.m. OK Go TESTS 16 46 9216000
295094630 geniusaloktripathy E Dec. 5, 2024, 4:48 p.m. OK Go TESTS 16 77 8908800
295129242 dan00ile E Dec. 5, 2024, 9:12 p.m. OK Java 21 TESTS 16 249 7987200
295132109 nikele E Dec. 5, 2024, 10:01 p.m. OK Java 21 TESTS 16 264 1126400
295099617 sahasrad E Dec. 5, 2024, 5:02 p.m. OK Java 21 TESTS 16 265 512000
295131603 chefnav35 E Dec. 5, 2024, 9:51 p.m. OK Java 21 TESTS 16 265 716800
295173397 saiteja6 E Dec. 6, 2024, 5:16 a.m. OK Java 21 TESTS 16 280 1126400
295096431 Shakyawal_S E Dec. 5, 2024, 4:52 p.m. OK Java 21 TESTS 16 281 307200
295132611 anay293 E Dec. 5, 2024, 10:12 p.m. OK Java 21 TESTS 16 281 1024000
295150874 rajasomeshwar_bitla E Dec. 6, 2024, 2:27 a.m. OK Java 21 TESTS 16 281 6246400
295122203 arnabmanna E Dec. 5, 2024, 7:38 p.m. OK Java 21 TESTS 16 296 921600
295094230 tdsang1999 E Dec. 5, 2024, 4:47 p.m. OK Java 21 TESTS 16 296 921600
295176938 achyut88 E Dec. 6, 2024, 5:43 a.m. OK Java 8 TESTS 16 140 6246400
295107260 def_not_alt E Dec. 5, 2024, 5:35 p.m. OK Java 8 TESTS 16 156 5427200
295175453 Shitij123 E Dec. 6, 2024, 5:30 a.m. OK Java 8 TESTS 16 171 5222400
295123060 b1t_exe E Dec. 5, 2024, 7:47 p.m. OK Java 8 TESTS 16 186 0
295134593 yogesh013 E Dec. 5, 2024, 11:01 p.m. OK Java 8 TESTS 16 187 0
295106663 esports-always-save E Dec. 5, 2024, 5:32 p.m. OK Java 8 TESTS 16 187 0
295108231 achyuth_6692 E Dec. 5, 2024, 5:41 p.m. OK Java 8 TESTS 16 202 0
295118701 Soumadip_Mishra E Dec. 5, 2024, 7:03 p.m. OK Java 8 TESTS 16 202 6246400
295120249 AdityaGupta19 E Dec. 5, 2024, 7:19 p.m. OK Java 8 TESTS 16 374 36249600
295133746 jagbarrameda E Dec. 5, 2024, 10:38 p.m. OK Kotlin 1.9 TESTS 16 140 102400
295111654 chinesedfan E Dec. 5, 2024, 6:04 p.m. OK Node.js TESTS 16 499 68300800
295099067 shivanig_03 E Dec. 5, 2024, 5 p.m. OK PyPy 3 TESTS 16 217 26521600
295115905 XxFalconxx E Dec. 5, 2024, 6:37 p.m. OK PyPy 3 TESTS 16 218 21811200
295095191 sathvik_666 E Dec. 5, 2024, 4:49 p.m. OK PyPy 3 TESTS 16 1265 16076800
295139565 pyqjw E Dec. 5, 2024, 11:58 p.m. OK PyPy 3-64 TESTS 16 155 19046400
295110744 gche E Dec. 5, 2024, 5:58 p.m. OK PyPy 3-64 TESTS 16 155 19353600
295117048 acmfht E Dec. 5, 2024, 6:47 p.m. OK PyPy 3-64 TESTS 16 171 25088000
295125764 DalDal E Dec. 5, 2024, 8:21 p.m. OK PyPy 3-64 TESTS 16 186 19353600
295126058 gardengnome E Dec. 5, 2024, 8:24 p.m. OK PyPy 3-64 TESTS 16 187 16896000
295105680 RobinFromTheHood E Dec. 5, 2024, 5:27 p.m. OK PyPy 3-64 TESTS 16 187 25600000
295166386 hxu10 E Dec. 6, 2024, 4:18 a.m. OK PyPy 3-64 TESTS 16 202 14028800
295105749 Werdnight E Dec. 5, 2024, 5:27 p.m. OK PyPy 3-64 TESTS 16 202 14028800
295113781 Ermi_007 E Dec. 5, 2024, 6:20 p.m. OK PyPy 3-64 TESTS 16 202 20377600
295166397 _twi_nami E Dec. 6, 2024, 4:18 a.m. OK PyPy 3-64 TESTS 16 202 20787200
295130153 gafgadfdfvswe E Dec. 5, 2024, 9:26 p.m. OK Python 3 TESTS 16 1108 32665600
295130223 gafgadfdfvswe E Dec. 5, 2024, 9:27 p.m. OK Python 3 TESTS 16 1171 32460800
295129254 Rohidul E Dec. 5, 2024, 9:12 p.m. OK Python 3 TESTS 16 1531 30924800
295132206 glnliu96 E Dec. 5, 2024, 10:03 p.m. OK Python 3 TESTS 16 1608 38195200
295112035 radhika02 E Dec. 5, 2024, 6:07 p.m. OK Python 3 TESTS 16 1655 37171200
295096558 Aadey_Shah E Dec. 5, 2024, 4:52 p.m. OK Python 3 TESTS 16 1671 30720000
295123163 gafgadfdfvswe E Dec. 5, 2024, 7:48 p.m. OK Python 3 TESTS 16 1687 71884800
295112879 CHRONOS7 E Dec. 5, 2024, 6:13 p.m. OK Python 3 TESTS 16 1718 29696000
295128730 gafgadfdfvswe E Dec. 5, 2024, 9:03 p.m. OK Python 3 TESTS 16 1749 63590400
295127548 gafgadfdfvswe E Dec. 5, 2024, 8:46 p.m. OK Python 3 TESTS 16 1749 63590400
295133729 0x81 E Dec. 5, 2024, 10:38 p.m. OK Rust 2021 TESTS 16 93 102400

remove filters

Back to search problems