Codeforces Round 780 (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
1660 Codeforces Round 780 (Div. 3) FINISHED False 8100 88442663 March 31, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 19973 ) C Get an Even String PROGRAMMING dp greedy strings

B'A string a=a_1a_2 ... a_n is called even if it consists of a concatenation (joining) of strings of length 2 consisting of the same characters. In other words, a string a is even if two conditions are satisfied at the same time: For example, the following strings are even: "" (empty string), "tt", "aabb", "oooo", and "ttrrrroouuuuuuuukk". The following strings are not even: "aaa", "abab" and "abba". Given a string s consisting of lowercase Latin letters. Find the minimum number of characters to remove from the string s to make it even. The deleted characters do not have to be consecutive. The first line of input data contains an integer t ( 1 <= t <= 10^4 ) --the number of test cases in the test. The descriptions of the test cases follow. Each test case consists of one string s ( 1 <= |s| <= 2 cdot 10^5 ), where |s| -- the length of the string s . The string consists of lowercase Latin letters. It is guaranteed that the sum of |s| on all test cases does not exceed 2 cdot 10^5 . For each test case, print a single number -- the minimum number of characters that must be removed to make s even. In the first test case you can remove the characters with indices 6 , 7 , and 9 to get an even string "aabbddcc". In the second test case, each character occurs exactly once, so in order to get an even string, you must remove all characters from the string. In the third test case, you can get an even string "aaaabb" by removing, for example, 4 -th and 6 -th characters, or a string "aabbbb" by removing the 5 -th character and any of the first three. '...

Tutorials

