Codeforces Round 843 (Div. 2)

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
1775 Codeforces Round 843 (Div. 2) FINISHED False 9000 63830663 Jan. 10, 2023, 11:15 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 19840 ) A1 Gardener and the Capybaras (easy version) PROGRAMMING brute force implementation strings

B'This is an easy version of the problem. The difference between the versions is that the string can be longer than in the easy version. You can only do hacks if both versions of the problem are passed. Kazimir Kazimirovich is a Martian gardener. He has a huge orchard of binary balanced apple trees. Recently Casimir decided to get himself three capybaras. The gardener even came up with their names and wrote them down on a piece of paper. The name of each capybara is a non-empty line consisting of letters "a" and "b". Denote the names of the capybaras by the lines a , b , and c . Then Casimir wrote the nonempty lines a , b , and c in a row without spaces. For example, if the capybara 's name was "aba", "ab", and "bb", then the string the gardener wrote down would look like "abaabbb". The gardener remembered an interesting property: either the string b is lexicographically not smaller than the strings a and c at the same time, or the string b is lexicographically not greater than the strings a and c at the same time. In other words, either a <= b and c <= b are satisfied, or b <= a and b <= c are satisfied (or possibly both conditions simultaneously). Here <= denotes the lexicographic "less than or equal to" for strings. Thus, a <= b means that the strings must either be equal, or the string a must stand earlier in the dictionary than the string b . For a more detailed explanation of this operation, see "Notes" section. Today the gardener looked at his notes and realized that he cannot recover the names because they are written without spaces. He is no longer sure if he can recover the original strings a , b , and c , so he wants to find any triplet of names that satisfy the above property. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 500 ). The description of'...

Tutorials

