Codeforces Round 805 (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
1702 Codeforces Round 805 (Div. 3) FINISHED False 8100 79802663 July 10, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 27909 ) B Polycarp Writes a String from Memory PROGRAMMING greedy

B'Polycarp has a poor memory. Each day he can remember no more than 3 of different letters. Polycarp wants to write a non-empty string of s consisting of lowercase Latin letters, taking minimum number of days. In how many days will he be able to do it? Polycarp initially has an empty string and can only add characters to the end of that string. For example, if Polycarp wants to write the string lollipops, he will do it in 2 days: If Polycarp wants to write the string stringology, he will do it in 4 days: For a given string s , print the minimum number of days it will take Polycarp to write it. The first line of input data contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Each test case consists of a non-empty string s consisting of lowercase Latin letters (the length of the string s does not exceed 2 cdot 10^5 ) -- the string Polycarp wants to construct. It is guaranteed that the sum of string lengths s over all test cases does not exceed 2 cdot 10^5 . For each test case, print a single number -- minimum number of days it will take Polycarp to write the string s from memory. '...

Tutorials

104763

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
163593829 Meekys B July 10, 2022, 7:04 p.m. OK C# 10 TESTS 5 93 3686400
163602656 bluemegane B July 10, 2022, 10:01 p.m. OK C# 8 TESTS 5 124 2969600
163591363 carpeOdiem B July 10, 2022, 6:29 p.m. OK Clang++17 Diagnostics TESTS 5 810 20377600
163591229 carpeOdiem B July 10, 2022, 6:27 p.m. OK Clang++17 Diagnostics TESTS 5 811 20377600
163605419 ChilenGaming B July 10, 2022, 11:26 p.m. OK FPC TESTS 5 156 1433600
163589296 drfahim B July 10, 2022, 6:05 p.m. OK GNU C11 TESTS 5 31 2048000
163596427 katherinerh B July 10, 2022, 7:45 p.m. OK GNU C11 TESTS 5 46 204800
163613401 AJ_S003 B July 11, 2022, 2:31 a.m. OK GNU C11 TESTS 5 46 204800
163617576 HLY111 B July 11, 2022, 3:30 a.m. OK GNU C++14 TESTS 5 15 204800
163617313 gsyz B July 11, 2022, 3:26 a.m. OK GNU C++14 TESTS 5 15 204800
163623221 rising_noob B July 11, 2022, 4:55 a.m. OK GNU C++14 TESTS 5 15 512000
163618699 _sehnsucht_ B July 11, 2022, 3:47 a.m. OK GNU C++14 TESTS 5 15 512000
163618556 Ronak_Jethava B July 11, 2022, 3:44 a.m. OK GNU C++14 TESTS 5 15 512000
163614182 Qinxiang B July 11, 2022, 2:42 a.m. OK GNU C++14 TESTS 5 15 512000
163613258 Phuxtrohhg B July 11, 2022, 2:28 a.m. OK GNU C++14 TESTS 5 15 512000
163606252 Retag_Eslam B July 10, 2022, 11:57 p.m. OK GNU C++14 TESTS 5 15 512000
163626172 ManavJani B July 11, 2022, 5:34 a.m. OK GNU C++14 TESTS 5 15 512000
163623855 eesala_expert_namde B July 11, 2022, 5:04 a.m. OK GNU C++14 TESTS 5 15 512000
163609247 liuyubobobo B July 11, 2022, 1:16 a.m. OK GNU C++17 TESTS 5 0 512000
163608054 beast_sennpai B July 11, 2022, 12:50 a.m. OK GNU C++17 TESTS 5 15 204800
163617023 tythen B July 11, 2022, 3:23 a.m. OK GNU C++17 TESTS 5 15 204800
163620705 ttkk B July 11, 2022, 4:18 a.m. OK GNU C++17 TESTS 5 15 204800
163624354 Chia02 B July 11, 2022, 5:11 a.m. OK GNU C++17 TESTS 5 15 512000
163624280 np2907 B July 11, 2022, 5:09 a.m. OK GNU C++17 TESTS 5 15 512000
163622576 darshan_trivedi B July 11, 2022, 4:46 a.m. OK GNU C++17 TESTS 5 15 512000
163620724 firewaterknight B July 11, 2022, 4:18 a.m. OK GNU C++17 TESTS 5 15 512000
163627042 ujjwalsingh3012 B July 11, 2022, 5:44 a.m. OK GNU C++17 TESTS 5 15 512000
163626997 AlbusX B July 11, 2022, 5:43 a.m. OK GNU C++17 TESTS 5 15 512000
163597609 Mohammad_Ayman B July 10, 2022, 8:06 p.m. OK GNU C++17 (64) TESTS 5 0 512000
163626415 eggag32 B July 11, 2022, 5:37 a.m. OK GNU C++17 (64) TESTS 5 0 512000
163622806 sajin10 B July 11, 2022, 4:49 a.m. OK GNU C++17 (64) TESTS 5 0 512000
163596986 rishabhdeepsingh B July 10, 2022, 7:55 p.m. OK GNU C++17 (64) TESTS 5 0 512000
163596161 shubhamgrg1000 B July 10, 2022, 7:40 p.m. OK GNU C++17 (64) TESTS 5 0 512000
163617415 jason-wang B July 11, 2022, 3:28 a.m. OK GNU C++17 (64) TESTS 5 0 8499200
163621916 techie_Lite B July 11, 2022, 4:37 a.m. OK GNU C++17 (64) TESTS 5 15 512000
163626281 moo. B July 11, 2022, 5:35 a.m. OK GNU C++17 (64) TESTS 5 15 512000
163623486 Batrow B July 11, 2022, 4:58 a.m. OK GNU C++17 (64) TESTS 5 15 512000
163626920 Abdulraouf_Essam B July 11, 2022, 5:42 a.m. OK GNU C++17 (64) TESTS 5 15 512000
163605738 Kronecker B July 10, 2022, 11:38 p.m. OK GNU C++20 (64) TESTS 5 0 512000
163604215 _Salama_ B July 10, 2022, 10:46 p.m. OK GNU C++20 (64) TESTS 5 0 512000
163601919 M_Fenais B July 10, 2022, 9:41 p.m. OK GNU C++20 (64) TESTS 5 0 512000
163596857 Harsh7534615 B July 10, 2022, 7:52 p.m. OK GNU C++20 (64) TESTS 5 0 512000
163594116 seokjin1013 B July 10, 2022, 7:08 p.m. OK GNU C++20 (64) TESTS 5 0 512000
163595128 AR_Hridoy B July 10, 2022, 7:24 p.m. OK GNU C++20 (64) TESTS 5 0 512000
163628128 dharmesh_kumar B July 11, 2022, 5:55 a.m. OK GNU C++20 (64) TESTS 5 0 512000
163618887 Mikkely B July 11, 2022, 3:50 a.m. OK GNU C++20 (64) TESTS 5 0 512000
163609348 DarknessCatcher B July 11, 2022, 1:17 a.m. OK GNU C++20 (64) TESTS 5 0 512000
163606911 YangFan_ B July 11, 2022, 12:18 a.m. OK GNU C++20 (64) TESTS 5 0 512000
163590334 megabluejay B July 10, 2022, 6:17 p.m. OK Haskell TESTS 5 77 9523200
163600195 Saeed.Afshari B July 10, 2022, 8:57 p.m. OK Java 11 TESTS 5 155 0
163618291 enviornment B July 11, 2022, 3:40 a.m. OK Java 11 TESTS 5 171 0
163628694 KarMa_ B July 11, 2022, 6:01 a.m. OK Java 11 TESTS 5 171 0
163619565 rishabhpanchal B July 11, 2022, 4 a.m. OK Java 11 TESTS 5 171 0
163624782 Deepak4466 B July 11, 2022, 5:16 a.m. OK Java 11 TESTS 5 187 0
163583813 Dukkha B July 10, 2022, 5:14 p.m. OK Java 11 TESTS 5 202 0
163620741 shilko2013 B July 11, 2022, 4:18 a.m. OK Java 11 TESTS 5 217 0
163624422 amitmandal B July 11, 2022, 5:12 a.m. OK Java 11 TESTS 5 218 0
163602562 newguy1 B July 10, 2022, 9:57 p.m. OK Java 11 TESTS 5 218 0
163606193 nis1234 B July 10, 2022, 11:55 p.m. OK Java 11 TESTS 5 233 0
163618726 powerkeke B July 11, 2022, 3:47 a.m. OK Java 17 TESTS 5 171 204800
163593034 Mamimi B July 10, 2022, 6:52 p.m. OK Java 17 TESTS 5 187 716800
163584723 gla_191500500 B July 10, 2022, 5:21 p.m. OK Java 17 TESTS 5 218 819200
163589108 umaganesh B July 10, 2022, 6:03 p.m. OK Java 17 TESTS 5 233 409600
163583854 jhs1941jhs B July 10, 2022, 5:14 p.m. OK Java 17 TESTS 5 264 102400
163626059 Java_Programmer B July 11, 2022, 5:33 a.m. OK Java 8 TESTS 5 93 0
163602417 WrongAnswerOnTestCase2 B July 10, 2022, 9:53 p.m. OK Java 8 TESTS 5 93 0
163599601 Sussykin B July 10, 2022, 8:44 p.m. OK Java 8 TESTS 5 93 0
163595616 Mohamed_A7med B July 10, 2022, 7:31 p.m. OK Java 8 TESTS 5 93 0
163602979 AbdelrahmanFathy B July 10, 2022, 10:09 p.m. OK Java 8 TESTS 5 108 0
163613528 232132333 B July 11, 2022, 2:33 a.m. OK Java 8 TESTS 5 124 0
163587852 swaggy_baba B July 10, 2022, 5:49 p.m. OK Java 8 TESTS 5 155 0
163626634 godkinggg B July 11, 2022, 5:39 a.m. OK Java 8 TESTS 5 156 0
163603011 mason_24 B July 10, 2022, 10:10 p.m. OK Java 8 TESTS 5 186 0
163618668 yaswanth_coder B July 11, 2022, 3:46 a.m. OK Java 8 TESTS 5 202 0
163592940 dmitrySh239 B July 10, 2022, 6:51 p.m. OK MS C++ 2017 TESTS 5 15 614400
163588611 bi__chen B July 10, 2022, 5:57 p.m. OK MS C++ 2017 TESTS 5 15 1024000
163583364 hiro220214 B July 10, 2022, 5:11 p.m. OK MS C++ 2017 TESTS 5 31 204800
163604687 MOHAMED_SHEHTA_HASSAN B July 10, 2022, 11:01 p.m. OK MS C++ 2017 TESTS 5 46 409600
163597890 youssefdarwishh B July 10, 2022, 8:11 p.m. OK MS C++ 2017 TESTS 5 46 614400
163590177 sappy_08 B July 10, 2022, 6:15 p.m. OK MS C++ 2017 TESTS 5 46 614400
163588861 Ahmedlotfy4444 B July 10, 2022, 6 p.m. OK MS C++ 2017 TESTS 5 46 614400
163617046 kwin B July 11, 2022, 3:23 a.m. OK PyPy 3 TESTS 5 93 3481600
163587286 gotcoding124 B July 10, 2022, 5:44 p.m. OK PyPy 3 TESTS 5 109 4198400
163607206 Shanko B July 11, 2022, 12:27 a.m. OK PyPy 3 TESTS 5 187 4198400
163589890 not_a_spy B July 10, 2022, 6:12 p.m. OK PyPy 3 TESTS 5 217 4096000
163612153 mnacf B July 11, 2022, 2:09 a.m. OK PyPy 3 TESTS 5 218 3174400
163617429 rutz12 B July 11, 2022, 3:28 a.m. OK PyPy 3 TESTS 5 218 3584000
163624881 odo27 B July 11, 2022, 5:18 a.m. OK PyPy 3 TESTS 5 218 4096000
163590645 Sovi_11 B July 10, 2022, 6:20 p.m. OK PyPy 3 TESTS 5 249 3686400
163592331 bpdolson B July 10, 2022, 6:42 p.m. OK PyPy 3 TESTS 5 249 6348800
163591331 pykid05 B July 10, 2022, 6:28 p.m. OK PyPy 3-64 TESTS 5 93 3379200
163591291 a_vantik_a B July 10, 2022, 6:28 p.m. OK PyPy 3-64 TESTS 5 93 3379200
163594249 KimiGets0FPS B July 10, 2022, 7:10 p.m. OK PyPy 3-64 TESTS 5 93 5324800
163602236 MistaAsh B July 10, 2022, 9:48 p.m. OK PyPy 3-64 TESTS 5 93 6246400
163593965 K__________K B July 10, 2022, 7:05 p.m. OK PyPy 3-64 TESTS 5 109 12800000
163622601 shiviDON B July 11, 2022, 4:46 a.m. OK PyPy 3-64 TESTS 5 124 11366400
163587740 Sahitya02 B July 10, 2022, 5:48 p.m. OK PyPy 3-64 TESTS 5 124 13721600
163616481 wwwwzhh B July 11, 2022, 3:16 a.m. OK PyPy 3-64 TESTS 5 124 141209600
163611331 Youarenotgood B July 11, 2022, 1:55 a.m. OK PyPy 3-64 TESTS 5 155 4812800
163591423 OhNoAGirlCoder B July 10, 2022, 6:29 p.m. OK PyPy 3-64 TESTS 5 155 4812800
163596590 abel_abate B July 10, 2022, 7:47 p.m. OK Python 3 TESTS 5 93 512000
163593027 Arunava_392 B July 10, 2022, 6:52 p.m. OK Python 3 TESTS 5 108 204800
163583386 bronze_coder B July 10, 2022, 5:11 p.m. OK Python 3 TESTS 5 109 512000
163612971 sy64190 B July 11, 2022, 2:23 a.m. OK Python 3 TESTS 5 124 512000
163597275 Coder_surya B July 10, 2022, 8 p.m. OK Python 3 TESTS 5 124 512000
163587682 PAG B July 10, 2022, 5:48 p.m. OK Python 3 TESTS 5 124 512000
163586690 sasidhardontu0511 B July 10, 2022, 5:38 p.m. OK Python 3 TESTS 5 124 512000
163584750 RAMPRASATH.AK B July 10, 2022, 5:21 p.m. OK Python 3 TESTS 5 124 512000
163583290 nehil_82 B July 10, 2022, 5:10 p.m. OK Python 3 TESTS 5 124 512000
163623180 MohaSa B July 11, 2022, 4:54 a.m. OK Python 3 TESTS 5 124 716800
163585472 yaaaa2k B July 10, 2022, 5:27 p.m. OK Ruby 3 TESTS 5 342 921600
163583111 jakobrs B July 10, 2022, 5:09 p.m. OK Rust 2021 TESTS 5 15 921600
163628543 Sempr B July 11, 2022, 6 a.m. OK Rust 2021 TESTS 5 15 1740800

remove filters

Back to search problems