Codeforces Global Round 22

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
1738 Codeforces Global Round 22 FINISHED False 9000 72717863 Sept. 30, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 243 ) H Palindrome Addicts PROGRAMMING data structures strings

B'Your task is to maintain a queue consisting of lowercase English letters as follows: Initially, the queue is empty. After each operation, you are asked to count the number of distinct palindromic substrings in the string that are obtained by concatenating the letters from the front to the back of the queue. Especially, the number of distinct palindromic substrings of the empty string is 0 . A string s[1..n] of length n is palindromic if s[i] = s[n-i+1] for every 1 <= q i <= q n . The string s[l..r] is a substring of string s[1..n] for every 1 <= q l <= q r <= q n . Two strings s[1..n] and t[1..m] are distinct, if at least one of the following holds. The first line is an integer q ( 1 <= q q <= q 10^6 ), indicating the number of operations. Then q lines follow. Each of the following lines contains one of the operations as follows. It is guaranteed that no "pop" operation will be performed when the queue is empty. After each operation, print the number of distinct palindromic substrings in the string presented in the queue. Let s_k be the string presented in the queue after the k -th operation, and let c_k be the number of distinct palindromic substrings of s_k . The following table shows the details of the example. It is worth pointing out that '...

Tutorials

Editorial of Codeforces Global Round <strong>22</strong>

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
174195993 DerekFeng H Oct. 1, 2022, 3:55 a.m. OK GNU C++17 TESTS 78 748 150835200
174184999 ziadelsamahyy H Oct. 1, 2022, 12:30 a.m. OK GNU C++17 TESTS 78 1404 187187200
174171714 SSRS_ H Sept. 30, 2022, 7:42 p.m. OK GNU C++17 TESTS 78 1872 224563200
174171773 SSRS_ H Sept. 30, 2022, 7:42 p.m. OK GNU C++17 TESTS 78 1903 224563200
174204796 tro_phy H Oct. 1, 2022, 5:48 a.m. OK GNU C++17 TESTS 78 1903 241152000
174199112 lightseba H Oct. 1, 2022, 4:39 a.m. OK GNU C++17 (64) TESTS 78 452 136294400
174198650 lightseba H Oct. 1, 2022, 4:33 a.m. OK GNU C++17 (64) TESTS 78 483 208384000
174189731 orzdevinwang H Oct. 1, 2022, 2:09 a.m. OK GNU C++17 (64) TESTS 78 498 162406400
174188058 orzdevinwang H Oct. 1, 2022, 1:38 a.m. OK GNU C++17 (64) TESTS 78 514 170393600
174198904 lightseba H Oct. 1, 2022, 4:36 a.m. OK GNU C++17 (64) TESTS 78 529 208384000
174187579 lightseba H Oct. 1, 2022, 1:28 a.m. OK GNU C++17 (64) TESTS 78 530 208384000
174153157 QAQAutoMaton H Sept. 30, 2022, 4:59 p.m. OK GNU C++17 (64) TESTS 77 623 490905600
174169844 eriksuenderhauf H Sept. 30, 2022, 7:19 p.m. OK GNU C++17 (64) TESTS 78 1372 214732800
174166395 eriksuenderhauf H Sept. 30, 2022, 6:45 p.m. OK GNU C++17 (64) TESTS 78 1497 227328000
174147413 feecIe6418 H Sept. 30, 2022, 4:43 p.m. OK GNU C++17 (64) TESTS 77 1543 502272000
174165643 liouzhou_101 H Sept. 30, 2022, 6:39 p.m. OK GNU C++20 (64) TESTS 78 421 270131200
174164793 jiangly H Sept. 30, 2022, 6:33 p.m. OK GNU C++20 (64) TESTS 78 1450 298905600
174147991 adamant H Sept. 30, 2022, 4:45 p.m. OK GNU C++20 (64) TESTS 77 1466 430899200
174195961 DerekFeng H Oct. 1, 2022, 3:54 a.m. OK GNU C++20 (64) TESTS 78 1621 163328000
174170553 hank55663 H Sept. 30, 2022, 7:27 p.m. OK GNU C++20 (64) TESTS 78 1684 133222400
174153280 ksun48 H Sept. 30, 2022, 4:59 p.m. OK GNU C++20 (64) TESTS 77 1746 430796800
174162669 Petr H Sept. 30, 2022, 6:19 p.m. OK GNU C++20 (64) TESTS 77 1777 239513600
174195636 DerekFeng H Oct. 1, 2022, 3:49 a.m. OK GNU C++20 (64) TESTS 78 1793 153600000

remove filters

Back to search problems