Codeforces Round 833 (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
1748 Codeforces Round 833 (Div. 2) FINISHED False 7200 69002663 Nov. 12, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2890 ) D ConstructOR PROGRAMMING bitmasks chinese remainder theorem combinatorics constructive algorithms number theory 2100

B'You are given three integers a , b , and d . Your task is to find any integer x which satisfies all of the following conditions, or determine that no such integers exist: Here, | denotes the bitwise OR operation. Each test contains multiple test cases. The first line of input contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Each test case consists of one line, containing three integers a , b , and d ( 1 <= a,b,d lt 2^{30} ). For each test case print one integer. If there exists an integer x which satisfies all of the conditions from the statement, print x . Otherwise, print -1 . If there are multiple solutions, you may print any of them. In the first test case, x=18 is one of the possible solutions, since 39|18=55 and 12|18=30 , both of which are multiples of d=5 . In the second test case, x=14 is one of the possible solutions, since 8|14=6|14=14 , which is a multiple of d=14 . In the third and fourth test cases, we can show that there are no solutions. '...

Tutorials

Codeforces Round #833 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
180647002 Tdyx D Nov. 12, 2022, 4:01 p.m. OK C# 10 TESTS 20 62 4403200 2100
180655743 DmitriyAnikeyev D Nov. 12, 2022, 4:33 p.m. OK C# 10 TESTS 20 93 3891200 2100
180656133 YHT_Konnyaku D Nov. 12, 2022, 4:34 p.m. OK GNU C++14 TESTS 20 15 2150400 2100
180692365 maxcruickshanks D Nov. 12, 2022, 10:24 p.m. OK GNU C++14 TESTS 20 30 0 2100
180706535 nvbagn D Nov. 13, 2022, 4:58 a.m. OK GNU C++14 TESTS 20 31 0 2100
180705496 alkido D Nov. 13, 2022, 4:40 a.m. OK GNU C++14 TESTS 20 31 0 2100
180705427 Cx330_LNDL D Nov. 13, 2022, 4:39 a.m. OK GNU C++14 TESTS 20 31 0 2100
180704681 jinqihao2023 D Nov. 13, 2022, 4:25 a.m. OK GNU C++14 TESTS 20 31 0 2100
180704383 zmzh D Nov. 13, 2022, 4:17 a.m. OK GNU C++14 TESTS 20 31 0 2100
180704294 xju_lyc D Nov. 13, 2022, 4:15 a.m. OK GNU C++14 TESTS 20 31 0 2100
180702649 xuan13853715014 D Nov. 13, 2022, 3:33 a.m. OK GNU C++14 TESTS 20 31 0 2100
180702403 11d10xy D Nov. 13, 2022, 3:28 a.m. OK GNU C++14 TESTS 20 31 0 2100
180698107 runde D Nov. 13, 2022, 1:38 a.m. OK GNU C++17 TESTS 20 15 0 2100
180696295 Chelovek9 D Nov. 13, 2022, 12:44 a.m. OK GNU C++17 TESTS 20 15 0 2100
180705752 BlankYang D Nov. 13, 2022, 4:45 a.m. OK GNU C++17 TESTS 20 30 0 2100
180653202 RNS_CJD D Nov. 12, 2022, 4:24 p.m. OK GNU C++17 TESTS 20 30 0 2100
180652701 Adarsh8409 D Nov. 12, 2022, 4:22 p.m. OK GNU C++17 TESTS 20 30 0 2100
180710914 Brain_Train D Nov. 13, 2022, 6:02 a.m. OK GNU C++17 TESTS 20 31 0 2100
180710423 Brain_Train D Nov. 13, 2022, 5:55 a.m. OK GNU C++17 TESTS 20 31 0 2100
180708556 Nolv D Nov. 13, 2022, 5:28 a.m. OK GNU C++17 TESTS 20 31 0 2100
180707862 qingy__owo D Nov. 13, 2022, 5:18 a.m. OK GNU C++17 TESTS 20 31 0 2100
180707147 BlankYang D Nov. 13, 2022, 5:08 a.m. OK GNU C++17 TESTS 20 31 0 2100
180702979 Lycoriss D Nov. 13, 2022, 3:42 a.m. OK GNU C++17 (64) TESTS 20 15 0 2100
180654074 stan23456 D Nov. 12, 2022, 4:27 p.m. OK GNU C++17 (64) TESTS 20 15 0 2100
180688873 shahi_45 D Nov. 12, 2022, 9:02 p.m. OK GNU C++17 (64) TESTS 20 30 0 2100
180655236 Bombylius D Nov. 12, 2022, 4:31 p.m. OK GNU C++17 (64) TESTS 20 30 0 2100
180710235 mattagar6 D Nov. 13, 2022, 5:52 a.m. OK GNU C++17 (64) TESTS 20 31 0 2100
180703237 Eter.nal D Nov. 13, 2022, 3:48 a.m. OK GNU C++17 (64) TESTS 20 31 0 2100
180703196 Lycoriss D Nov. 13, 2022, 3:47 a.m. OK GNU C++17 (64) TESTS 20 31 0 2100
180702430 Aurora- D Nov. 13, 2022, 3:28 a.m. OK GNU C++17 (64) TESTS 20 31 0 2100
180700184 yamate11 D Nov. 13, 2022, 2:33 a.m. OK GNU C++17 (64) TESTS 20 31 0 2100
180699855 yamate11 D Nov. 13, 2022, 2:24 a.m. OK GNU C++17 (64) TESTS 20 31 0 2100
180709741 Mercuryyy D Nov. 13, 2022, 5:45 a.m. OK GNU C++20 (64) TESTS 20 15 0 2100
180705025 silxi D Nov. 13, 2022, 4:32 a.m. OK GNU C++20 (64) TESTS 20 15 0 2100
180700929 Mohamed2209 D Nov. 13, 2022, 2:52 a.m. OK GNU C++20 (64) TESTS 20 15 0 2100
180697034 OceanCat D Nov. 13, 2022, 1:08 a.m. OK GNU C++20 (64) TESTS 20 15 0 2100
180695975 GoogleBot D Nov. 13, 2022, 12:32 a.m. OK GNU C++20 (64) TESTS 20 15 0 2100
180693483 akvasha D Nov. 12, 2022, 11:01 p.m. OK GNU C++20 (64) TESTS 20 15 0 2100
180689217 Gurban D Nov. 12, 2022, 9:10 p.m. OK GNU C++20 (64) TESTS 20 15 0 2100
180688782 mc._cari D Nov. 12, 2022, 9 p.m. OK GNU C++20 (64) TESTS 20 15 0 2100
180668027 yangster67 D Nov. 12, 2022, 6:19 p.m. OK GNU C++20 (64) TESTS 20 15 0 2100
180664519 Tovarisch D Nov. 12, 2022, 5:42 p.m. OK GNU C++20 (64) TESTS 20 15 0 2100
180649090 yehara D Nov. 12, 2022, 4:08 p.m. OK Java 11 TESTS 20 280 0 2100
180662367 NiceTryMan D Nov. 12, 2022, 5:23 p.m. OK Java 11 TESTS 20 296 0 2100
180658119 vivek1401 D Nov. 12, 2022, 4:51 p.m. OK Java 17 TESTS 20 202 204800 2100
180707104 kkz666 D Nov. 13, 2022, 5:08 a.m. OK Java 17 TESTS 20 217 614400 2100
180652708 golions D Nov. 12, 2022, 4:22 p.m. OK Java 8 TESTS 20 140 0 2100
180707752 qlf9 D Nov. 13, 2022, 5:16 a.m. OK Java 8 TESTS 20 156 0 2100
180659857 ktthree D Nov. 12, 2022, 5:02 p.m. OK PyPy 3-64 TESTS 20 140 10137600 2100
180651517 pqc D Nov. 12, 2022, 4:18 p.m. OK PyPy 3-64 TESTS 20 155 9932800 2100
180652622 plevande D Nov. 12, 2022, 4:22 p.m. OK PyPy 3-64 TESTS 20 170 8396800 2100
180652562 titia D Nov. 12, 2022, 4:22 p.m. OK PyPy 3-64 TESTS 20 171 9625600 2100
180647577 oadey89 D Nov. 12, 2022, 4:03 p.m. OK PyPy 3-64 TESTS 20 202 10035200 2100
180646954 shobonvip D Nov. 12, 2022, 4:01 p.m. OK PyPy 3-64 TESTS 20 202 11980800 2100
180692993 hkwu6013 D Nov. 12, 2022, 10:45 p.m. OK PyPy 3-64 TESTS 20 217 10240000 2100
180660664 1_2_3_4_5_9 D Nov. 12, 2022, 5:09 p.m. OK PyPy 3-64 TESTS 20 218 18022400 2100
180646401 Maruzensky D Nov. 12, 2022, 3:59 p.m. OK PyPy 3-64 TESTS 20 233 10752000 2100
180704232 u5n D Nov. 13, 2022, 4:13 a.m. OK PyPy 3-64 TESTS 20 249 9728000 2100
180696665 sansen D Nov. 13, 2022, 12:56 a.m. OK Rust 2021 TESTS 20 15 1024000 2100
180695713 wnmrmr D Nov. 13, 2022, 12:22 a.m. OK Rust 2021 TESTS 20 109 2969600 2100
180696268 wnmrmr D Nov. 13, 2022, 12:43 a.m. OK Rust 2021 TESTS 20 124 2969600 2100
180659778 cottoncotton D Nov. 12, 2022, 5:02 p.m. OK Rust 2021 TESTS 20 390 67276800 2100

remove filters

Back to search problems