Codeforces Round 822 (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
1734 Codeforces Round 822 (Div. 2) FINISHED False 7200 73245263 Sept. 23, 2022, 12:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 839 ) F Zeros and Ones PROGRAMMING bitmasks divide and conquer dp math

B'Let S be the Thue-Morse sequence. In other words, S is the 0 -indexed binary string with infinite length that can be constructed as follows: For example, here are the first four iterations: You are given two positive integers n and m . Find the number of positions where the strings S_0 S_1 ldots S_{m-1} and S_n S_{n + 1} ldots S_{n + m - 1} are different. Each test contains multiple test cases. The first line of the input contains a single integer t ( 1 <= t <= 100 ) -- the number of test cases. The description of the test cases follows. The first and only line of each test case contains two positive integers, n and m respectively ( 1 <= q n,m <= q 10^{18} ). For each testcase, output a non-negative integer -- the Hamming distance between the two required strings. The string S is equal to 0110100110010110.... In the first test case, S_0 is "0", and S_1 is "1". The Hamming distance between the two strings is 1 . In the second test case, S_0 S_1 ldots S_9 is "0110100110", and S_5 S_6 ldots S_{14} is "0011001011". The Hamming distance between the two strings is 6 . '...

Tutorials

Codeforces Round #822 (Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
173266823 liqingyang F Sept. 24, 2022, 4:06 a.m. OK GNU C++14 TESTS 53 15 0
173263088 hellojim F Sept. 24, 2022, 3:08 a.m. OK GNU C++14 TESTS 53 15 0
173263008 Chen__HX F Sept. 24, 2022, 3:07 a.m. OK GNU C++14 TESTS 53 15 0
173262678 980798778 F Sept. 24, 2022, 3:02 a.m. OK GNU C++14 TESTS 53 15 0
173261241 ykl F Sept. 24, 2022, 2:36 a.m. OK GNU C++14 TESTS 53 15 0
173236739 who_mius F Sept. 23, 2022, 4:02 p.m. OK GNU C++14 TESTS 53 15 0
173228919 QAQ_QWQ F Sept. 23, 2022, 2:59 p.m. OK GNU C++14 TESTS 53 15 0
173228250 wlxhkk F Sept. 23, 2022, 2:55 p.m. OK GNU C++14 TESTS 53 15 716800
173261755 Tiny_Woodworm F Sept. 24, 2022, 2:45 a.m. OK GNU C++14 TESTS 53 30 0
173228624 Appleblue17 F Sept. 23, 2022, 2:57 p.m. OK GNU C++14 TESTS 53 30 409600
173271802 qiqi20021026 F Sept. 24, 2022, 5:15 a.m. OK GNU C++17 TESTS 53 15 0
173266514 abdelrahmanlotfy317 F Sept. 24, 2022, 4 a.m. OK GNU C++17 TESTS 53 15 0
173249003 sugnick2002 F Sept. 23, 2022, 6:06 p.m. OK GNU C++17 TESTS 53 15 0
173245596 IsaacMoris F Sept. 23, 2022, 5:30 p.m. OK GNU C++17 TESTS 53 15 0
173245526 IsaacMoris F Sept. 23, 2022, 5:29 p.m. OK GNU C++17 TESTS 53 15 0
173243927 realcomplex F Sept. 23, 2022, 5:10 p.m. OK GNU C++17 TESTS 53 15 0
173242754 Totoro_ F Sept. 23, 2022, 4:58 p.m. OK GNU C++17 TESTS 53 15 0
173225351 MCuong F Sept. 23, 2022, 2:40 p.m. OK GNU C++17 TESTS 53 15 0
173222080 william557 F Sept. 23, 2022, 2:04 p.m. OK GNU C++17 TESTS 53 15 0
173221747 Liu_AK F Sept. 23, 2022, 2:03 p.m. OK GNU C++17 TESTS 53 15 0
173272388 relyt871 F Sept. 24, 2022, 5:21 a.m. OK GNU C++17 (64) TESTS 53 15 0
173268141 RedreamMer F Sept. 24, 2022, 4:25 a.m. OK GNU C++17 (64) TESTS 53 15 0
173265121 Food_Chain_Rule F Sept. 24, 2022, 3:36 a.m. OK GNU C++17 (64) TESTS 53 15 0
173264728 Food_Chain_Rule F Sept. 24, 2022, 3:30 a.m. OK GNU C++17 (64) TESTS 53 15 0
173262066 thusloop F Sept. 24, 2022, 2:51 a.m. OK GNU C++17 (64) TESTS 53 15 0
173261042 ZongDeChuangSiYiGeBa F Sept. 24, 2022, 2:33 a.m. OK GNU C++17 (64) TESTS 53 15 0
173248888 emthrm F Sept. 23, 2022, 6:04 p.m. OK GNU C++17 (64) TESTS 53 15 0
173244101 Haven_ F Sept. 23, 2022, 5:12 p.m. OK GNU C++17 (64) TESTS 53 15 0
173243066 Glarry F Sept. 23, 2022, 5:01 p.m. OK GNU C++17 (64) TESTS 53 15 0
173237239 feiko F Sept. 23, 2022, 4:07 p.m. OK GNU C++17 (64) TESTS 53 15 0
173239646 nor F Sept. 23, 2022, 4:30 p.m. OK GNU C++20 (64) TESTS 53 0 0
173273414 Timsei F Sept. 24, 2022, 5:33 a.m. OK GNU C++20 (64) TESTS 53 15 0
173272933 WangZhizhi F Sept. 24, 2022, 5:28 a.m. OK GNU C++20 (64) TESTS 53 15 0
173271689 dayuanx F Sept. 24, 2022, 5:13 a.m. OK GNU C++20 (64) TESTS 53 15 0
173271051 ddytxdy F Sept. 24, 2022, 5:06 a.m. OK GNU C++20 (64) TESTS 53 15 0
173263987 JoesSR F Sept. 24, 2022, 3:21 a.m. OK GNU C++20 (64) TESTS 53 15 0
173259325 yangster67 F Sept. 23, 2022, 8:16 p.m. OK GNU C++20 (64) TESTS 53 15 0
173257467 pakhandi98 F Sept. 23, 2022, 7:46 p.m. OK GNU C++20 (64) TESTS 53 15 0
173254248 yfuka86 F Sept. 23, 2022, 7:04 p.m. OK GNU C++20 (64) TESTS 53 15 0
173240424 BlueDiamond F Sept. 23, 2022, 4:36 p.m. OK GNU C++20 (64) TESTS 53 15 0
173217184 asdsasd F Sept. 23, 2022, 1:52 p.m. OK PyPy 3 TESTS 53 327 7475200
173226722 rikein12 F Sept. 23, 2022, 2:46 p.m. OK PyPy 3-64 TESTS 53 186 7270400
173225031 googlweknoall F Sept. 23, 2022, 2:39 p.m. OK PyPy 3-64 TESTS 53 623 46080000
173255072 kobae964 F Sept. 23, 2022, 7:14 p.m. OK Rust 2021 TESTS 53 15 1024000
173263065 sansen F Sept. 24, 2022, 3:08 a.m. OK Rust 2021 TESTS 53 30 0

remove filters

Back to search problems