Codeforces Round 792 (Div. 1 + 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
1684 Codeforces Round 792 (Div. 1 + Div. 2) FINISHED False 7200 84295463 May 19, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 247 ) H Hard Cut PROGRAMMING constructive algorithms divide and conquer math 3400

B'You are given a binary string s . You have to cut it into any number of non-intersecting substrings, so that the sum of binary integers denoted by these substrings is a power of 2. Each element of s should be in exactly one substring. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 10^5 ). Description of the test cases follows. Each test case contains a binary string s ( 1 <= |s| <= 10^6 ). It is guaranteed that the sum of |s| over all test cases does not exceed 10^6 . For each test case output the answer to the problem as follows: If there are multiple valid solutions, you can output any of them. In the first test case it is impossible to cut the string into substrings, so that the sum is a power of 2. In the second test case such cut is valid: '...

Tutorials

Codeforces Round #792 (Div. 1 + Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
157760208 djq_cpp H May 20, 2022, 2:59 a.m. OK GNU C++14 TESTS 73 421 53760000 3400
157757076 csyakuoi H May 20, 2022, 1:47 a.m. OK GNU C++14 TESTS 73 436 158617600 3400
157762123 ugly2333 H May 20, 2022, 3:38 a.m. OK GNU C++17 TESTS 73 327 7475200 3400
157733287 Radewoosh H May 19, 2022, 5:45 p.m. OK GNU C++17 TESTS 73 343 20992000 3400
157747575 Alt_of_Charon H May 19, 2022, 8:37 p.m. OK GNU C++17 TESTS 73 358 23449600 3400
157726010 Anadi H May 19, 2022, 4:27 p.m. OK GNU C++17 TESTS 73 389 184934400 3400
157733357 Tima H May 19, 2022, 5:45 p.m. OK GNU C++17 TESTS 73 498 187699200 3400
157755854 basic_string H May 20, 2022, 1:10 a.m. OK GNU C++17 (64) TESTS 73 280 26726400 3400
157733310 ecnerwala H May 19, 2022, 5:45 p.m. OK GNU C++17 (64) TESTS 73 327 16384000 3400
157735749 ecnerwala H May 19, 2022, 5:58 p.m. OK GNU C++17 (64) TESTS 73 358 12390400 3400
157734300 hitonanode H May 19, 2022, 5:50 p.m. OK GNU C++17 (64) TESTS 73 483 17203200 3400
157758402 hehezhou H May 20, 2022, 2:19 a.m. OK GNU C++17 (64) TESTS 73 608 26828800 3400
157757414 hehezhou H May 20, 2022, 1:56 a.m. OK GNU C++17 (64) TESTS 73 1404 27238400 3400
157728267 Maksim1744 H May 19, 2022, 4:33 p.m. OK GNU C++20 (64) TESTS 73 217 34713600 3400
157737875 ksun48 H May 19, 2022, 6:15 p.m. OK GNU C++20 (64) TESTS 73 218 24268800 3400
157739555 maroonrk H May 19, 2022, 6:32 p.m. OK GNU C++20 (64) TESTS 73 218 29593600 3400
157769867 BurnedChicken H May 20, 2022, 5:51 a.m. OK GNU C++20 (64) TESTS 73 218 35328000 3400
157736069 jiangly H May 19, 2022, 6:01 p.m. OK GNU C++20 (64) TESTS 73 280 19763200 3400
157765057 353cerega H May 20, 2022, 4:35 a.m. OK GNU C++20 (64) TESTS 73 420 35328000 3400
157734412 Rebelz H May 19, 2022, 5:50 p.m. OK GNU C++20 (64) TESTS 73 841 173568000 3400
157725603 Egor H May 19, 2022, 4:26 p.m. OK Rust 2021 TESTS 73 249 28569600 3400

remove filters

Back to search problems