Codeforces Global Round 26

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
1984 Codeforces Global Round 26 FINISHED False 10800 13879499 June 9, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3288 ) D ''a'' String Problem PROGRAMMING hashing implementation math string suffix structures strings

B'You are given a string s consisting of lowercase Latin characters. Count the number of nonempty strings t neq " texttt{a} " such that it is possible to partition ^{ dagger} s into some substrings satisfying the following conditions: ^{ dagger} A partition of a string s is an ordered sequence of some k strings t_1, t_2, ldots, t_k (called substrings) such that t_1 + t_2 + ldots + t_k = s , where + represents the concatenation operation. The first line contains a single integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. The only line of each test case contains a string s consisting of lowercase Latin characters ( 2 <= q |s| <= q 2 cdot 10^5 ). The sum of |s| over all test cases does not exceed 3 cdot 10^5 . For each test case, output a single integer -- the number of nonempty strings t neq " texttt{a} " that satisfy all constraints. In the first test case, t can be " texttt{aa} ", " texttt{aaa} ", " texttt{aaaa} ", or the full string. In the second test case, t can be " texttt{b} ", " texttt{bab} ", " texttt{ba} ", or the full string. In the third test case, the only such t is the full string. '...

Tutorials

Codeforces Global Round 26 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
264961058 x1f0cb32d3_ D June 9, 2024, 5:30 p.m. OK C# 10 TESTS 30 125 4300800
264968502 nemars D June 9, 2024, 6:57 p.m. OK C# 10 TESTS 36 484 48844800
264989337 liyouran D June 10, 2024, 1:49 a.m. OK C++14 (GCC 6-32) TESTS 54 61 6963200
264988482 hswfwkj D June 10, 2024, 1:31 a.m. OK C++14 (GCC 6-32) TESTS 53 62 6041600
264959587 a999999 D June 9, 2024, 5:25 p.m. OK C++14 (GCC 6-32) TESTS 30 62 11264000
264960979 JVeil D June 9, 2024, 5:30 p.m. OK C++14 (GCC 6-32) TESTS 30 77 3276800
264954860 LDM0116 D June 9, 2024, 5:08 p.m. OK C++14 (GCC 6-32) TESTS 30 77 4812800
264992242 Rigel__ D June 10, 2024, 2:42 a.m. OK C++14 (GCC 6-32) TESTS 55 77 6041600
264958357 eggegg185 D June 9, 2024, 5:21 p.m. OK C++14 (GCC 6-32) TESTS 30 77 7782400
264984810 a999999 D June 9, 2024, 11:49 p.m. OK C++14 (GCC 6-32) TESTS 53 77 11264000
264958813 xiayuyang D June 9, 2024, 5:23 p.m. OK C++14 (GCC 6-32) TESTS 30 77 11673600
264999277 ZifanWang D June 10, 2024, 4:28 a.m. OK C++14 (GCC 6-32) TESTS 83 92 15052800
264994451 sblll D June 10, 2024, 3:17 a.m. OK C++17 (GCC 7-32) TESTS 63 61 4198400
264954520 Ghulam_Junaid D June 9, 2024, 5:07 p.m. OK C++17 (GCC 7-32) TESTS 30 62 0
264957246 CoderAbhi27 D June 9, 2024, 5:17 p.m. OK C++17 (GCC 7-32) TESTS 30 62 102400
264965348 Andreasyan D June 9, 2024, 6:32 p.m. OK C++17 (GCC 7-32) TESTS 30 62 204800
264962572 woodie_0064 D June 9, 2024, 5:34 p.m. OK C++17 (GCC 7-32) TESTS 30 62 409600
264987602 CN__james1 D June 10, 2024, 1:09 a.m. OK C++17 (GCC 7-32) TESTS 53 62 1024000
264989361 ji_114514 D June 10, 2024, 1:50 a.m. OK C++17 (GCC 7-32) TESTS 54 62 2252800
264971713 harryb17 D June 9, 2024, 7:34 p.m. OK C++17 (GCC 7-32) TESTS 42 62 2252800
264969426 MMYYFF D June 9, 2024, 7:06 p.m. OK C++17 (GCC 7-32) TESTS 38 62 3481600
264997834 kelzzin2_fan D June 10, 2024, 4:09 a.m. OK C++17 (GCC 7-32) TESTS 77 62 4198400
265001502 Mag1sk D June 10, 2024, 4:57 a.m. OK C++20 (GCC 13-64) TESTS 88 46 7270400
264969216 physics0523 D June 9, 2024, 7:04 p.m. OK C++20 (GCC 13-64) TESTS 38 61 512000
265006511 TahsinArafat D June 10, 2024, 5:53 a.m. OK C++20 (GCC 13-64) TESTS 95 61 4096000
264997522 Yangxt404 D June 10, 2024, 4:05 a.m. OK C++20 (GCC 13-64) TESTS 75 61 4096000
264991704 Only_Gift D June 10, 2024, 2:33 a.m. OK C++20 (GCC 13-64) TESTS 55 61 4096000
264967970 dqjm D June 9, 2024, 6:53 p.m. OK C++20 (GCC 13-64) TESTS 34 61 4096000
264999414 SamyakSinghania D June 10, 2024, 4:30 a.m. OK C++20 (GCC 13-64) TESTS 84 61 5632000
264989797 dcchendada D June 10, 2024, 1:59 a.m. OK C++20 (GCC 13-64) TESTS 54 61 10444800
264965359 pallavgoyal136 D June 9, 2024, 6:32 p.m. OK C++20 (GCC 13-64) TESTS 30 62 0
264954590 Sylphrena D June 9, 2024, 5:07 p.m. OK C++20 (GCC 13-64) TESTS 30 62 0
264954877 rainboy D June 9, 2024, 5:08 p.m. OK GNU C11 TESTS 30 77 1843200
264992240 79209748 D June 10, 2024, 2:42 a.m. OK Go TESTS 55 421 14540800
264992316 79209748 D June 10, 2024, 2:43 a.m. OK Go TESTS 56 468 14540800
264992337 79209748 D June 10, 2024, 2:44 a.m. OK Go TESTS 56 671 14438400
264952922 new2ac D June 9, 2024, 5:02 p.m. OK Java 21 TESTS 30 358 921600
265001707 cc4414 D June 10, 2024, 5 a.m. OK Java 21 TESTS 88 358 13209600
264981480 dzhi D June 9, 2024, 10:09 p.m. OK Java 21 TESTS 53 499 1433600
264976808 powervic08 D June 9, 2024, 8:43 p.m. OK Java 21 TESTS 53 733 1126400
264970678 AkshajK D June 9, 2024, 7:21 p.m. OK Java 8 TESTS 41 233 0
264960173 Tlatoani D June 9, 2024, 5:27 p.m. OK Kotlin 1.9 TESTS 30 249 409600
265000190 Heartbeateffect D June 10, 2024, 4:41 a.m. OK PyPy 3 TESTS 86 983 22630400
264971167 accelerate_nju D June 9, 2024, 7:27 p.m. OK PyPy 3-64 TESTS 42 202 26726400
264992285 Remineva D June 10, 2024, 2:43 a.m. OK PyPy 3-64 TESTS 56 218 8601600
264992884 Remineva D June 10, 2024, 2:53 a.m. OK PyPy 3-64 TESTS 57 233 8601600
264959440 strashila D June 9, 2024, 5:25 p.m. OK PyPy 3-64 TESTS 30 233 8601600
264955500 jasmineheart D June 9, 2024, 5:11 p.m. OK PyPy 3-64 TESTS 30 249 21401600
264957264 flygon D June 9, 2024, 5:17 p.m. OK PyPy 3-64 TESTS 30 264 16486400
264958133 jlee D June 9, 2024, 5:20 p.m. OK PyPy 3-64 TESTS 30 437 15872000
264974122 FransValli D June 9, 2024, 8:04 p.m. OK PyPy 3-64 TESTS 52 452 16281600
264968936 accelerate_nju D June 9, 2024, 7:01 p.m. OK PyPy 3-64 TESTS 37 592 32460800
264965902 dirac_de D June 9, 2024, 6:35 p.m. OK PyPy 3-64 TESTS 30 640 32563200
264953555 robostac D June 9, 2024, 5:04 p.m. OK Rust 2021 TESTS 30 62 4096000
264972020 TecTrixer D June 9, 2024, 7:38 p.m. OK Rust 2021 TESTS 42 77 5222400

remove filters

Back to search problems