Codeforces Round 903 (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
1881 Codeforces Round 903 (Div. 3) FINISHED False 8100 40058663 Oct. 12, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2470 ) G Anya and the Mysterious String PROGRAMMING binary search data structures implementation

B'Anya received a string s of length n brought from Rome. The string s consists of lowercase Latin letters and at first glance does not raise any suspicions. An instruction was attached to the string. Start of the instruction. A palindrome is a string that reads the same from left to right and right to left. For example, the strings "anna", "aboba", "level" are palindromes, while the strings "gorilla", "banan", "off" are not. A substring [l ldots r] of string s is a string s_l s_{l+1} ldots s_{r-1} s_r . For example, the substring [4 ldots 6] of the string "generation" is the string "era". A string is called beautiful if it does not contain a substring of length at least two that is a palindrome. For example, the strings "fox", "abcdef", and "yioy" are beautiful, while the strings "xyxx", "yikjkitrb" are not. When an integer x is added to the character s_i , it is replaced x times with the next character in the alphabet, with "z" being replaced by "a". When an integer x is added to the substring [l, r] of string s , it becomes the string s_1 s_2 ldots s_{l-1} (s_l + x) (s_{l+1} + x) ldots (s_{r-1} + x) (s_r + x) s_{r+1} ldots s_n . For example, when the substring [2, 4] of the string "abazaba" is added with the number 6 , the resulting string is "ahgfaba". End of the instruction. After reading the instruction, Anya resigned herself to the fact that she has to answer m queries. The queries can be of two types: The first line contains an integer t ( 1 <= t <= 10^4 ) - the number of test cases. The descriptions of the test cases follow. The first line of each test case contains two integers n and m ( 1 <= n, m <= 2 cdot 10^5 ) - the length of the string s and the number of queries. The second line of each test case contains the string s of length n , consisting of lowercase Latin letters. The next m lines c'...

Tutorials