Codeforces Round #780 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
151591475 afrizal C March 31, 2022, 5:04 p.m. OK Clang++17 Diagnostics TESTS 5 701 54988800
151597576 ruban C March 31, 2022, 6:03 p.m. OK Delphi TESTS 6 77 98304000
151591283 NenadDapic C March 31, 2022, 5:02 p.m. OK FPC TESTS 5 31 819200
151602399 GTrigger C March 31, 2022, 7:01 p.m. OK GNU C11 TESTS 6 46 204800
151615250 MongHwa C April 1, 2022, 12:15 a.m. OK GNU C11 TESTS 8 46 1024000
151611025 1435730 C March 31, 2022, 9:33 p.m. OK GNU C11 TESTS 8 46 1843200
151610732 1435730 C March 31, 2022, 9:25 p.m. OK GNU C11 TESTS 8 46 1843200
151589690 LeslieJRC C March 31, 2022, 4:52 p.m. OK GNU C11 TESTS 5 265 1024000
151597317 sandeep580 C March 31, 2022, 6 p.m. OK GNU C++14 TESTS 6 0 512000
151583712 zqyuan C March 31, 2022, 4:37 p.m. OK GNU C++14 TESTS 5 0 1024000
151589393 dreamoon_love_AA C March 31, 2022, 4:51 p.m. OK GNU C++14 TESTS 5 0 5222400
151615477 kaiming_xxy C April 1, 2022, 12:24 a.m. OK GNU C++14 TESTS 8 15 204800
151614529 NaCly-fish C March 31, 2022, 11:45 p.m. OK GNU C++14 TESTS 8 15 204800
151606325 Aditya_871 C March 31, 2022, 7:57 p.m. OK GNU C++14 TESTS 6 15 204800
151618374 2244821595 C April 1, 2022, 1:59 a.m. OK GNU C++14 TESTS 8 15 204800
151619366 Solitary_Walker C April 1, 2022, 2:26 a.m. OK GNU C++14 TESTS 8 15 204800
151619673 lnxbb C April 1, 2022, 2:33 a.m. OK GNU C++14 TESTS 8 15 204800
151622173 Pan_c C April 1, 2022, 3:31 a.m. OK GNU C++14 TESTS 8 15 204800
151618234 1798338587 C April 1, 2022, 1:55 a.m. OK GNU C++17 TESTS 8 0 204800
151620129 Bipolar-niche C April 1, 2022, 2:43 a.m. OK GNU C++17 TESTS 8 0 204800
151585364 GoldenCard C March 31, 2022, 4:42 p.m. OK GNU C++17 TESTS 5 0 512000
151584432 TrieMaster C March 31, 2022, 4:39 p.m. OK GNU C++17 TESTS 5 0 512000
151592206 Mohamed-Omran C March 31, 2022, 5:09 p.m. OK GNU C++17 TESTS 5 0 512000
151590545 Yara_Yara C March 31, 2022, 4:57 p.m. OK GNU C++17 TESTS 5 0 512000
151593566 Unknown_6111 C March 31, 2022, 5:20 p.m. OK GNU C++17 TESTS 5 0 1331200
151596831 kilkuwu C March 31, 2022, 5:54 p.m. OK GNU C++17 TESTS 6 0 1331200
151593050 ElMaghrabyy C March 31, 2022, 5:16 p.m. OK GNU C++17 TESTS 5 0 1331200
151590514 minhduong2006 C March 31, 2022, 4:57 p.m. OK GNU C++17 TESTS 5 0 2150400
151616357 moo. C April 1, 2022, 12:55 a.m. OK GNU C++17 (64) TESTS 8 0 1331200
151627056 nanfeng1997 C April 1, 2022, 4:59 a.m. OK GNU C++17 (64) TESTS 8 15 204800
151627101 mashed_aloo C April 1, 2022, 5 a.m. OK GNU C++17 (64) TESTS 8 15 512000
151628507 Amank2854 C April 1, 2022, 5:21 a.m. OK GNU C++17 (64) TESTS 8 15 512000
151618608 DAWN__ C April 1, 2022, 2:06 a.m. OK GNU C++17 (64) TESTS 8 15 512000
151610632 iAmShipul C March 31, 2022, 9:23 p.m. OK GNU C++17 (64) TESTS 8 15 512000
151604226 SaadHussein C March 31, 2022, 7:26 p.m. OK GNU C++17 (64) TESTS 6 15 512000
151603386 HP_BenLadeN C March 31, 2022, 7:14 p.m. OK GNU C++17 (64) TESTS 6 15 512000
151603382 jesse_pinkman_619 C March 31, 2022, 7:14 p.m. OK GNU C++17 (64) TESTS 6 15 512000
151603339 Ma3str0 C March 31, 2022, 7:13 p.m. OK GNU C++17 (64) TESTS 6 15 512000
151596779 Misbaul_Hasan C March 31, 2022, 5:54 p.m. OK GNU C++20 (64) TESTS 6 0 512000
151593800 amirhozaifa C March 31, 2022, 5:22 p.m. OK GNU C++20 (64) TESTS 5 0 512000
151593381 jxj777 C March 31, 2022, 5:19 p.m. OK GNU C++20 (64) TESTS 5 0 512000
151592636 BlindingKnight C March 31, 2022, 5:12 p.m. OK GNU C++20 (64) TESTS 5 0 512000
151591260 Tawes C March 31, 2022, 5:02 p.m. OK GNU C++20 (64) TESTS 5 0 512000
151590973 C___ C March 31, 2022, 5 p.m. OK GNU C++20 (64) TESTS 5 0 512000
151590220 Tawes C March 31, 2022, 4:55 p.m. OK GNU C++20 (64) TESTS 5 0 512000
151599110 madhav10 C March 31, 2022, 6:19 p.m. OK GNU C++20 (64) TESTS 6 0 512000
151599989 ak149159 C March 31, 2022, 6:30 p.m. OK GNU C++20 (64) TESTS 6 0 512000
151628634 YinLin C April 1, 2022, 5:23 a.m. OK GNU C++20 (64) TESTS 8 0 512000
151617871 0x3F C April 1, 2022, 1:45 a.m. OK Go TESTS 8 30 1536000
151610207 ssvb C March 31, 2022, 9:11 p.m. OK Go TESTS 8 31 2560000
151590943 kekis C March 31, 2022, 5 p.m. OK Go TESTS 5 31 2662400
151614807 professo C March 31, 2022, 11:56 p.m. OK Go TESTS 8 46 2560000
151598255 henrychenOutlook C March 31, 2022, 6:10 p.m. OK Java 11 TESTS 6 155 0
151593705 ae167671 C March 31, 2022, 5:21 p.m. OK Java 11 TESTS 5 156 0
151628951 samitdas03 C April 1, 2022, 5:27 a.m. OK Java 11 TESTS 8 171 0
151590519 iamsoumik C March 31, 2022, 4:57 p.m. OK Java 11 TESTS 5 171 0
151625085 Wuya C April 1, 2022, 4:30 a.m. OK Java 11 TESTS 8 186 0
151630085 __Serendipity C April 1, 2022, 5:42 a.m. OK Java 11 TESTS 8 186 0
151623784 dhruvil8804 C April 1, 2022, 4:05 a.m. OK Java 11 TESTS 8 186 0
151613056 Satyaa C March 31, 2022, 10:28 p.m. OK Java 11 TESTS 8 186 0
151585359 jayan_pahuja C March 31, 2022, 4:42 p.m. OK Java 11 TESTS 5 186 0
151597252 syedmizbah C March 31, 2022, 5:59 p.m. OK Java 11 TESTS 6 187 0
151605259 Karakurik C March 31, 2022, 7:41 p.m. OK Java 8 TESTS 6 93 0
151593911 NerfThis C March 31, 2022, 5:23 p.m. OK Java 8 TESTS 5 93 0
151595960 yashpandey73 C March 31, 2022, 5:44 p.m. OK Java 8 TESTS 6 108 0
151599928 adeon C March 31, 2022, 6:29 p.m. OK Java 8 TESTS 6 109 0
151604093 NatInTheHat C March 31, 2022, 7:24 p.m. OK Java 8 TESTS 6 124 32256000
151624000 Self7 C April 1, 2022, 4:09 a.m. OK Java 8 TESTS 8 139 0
151594424 harshsingla06 C March 31, 2022, 5:28 p.m. OK Java 8 TESTS 5 155 0
151593262 sandy11jr C March 31, 2022, 5:17 p.m. OK Java 8 TESTS 5 155 1433600
151617188 sreeprasad C April 1, 2022, 1:25 a.m. OK Java 8 TESTS 8 171 0
151606142 Mafishard C March 31, 2022, 7:55 p.m. OK Java 8 TESTS 6 187 0
151610319 qsqnk C March 31, 2022, 9:14 p.m. OK Kotlin 1.4 TESTS 8 109 0
151614752 hanel1164 C March 31, 2022, 11:55 p.m. OK Kotlin 1.4 TESTS 8 124 0
151625531 YoungJayz C April 1, 2022, 4:37 a.m. OK MS C++ 2017 TESTS 8 15 204800
151630650 LuckyInaba14 C April 1, 2022, 5:50 a.m. OK MS C++ 2017 TESTS 8 15 409600
151585469 afix C March 31, 2022, 4:42 p.m. OK MS C++ 2017 TESTS 5 31 1228800
151613906 TawfekHesham C March 31, 2022, 10:58 p.m. OK MS C++ 2017 TESTS 8 31 1740800
151618408 zzl030916 C April 1, 2022, 2 a.m. OK MS C++ 2017 TESTS 8 46 512000
151585452 SinaLIze C March 31, 2022, 4:42 p.m. OK MS C++ 2017 TESTS 5 46 512000
151584605 ELPSYCONGROON C March 31, 2022, 4:40 p.m. OK MS C++ 2017 TESTS 5 46 614400
151616330 Rivennnnnnnmm C April 1, 2022, 12:54 a.m. OK MS C++ 2017 TESTS 8 46 1331200
151626337 xzzzzz C April 1, 2022, 4:49 a.m. OK MS C++ 2017 TESTS 8 46 2150400
151606574 DikshantAvi C March 31, 2022, 8:01 p.m. OK MS C++ 2017 TESTS 6 61 512000
151599091 Nidz05 C March 31, 2022, 6:19 p.m. OK .NET Core C# TESTS 6 109 2764800
151591014 dogydevstorage C March 31, 2022, 5 p.m. OK PyPy 3 TESTS 5 93 3072000
151613487 crapcode C March 31, 2022, 10:42 p.m. OK PyPy 3 TESTS 8 155 6246400
151585217 seraph14 C March 31, 2022, 4:41 p.m. OK PyPy 3 TESTS 5 170 14745600
151611138 crapcode C March 31, 2022, 9:36 p.m. OK PyPy 3 TESTS 8 171 6451200
151605174 curious600171 C March 31, 2022, 7:40 p.m. OK PyPy 3 TESTS 6 202 3891200
151599958 grawlixes C March 31, 2022, 6:29 p.m. OK PyPy 3 TESTS 6 202 10035200
151592569 vulpine C March 31, 2022, 5:12 p.m. OK PyPy 3 TESTS 5 217 3072000
151630414 __Nobel__3 C April 1, 2022, 5:47 a.m. OK PyPy 3 TESTS 8 234 4812800
151590836 startova_pchela C March 31, 2022, 4:59 p.m. OK PyPy 3 TESTS 5 249 4505600
151608677 sayedElgholy C March 31, 2022, 8:39 p.m. OK PyPy 3 TESTS 6 249 4812800
151593114 skp_r C March 31, 2022, 5:16 p.m. OK PyPy 3-64 TESTS 5 62 4812800
151597688 IkshitG C March 31, 2022, 6:04 p.m. OK PyPy 3-64 TESTS 6 77 5836800
151605366 notTehlka C March 31, 2022, 7:43 p.m. OK PyPy 3-64 TESTS 6 93 4812800
151592881 Marco_Lau C March 31, 2022, 5:14 p.m. OK PyPy 3-64 TESTS 5 93 5939200
151603374 lynnerva C March 31, 2022, 7:14 p.m. OK PyPy 3-64 TESTS 6 108 6963200
151602015 _icy_ C March 31, 2022, 6:56 p.m. OK PyPy 3-64 TESTS 6 108 7475200
151627051 sami02jain C April 1, 2022, 4:59 a.m. OK PyPy 3-64 TESTS 8 108 7782400
151592283 unidayo C March 31, 2022, 5:10 p.m. OK PyPy 3-64 TESTS 5 108 8396800
151629992 IkshitG C April 1, 2022, 5:41 a.m. OK PyPy 3-64 TESTS 8 109 5529600
151598093 radoan.sharkar.richi C March 31, 2022, 6:08 p.m. OK PyPy 3-64 TESTS 6 109 7475200
151587350 PAG C March 31, 2022, 4:46 p.m. OK Python 3 TESTS 5 93 102400
151592316 Ecola C March 31, 2022, 5:10 p.m. OK Python 3 TESTS 5 108 307200
151591603 luckycoder555 C March 31, 2022, 5:05 p.m. OK Python 3 TESTS 5 108 1638400
151625392 Lhohelhohehmm C April 1, 2022, 4:35 a.m. OK Python 3 TESTS 8 109 716800
151590847 Rainmaker2627 C March 31, 2022, 4:59 p.m. OK Python 3 TESTS 5 124 0
151585038 racernigga C March 31, 2022, 4:41 p.m. OK Python 3 TESTS 5 124 307200
151594091 nitanshritul C March 31, 2022, 5:25 p.m. OK Python 3 TESTS 5 124 1740800
151586722 sandeep8102 C March 31, 2022, 4:45 p.m. OK Python 3 TESTS 5 124 1740800
151603220 Devansh_10 C March 31, 2022, 7:12 p.m. OK Python 3 TESTS 6 139 0
151596637 RZxReaper C March 31, 2022, 5:52 p.m. OK Python 3 TESTS 6 139 0
151605739 cwlo2f C March 31, 2022, 7:49 p.m. OK Rust 2021 TESTS 6 77 921600

remove filters

Back to search problems