Codeforces Round 984 (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
2036 Codeforces Round 984 (Div. 3) FINISHED False 8100 45847523 Nov. 2, 2024, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 5236 ) F XORificator 3000 PROGRAMMING bitmasks dp number theory

Alice has been giving gifts to Bob for many years, and she knows that what he enjoys the most is performing bitwise XOR of interesting integers. Bob considers a positive integer (x) to be interesting if it satisfies (x \not\equiv k (\bmod 2^i)). Therefore, this year for his birthday, she gifted him a super-powerful "XORificator 3000", the latest model. Bob was very pleased with the gift, as it allowed him to instantly compute the XOR of all interesting integers in any range from (l) to (r), inclusive. After all, what else does a person need for happiness? Unfortunately, the device was so powerful that at one point it performed XOR with itself and disappeared. Bob was very upset, and to cheer him up, Alice asked you to write your version of the "XORificator". The first line of input contains a single integer (t) ((1 \leq t \leq 10^4)) — the number of XOR queries on the segment. The following (t) lines contain the queries, each consisting of the integers (l), (r), (i), (k) ((1 \leq l \leq r \leq 10^{18}), (0 \leq i \leq 30), (0 \leq k < 2^i)). For each query, output a single integer — the XOR of all integers (x) in the range (l, r) such that (x \not\equiv k \mod 2^i). In the first query, the interesting integers in the range (1, 3) are (1) and (3), so the answer will be (1 \oplus 3 = 2).

Tutorials