121327

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
227975773 Trimsteanima G Oct. 13, 2023, 4:39 a.m. OK GNU C++14 TESTS 10 296 1638400
227930838 baijiaohu G Oct. 12, 2023, 5:18 p.m. OK GNU C++14 TESTS 10 296 4096000
227927942 Tanmay7404 G Oct. 12, 2023, 5:03 p.m. OK GNU C++14 TESTS 10 312 2662400
227963367 zltzlt G Oct. 13, 2023, 1:12 a.m. OK GNU C++14 TESTS 10 342 3276800
227974832 seanlsy G Oct. 13, 2023, 4:25 a.m. OK GNU C++14 TESTS 10 373 8908800
227975539 OMG_78 G Oct. 13, 2023, 4:36 a.m. OK GNU C++14 TESTS 10 390 5017600
227926010 Oinng G Oct. 12, 2023, 4:55 p.m. OK GNU C++14 TESTS 10 452 3891200
227966331 y_kx_b G Oct. 13, 2023, 2:11 a.m. OK GNU C++14 TESTS 10 452 5427200
227927033 shenghang16 G Oct. 12, 2023, 4:59 p.m. OK GNU C++14 TESTS 10 483 22630400
227962846 __HITman__ G Oct. 13, 2023, 1:01 a.m. OK GNU C++14 TESTS 10 499 2150400
227924930 ShadowLight G Oct. 12, 2023, 4:52 p.m. OK GNU C++17 TESTS 10 171 3584000
227927358 ig.gautamop G Oct. 12, 2023, 5:01 p.m. OK GNU C++17 TESTS 10 202 3788800
227938978 Macrosteam G Oct. 12, 2023, 6:20 p.m. OK GNU C++17 TESTS 10 217 3788800
227930323 Macrosteam G Oct. 12, 2023, 5:15 p.m. OK GNU C++17 TESTS 10 218 5324800
227969094 1371sh pushuk G Oct. 13, 2023, 2:57 a.m. OK GNU C++17 TESTS 10 264 5324800
227932125 hefengchen G Oct. 12, 2023, 5:26 p.m. OK GNU C++17 TESTS 10 265 1740800
227927931 qrxdxh G Oct. 12, 2023, 5:03 p.m. OK GNU C++17 TESTS 10 280 5324800
227981598 Eva.Q711 G Oct. 13, 2023, 5:50 a.m. OK GNU C++17 TESTS 10 295 2252800
227975231 AnthonyZ G Oct. 13, 2023, 4:31 a.m. OK GNU C++17 TESTS 10 311 2457600
227975818 gubeiqg G Oct. 13, 2023, 4:39 a.m. OK GNU C++17 TESTS 10 327 1638400
227958492 enslaved G Oct. 12, 2023, 11:02 p.m. OK GNU C++17 (64) TESTS 10 170 7782400
227957369 UP84 G Oct. 12, 2023, 10:33 p.m. OK GNU C++17 (64) TESTS 10 202 6144000
227959329 chappy1 G Oct. 12, 2023, 11:27 p.m. OK GNU C++17 (64) TESTS 10 233 9011200
227927787 LLZZKK G Oct. 12, 2023, 5:02 p.m. OK GNU C++17 (64) TESTS 10 249 2560000
227974124 Fl_Ocean G Oct. 13, 2023, 4:13 a.m. OK GNU C++17 (64) TESTS 10 249 5324800
227924304 sooooon G Oct. 12, 2023, 4:49 p.m. OK GNU C++17 (64) TESTS 10 389 18534400
227924057 sooooon G Oct. 12, 2023, 4:49 p.m. OK GNU C++17 (64) TESTS 10 389 18534400
227962043 Liudas G Oct. 13, 2023, 12:41 a.m. OK GNU C++17 (64) TESTS 10 390 5529600
227970544 Z-wzy G Oct. 13, 2023, 3:21 a.m. OK GNU C++17 (64) TESTS 10 405 46694400
227967127 fs20091003 G Oct. 13, 2023, 2:25 a.m. OK GNU C++17 (64) TESTS 10 436 27443200
227931739 1eonscount G Oct. 12, 2023, 5:24 p.m. OK GNU C++20 (64) TESTS 10 108 6963200
227969791 chenyanxi G Oct. 13, 2023, 3:09 a.m. OK GNU C++20 (64) TESTS 10 109 1843200
227930399 Timur2006 G Oct. 12, 2023, 5:15 p.m. OK GNU C++20 (64) TESTS 10 109 3379200
227924818 Logic_ G Oct. 12, 2023, 4:51 p.m. OK GNU C++20 (64) TESTS 10 109 3686400
227940257 jintimQAQ G Oct. 12, 2023, 6:31 p.m. OK GNU C++20 (64) TESTS 10 109 8499200
227937950 Rayanx G Oct. 12, 2023, 6:12 p.m. OK GNU C++20 (64) TESTS 10 124 2560000
227938108 oneq G Oct. 12, 2023, 6:13 p.m. OK GNU C++20 (64) TESTS 10 124 4300800
227968404 Fighoh G Oct. 13, 2023, 2:46 a.m. OK GNU C++20 (64) TESTS 10 124 7987200
227969342 Nightmaresss G Oct. 13, 2023, 3:02 a.m. OK GNU C++20 (64) TESTS 10 139 2662400
227932908 east1016 G Oct. 12, 2023, 5:31 p.m. OK GNU C++20 (64) TESTS 10 139 14745600
227932182 TCchen G Oct. 12, 2023, 5:26 p.m. OK Java 11 TESTS 10 389 0
227935557 dzhi G Oct. 12, 2023, 5:52 p.m. OK Java 17 TESTS 10 919 20787200
227953466 dusty.and.rusty G Oct. 12, 2023, 9:09 p.m. OK Java 17 TESTS 10 1216 3379200
227973169 YMSeah G Oct. 13, 2023, 4 a.m. OK PyPy 3 TESTS 10 1544 29286400
227950404 MarmellWatermelon G Oct. 12, 2023, 8:23 p.m. OK PyPy 3 TESTS 10 2901 15974400
227970959 Little_Sheep_Yawn G Oct. 13, 2023, 3:27 a.m. OK PyPy 3-64 TESTS 10 857 19660800
227952352 gardengnome G Oct. 12, 2023, 8:50 p.m. OK PyPy 3-64 TESTS 10 889 37273600
227970700 Little_Sheep_Yawn G Oct. 13, 2023, 3:23 a.m. OK PyPy 3-64 TESTS 10 967 28774400
227936876 katonyonko G Oct. 12, 2023, 6:02 p.m. OK PyPy 3-64 TESTS 10 1122 33280000
227937146 hxu10 G Oct. 12, 2023, 6:05 p.m. OK PyPy 3-64 TESTS 10 2012 38912000
227937747 CinaDor G Oct. 12, 2023, 6:10 p.m. OK PyPy 3-64 TESTS 10 2339 41267200
227950378 MarmellWatermelon G Oct. 12, 2023, 8:23 p.m. OK PyPy 3-64 TESTS 10 2511 28160000
227923949 haihamabossu G Oct. 12, 2023, 4:49 p.m. OK Rust 2021 TESTS 10 218 13619200

remove filters

Back to search problems