Codeforces Round #843 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
188791433 Wizard_of_Orz A1 Jan. 10, 2023, 5:22 p.m. OK Clang++17 Diagnostics TESTS 10 31 0
188830575 aabc A1 Jan. 11, 2023, 4:36 a.m. OK Clang++20 Diagnostics TESTS 10 31 0
188831739 Kritang A1 Jan. 11, 2023, 4:53 a.m. OK GNU C11 TESTS 10 15 0
188771215 jeetamar A1 Jan. 10, 2023, 3:01 p.m. OK GNU C11 TESTS 10 15 0
188802531 invincible_adi2174 A1 Jan. 10, 2023, 7 p.m. OK GNU C11 TESTS 10 15 0
188832954 zzyhlhdy A1 Jan. 11, 2023, 5:09 a.m. OK GNU C11 TESTS 10 15 0
188826390 gigajet A1 Jan. 11, 2023, 3:30 a.m. OK GNU C11 TESTS 10 30 204800
188836578 nqq030914 A1 Jan. 11, 2023, 5:54 a.m. OK GNU C11 TESTS 10 31 0
188820371 phymien A1 Jan. 11, 2023, 1:39 a.m. OK GNU C11 TESTS 10 31 204800
188831113 Divy98 A1 Jan. 11, 2023, 4:44 a.m. OK GNU C++14 TESTS 10 0 0
188830438 xq7666 A1 Jan. 11, 2023, 4:33 a.m. OK GNU C++14 TESTS 10 0 0
188829504 fytftyf A1 Jan. 11, 2023, 4:18 a.m. OK GNU C++14 TESTS 10 0 0
188826798 kabu A1 Jan. 11, 2023, 3:36 a.m. OK GNU C++14 TESTS 10 0 0
188825487 kingdomsouth A1 Jan. 11, 2023, 3:15 a.m. OK GNU C++14 TESTS 10 0 0
188836644 shyJyt A1 Jan. 11, 2023, 5:55 a.m. OK GNU C++14 TESTS 10 0 0
188834736 aditya7843 A1 Jan. 11, 2023, 5:32 a.m. OK GNU C++14 TESTS 10 0 0
188832816 shreyd01 A1 Jan. 11, 2023, 5:08 a.m. OK GNU C++14 TESTS 10 0 0
188831241 chen0085 A1 Jan. 11, 2023, 4:46 a.m. OK GNU C++14 TESTS 10 0 0
188831208 Anil_24 A1 Jan. 11, 2023, 4:45 a.m. OK GNU C++14 TESTS 10 0 0
188828504 nirav114 A1 Jan. 11, 2023, 4:03 a.m. OK GNU C++17 TESTS 10 0 0
188823408 Ramavath_lalu A1 Jan. 11, 2023, 2:38 a.m. OK GNU C++17 TESTS 10 0 0
188822272 log2_XD A1 Jan. 11, 2023, 2:18 a.m. OK GNU C++17 TESTS 10 0 0
188836573 appu_nitd A1 Jan. 11, 2023, 5:54 a.m. OK GNU C++17 TESTS 10 0 0
188836959 myq_loving_cly A1 Jan. 11, 2023, 5:58 a.m. OK GNU C++17 TESTS 10 0 0
188835298 Saket_Kumar_Singh A1 Jan. 11, 2023, 5:39 a.m. OK GNU C++17 TESTS 10 0 0
188833136 sarun061729 A1 Jan. 11, 2023, 5:12 a.m. OK GNU C++17 TESTS 10 0 0
188831609 Lawful2020 A1 Jan. 11, 2023, 4:51 a.m. OK GNU C++17 TESTS 10 0 0
188831301 Dipak2000 A1 Jan. 11, 2023, 4:47 a.m. OK GNU C++17 TESTS 10 0 0
188828705 Xx_star A1 Jan. 11, 2023, 4:07 a.m. OK GNU C++17 TESTS 10 0 0
188813132 sameh_tarek A1 Jan. 10, 2023, 10:03 p.m. OK GNU C++17 (64) TESTS 10 0 0
188837186 Cantor. A1 Jan. 11, 2023, 6 a.m. OK GNU C++17 (64) TESTS 10 0 0
188835727 axbbys A1 Jan. 11, 2023, 5:44 a.m. OK GNU C++17 (64) TESTS 10 0 0
188830369 Physics212303 A1 Jan. 11, 2023, 4:32 a.m. OK GNU C++17 (64) TESTS 10 0 0
188827801 signed_long_long A1 Jan. 11, 2023, 3:51 a.m. OK GNU C++17 (64) TESTS 10 0 0
188824310 Aurora0915 A1 Jan. 11, 2023, 2:55 a.m. OK GNU C++17 (64) TESTS 10 0 0
188822108 SugarT A1 Jan. 11, 2023, 2:15 a.m. OK GNU C++17 (64) TESTS 10 0 0
188809759 Kniaz A1 Jan. 10, 2023, 8:46 p.m. OK GNU C++17 (64) TESTS 10 0 0
188806743 Andreasyan A1 Jan. 10, 2023, 7:54 p.m. OK GNU C++17 (64) TESTS 10 0 0
188805255 CaptainBD A1 Jan. 10, 2023, 7:34 p.m. OK GNU C++17 (64) TESTS 10 0 0
188834281 haShivam_Gupta A1 Jan. 11, 2023, 5:26 a.m. OK GNU C++20 (64) TESTS 10 0 0
188834259 devranishubham1121 A1 Jan. 11, 2023, 5:26 a.m. OK GNU C++20 (64) TESTS 10 0 0
188834127 mo7s A1 Jan. 11, 2023, 5:25 a.m. OK GNU C++20 (64) TESTS 10 0 0
188834614 Kate613 A1 Jan. 11, 2023, 5:31 a.m. OK GNU C++20 (64) TESTS 10 0 0
188834890 vardan_09 A1 Jan. 11, 2023, 5:34 a.m. OK GNU C++20 (64) TESTS 10 0 0
188834910 Niloy_Das_19 A1 Jan. 11, 2023, 5:34 a.m. OK GNU C++20 (64) TESTS 10 0 0
188836367 Aaayc. A1 Jan. 11, 2023, 5:52 a.m. OK GNU C++20 (64) TESTS 10 0 0
188836391 sparrow_14 A1 Jan. 11, 2023, 5:52 a.m. OK GNU C++20 (64) TESTS 10 0 0
188837080 WZX110404 A1 Jan. 11, 2023, 5:59 a.m. OK GNU C++20 (64) TESTS 10 0 0
188837219 UUUnmei A1 Jan. 11, 2023, 6 a.m. OK GNU C++20 (64) TESTS 10 0 0
188814324 wantu A1 Jan. 10, 2023, 10:37 p.m. OK Java 11 TESTS 10 171 0
188799517 wat2 A1 Jan. 10, 2023, 6:28 p.m. OK Java 11 TESTS 10 202 0
188780972 bleach__ A1 Jan. 10, 2023, 4:04 p.m. OK Java 11 TESTS 10 202 0
188798065 ETHANHUNTMI5 A1 Jan. 10, 2023, 6:16 p.m. OK Java 11 TESTS 10 217 0
188794369 Extradict A1 Jan. 10, 2023, 5:47 p.m. OK Java 11 TESTS 10 217 0
188788094 kasiru_69 A1 Jan. 10, 2023, 4:55 p.m. OK Java 11 TESTS 10 218 0
188784439 dikshant_19 A1 Jan. 10, 2023, 4:29 p.m. OK Java 11 TESTS 10 218 102400
188788067 princeayush04 A1 Jan. 10, 2023, 4:55 p.m. OK Java 11 TESTS 10 233 0
188826372 ok.surazz A1 Jan. 11, 2023, 3:29 a.m. OK Java 11 TESTS 10 233 0
188782357 months13 A1 Jan. 10, 2023, 4:14 p.m. OK Java 11 TESTS 10 233 0
188771539 Rock111 A1 Jan. 10, 2023, 3:03 p.m. OK Java 17 TESTS 10 187 512000
188808192 im_Yash24 A1 Jan. 10, 2023, 8:18 p.m. OK Java 17 TESTS 10 218 102400
188773714 varrick A1 Jan. 10, 2023, 3:15 p.m. OK Java 17 TESTS 10 233 1126400
188796625 balajirudrawar123 A1 Jan. 10, 2023, 6:05 p.m. OK Java 17 TESTS 10 248 921600
188772487 starlove A1 Jan. 10, 2023, 3:08 p.m. OK Java 17 TESTS 10 249 307200
188792735 Ani_Vishwakarma A1 Jan. 10, 2023, 5:33 p.m. OK Java 17 TESTS 10 249 921600
188791172 not_just_rr A1 Jan. 10, 2023, 5:20 p.m. OK Java 17 TESTS 10 249 921600
188795353 Sudh9039 A1 Jan. 10, 2023, 5:55 p.m. OK Java 17 TESTS 10 264 1126400
188815166 208385 A1 Jan. 10, 2023, 11:07 p.m. OK Java 17 TESTS 10 280 819200
188796451 AdityaGupta19 A1 Jan. 10, 2023, 6:03 p.m. OK Java 17 TESTS 10 452 921600
188791133 abhayrajnegi0416 A1 Jan. 10, 2023, 5:19 p.m. OK Java 8 TESTS 10 93 0
188785262 anomylus8877 A1 Jan. 10, 2023, 4:34 p.m. OK Java 8 TESTS 10 93 0
188827436 Divyanshuverma21 A1 Jan. 11, 2023, 3:46 a.m. OK Java 8 TESTS 10 108 0
188824929 lpychemistry A1 Jan. 11, 2023, 3:06 a.m. OK Java 8 TESTS 10 108 0
188809215 abhitabhkp.ic.20 A1 Jan. 10, 2023, 8:36 p.m. OK Java 8 TESTS 10 109 0
188778756 Abhinav__hadole A1 Jan. 10, 2023, 3:48 p.m. OK Java 8 TESTS 10 109 0
188799794 shaiksahil270 A1 Jan. 10, 2023, 6:31 p.m. OK Java 8 TESTS 10 124 0
188796690 shaiksahil270 A1 Jan. 10, 2023, 6:05 p.m. OK Java 8 TESTS 10 124 0
188825894 Ir0nic_Joker A1 Jan. 11, 2023, 3:22 a.m. OK MS C++ 2017 TESTS 10 0 0
188813590 payday3 A1 Jan. 10, 2023, 10:15 p.m. OK MS C++ 2017 TESTS 10 0 0
188812212 Spartan3002 A1 Jan. 10, 2023, 9:39 p.m. OK MS C++ 2017 TESTS 10 0 0
188809566 Prabhat.kr.verman A1 Jan. 10, 2023, 8:42 p.m. OK MS C++ 2017 TESTS 10 0 0
188812516 cptahahab A1 Jan. 10, 2023, 9:47 p.m. OK MS C++ 2017 TESTS 10 15 0
188785830 Jackhandsome379 A1 Jan. 10, 2023, 4:39 p.m. OK MS C++ 2017 TESTS 10 15 0
188779928 songuno1 A1 Jan. 10, 2023, 3:56 p.m. OK MS C++ 2017 TESTS 10 15 0
188775026 zixiang A1 Jan. 10, 2023, 3:23 p.m. OK MS C++ 2017 TESTS 10 15 0
188772416 adesh123 A1 Jan. 10, 2023, 3:07 p.m. OK MS C++ 2017 TESTS 10 15 0
188787440 k26rahul A1 Jan. 10, 2023, 4:51 p.m. OK Node.js TESTS 10 109 0
188777605 vishu.ut A1 Jan. 10, 2023, 3:40 p.m. OK PyPy 3 TESTS 10 77 0
188769938 bboo_123 A1 Jan. 10, 2023, 2:55 p.m. OK PyPy 3 TESTS 10 77 0
188789254 u1602016 A1 Jan. 10, 2023, 5:04 p.m. OK PyPy 3 TESTS 10 92 409600
188796898 madhav_5 A1 Jan. 10, 2023, 6:07 p.m. OK PyPy 3 TESTS 10 93 0
188774335 AhsanHabib A1 Jan. 10, 2023, 3:19 p.m. OK PyPy 3 TESTS 10 93 0
188781059 Yash_Nandwana A1 Jan. 10, 2023, 4:04 p.m. OK PyPy 3 TESTS 10 93 716800
188795386 undertaker271 A1 Jan. 10, 2023, 5:55 p.m. OK PyPy 3 TESTS 10 109 74240000
188836915 batteryLo_Ow A1 Jan. 11, 2023, 5:57 a.m. OK PyPy 3-64 TESTS 10 46 0
188809023 AAE A1 Jan. 10, 2023, 8:32 p.m. OK PyPy 3-64 TESTS 10 46 0
188807297 kalygina.anya A1 Jan. 10, 2023, 8:03 p.m. OK PyPy 3-64 TESTS 10 46 0
188806862 ivatopuria A1 Jan. 10, 2023, 7:56 p.m. OK PyPy 3-64 TESTS 10 46 0
188796275 Mohamed_Hamed A1 Jan. 10, 2023, 6:02 p.m. OK PyPy 3-64 TESTS 10 46 0
188777318 bartimyeus A1 Jan. 10, 2023, 3:38 p.m. OK PyPy 3-64 TESTS 10 46 0
188777271 Triump_0112 A1 Jan. 10, 2023, 3:38 p.m. OK PyPy 3-64 TESTS 10 46 0
188773173 Mahad_SundarSTEM A1 Jan. 10, 2023, 3:12 p.m. OK PyPy 3-64 TESTS 10 46 0
188830786 Dinesh_devanaboina A1 Jan. 11, 2023, 4:39 a.m. OK PyPy 3-64 TESTS 10 61 0
188800861 InciteRage27 A1 Jan. 10, 2023, 6:42 p.m. OK PyPy 3-64 TESTS 10 61 0
188835117 broshen A1 Jan. 11, 2023, 5:37 a.m. OK Python 3 TESTS 10 31 0
188829361 nitin2203 A1 Jan. 11, 2023, 4:16 a.m. OK Python 3 TESTS 10 31 0
188819734 williamcz A1 Jan. 11, 2023, 1:23 a.m. OK Python 3 TESTS 10 31 0
188811608 Vidhate A1 Jan. 10, 2023, 9:26 p.m. OK Python 3 TESTS 10 31 0
188805041 Dhruv_Viradiya A1 Jan. 10, 2023, 7:31 p.m. OK Python 3 TESTS 10 31 0
188802465 Khalil.Hosni A1 Jan. 10, 2023, 6:59 p.m. OK Python 3 TESTS 10 31 0
188787530 biven_ A1 Jan. 10, 2023, 4:51 p.m. OK Python 3 TESTS 10 31 0
188779658 Aryan928 A1 Jan. 10, 2023, 3:55 p.m. OK Python 3 TESTS 10 31 0
188771588 star_555 A1 Jan. 10, 2023, 3:03 p.m. OK Python 3 TESTS 10 31 0
188831043 thewrongmystery A1 Jan. 11, 2023, 4:43 a.m. OK Python 3 TESTS 10 46 0
188791922 liut A1 Jan. 10, 2023, 5:26 p.m. OK Rust 2021 TESTS 10 0 0

remove filters

Back to search problems