Codeforces Round 984 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
289600778 chrisTris F Nov. 2, 2024, 5 p.m. OK C# 10 TESTS 10 93 2969600
289714712 CodeK_G F Nov. 3, 2024, 3:51 a.m. OK C++17 (GCC 7-32) TESTS 10 46 0
289707919 phatchau317 F Nov. 3, 2024, 1:33 a.m. OK C++17 (GCC 7-32) TESTS 10 46 0
289706128 jdurie F Nov. 3, 2024, 12:35 a.m. OK C++17 (GCC 7-32) TESTS 10 46 0
289655029 Joyjeet031 F Nov. 2, 2024, 6:22 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0
289654963 Dark_Soul031 F Nov. 2, 2024, 6:22 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0
289596663 super_xingyl F Nov. 2, 2024, 4:48 p.m. OK C++17 (GCC 7-32) TESTS 10 46 0
289714571 CodeK_G F Nov. 3, 2024, 3:48 a.m. OK C++17 (GCC 7-32) TESTS 10 46 102400
289712788 lockdown F Nov. 3, 2024, 3:18 a.m. OK C++17 (GCC 7-32) TESTS 10 46 102400
289712322 Ion_Gravirei F Nov. 3, 2024, 3:12 a.m. OK C++17 (GCC 7-32) TESTS 10 46 102400
289711390 thiennhan11a1 F Nov. 3, 2024, 2:54 a.m. OK C++17 (GCC 7-32) TESTS 10 61 0
289721217 Jznoob F Nov. 3, 2024, 5:26 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0
289715059 KingofCSES F Nov. 3, 2024, 3:57 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0
289714726 ananthak F Nov. 3, 2024, 3:51 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0
289712743 StellarSpecter F Nov. 3, 2024, 3:17 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0
289711767 Rating_10101010 F Nov. 3, 2024, 3:01 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0
289711381 YooNisir F Nov. 3, 2024, 2:54 a.m. OK C++20 (GCC 13-64) TESTS 10 46 0
289699013 DarkRecklessness F Nov. 2, 2024, 9:38 p.m. OK C++20 (GCC 13-64) TESTS 10 46 0
289697820 Cleverfox F Nov. 2, 2024, 9:20 p.m. OK C++20 (GCC 13-64) TESTS 10 46 0
289697098 Katnamyas F Nov. 2, 2024, 9:08 p.m. OK C++20 (GCC 13-64) TESTS 10 46 0
289696943 Katnamyas F Nov. 2, 2024, 9:06 p.m. OK C++20 (GCC 13-64) TESTS 10 46 0
289723772 avirat2211 F Nov. 3, 2024, 5:53 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
289722557 shyamer3 F Nov. 3, 2024, 5:40 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
289704517 3bkarm F Nov. 2, 2024, 11:40 p.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
289687350 zhuuxa F Nov. 2, 2024, 7:24 p.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
289660483 mayankarya185 F Nov. 2, 2024, 6:24 p.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
289609928 kyooz F Nov. 2, 2024, 5:48 p.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
289603552 mahiro_zcy F Nov. 2, 2024, 5:12 p.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
289600940 khaipt1602 F Nov. 2, 2024, 5:01 p.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
289596274 mounteverest2004 F Nov. 2, 2024, 4:47 p.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 0
289722825 nvr_giv_up F Nov. 3, 2024, 5:43 a.m. OK C++23 (GCC 14-64, msys2) TESTS 10 46 102400
289599140 p5imoes F Nov. 2, 2024, 4:53 p.m. OK GNU C11 TESTS 10 92 102400
289598015 tarazan12 F Nov. 2, 2024, 4:49 p.m. OK Java 21 TESTS 10 265 614400
289689922 Yash9890 F Nov. 2, 2024, 7:45 p.m. OK Java 21 TESTS 10 265 716800
289706575 wddd F Nov. 3, 2024, 12:51 a.m. OK Java 21 TESTS 10 296 614400
289596502 nazimazhaan17 F Nov. 2, 2024, 4:48 p.m. OK Java 21 TESTS 10 296 1740800
289595977 Sarvan_Yaduvanshi F Nov. 2, 2024, 4:47 p.m. OK Java 21 TESTS 10 389 921600
289597903 DarkAngelu F Nov. 2, 2024, 4:49 p.m. OK Java 21 TESTS 10 390 1024000
289608620 kumarjhanitesh09 F Nov. 2, 2024, 5:39 p.m. OK Java 21 TESTS 10 421 921600
289599696 dusty.and.rusty F Nov. 2, 2024, 4:55 p.m. OK Java 21 TESTS 10 468 1228800
289595515 aditya888 F Nov. 2, 2024, 4:46 p.m. OK Java 8 TESTS 10 171 0
289602943 aditya_parate F Nov. 2, 2024, 5:10 p.m. OK Java 8 TESTS 10 202 0
289596625 Thanvi010604 F Nov. 2, 2024, 4:48 p.m. OK Java 8 TESTS 10 265 0
289604570 jalal.enggds F Nov. 2, 2024, 5:18 p.m. OK Java 8 TESTS 10 296 0
289723422 KibRia_BRUR_12 F Nov. 3, 2024, 5:50 a.m. OK Node.js TESTS 10 249 10240000
289606944 merdan F Nov. 2, 2024, 5:30 p.m. OK PyPy 3 TESTS 10 437 10342400
289599014 rAvArp F Nov. 2, 2024, 4:53 p.m. OK PyPy 3 TESTS 10 483 10240000
289622915 tan90cot0 F Nov. 2, 2024, 6:05 p.m. OK PyPy 3 TESTS 10 749 26521600
289609531 sktt1Faker F Nov. 2, 2024, 5:45 p.m. OK PyPy 3 TESTS 10 890 9830400
289685604 SoleProprietor F Nov. 2, 2024, 7:10 p.m. OK PyPy 3-64 TESTS 10 124 3379200
289690645 Azimjonm2333 F Nov. 2, 2024, 7:52 p.m. OK PyPy 3-64 TESTS 10 124 4300800
289681817 Euphoriababy F Nov. 2, 2024, 6:40 p.m. OK PyPy 3-64 TESTS 10 140 6758400
289600414 grind_like_gm F Nov. 2, 2024, 4:58 p.m. OK PyPy 3-64 TESTS 10 171 5427200
289643820 Polynomu F Nov. 2, 2024, 6:17 p.m. OK PyPy 3-64 TESTS 10 217 8192000
289599468 pyorz F Nov. 2, 2024, 4:54 p.m. OK PyPy 3-64 TESTS 10 234 7577600
289606380 AyuAnchor F Nov. 2, 2024, 5:28 p.m. OK PyPy 3-64 TESTS 10 234 9011200
289600868 lost_everything F Nov. 2, 2024, 5 p.m. OK PyPy 3-64 TESTS 10 249 7270400
289682070 gardengnome F Nov. 2, 2024, 6:42 p.m. OK PyPy 3-64 TESTS 10 249 8704000
289691661 Shaydiesin F Nov. 2, 2024, 8:01 p.m. OK PyPy 3-64 TESTS 10 265 10752000
289608685 titan_2 F Nov. 2, 2024, 5:40 p.m. OK Python 3 TESTS 10 93 3891200
289710030 funkypapaya5 F Nov. 3, 2024, 2:25 a.m. OK Python 3 TESTS 10 140 0
289611181 biy F Nov. 2, 2024, 5:57 p.m. OK Python 3 TESTS 10 140 0
289610743 biy F Nov. 2, 2024, 5:54 p.m. OK Python 3 TESTS 10 140 0
289600135 phatdev F Nov. 2, 2024, 4:57 p.m. OK Python 3 TESTS 10 140 0
289604229 amoghk F Nov. 2, 2024, 5:16 p.m. OK Python 3 TESTS 10 155 0
289697284 PaciukZvichainyi F Nov. 2, 2024, 9:11 p.m. OK Rust 2021 TESTS 10 62 0
289696354 PaciukZvichainyi F Nov. 2, 2024, 8:57 p.m. OK Rust 2021 TESTS 10 77 0

remove filters

Back to search problems