Codeforces Round 862 (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
1805 Codeforces Round 862 (Div. 2) FINISHED False 7200 51377099 April 2, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 24211 ) A We Need the Zero PROGRAMMING bitmasks brute force

B'There is an array a consisting of non-negative integers. You can choose an integer x and denote b_i=a_i oplus x for all 1 <= i <= n , where oplus denotes the bitwise XOR operation. Is it possible to choose such a number x that the value of the expression b_1 oplus b_2 oplus ldots oplus b_n equals 0 ? It can be shown that if a valid number x exists, then there also exists x such that ( 0 <= x < 2^8 ). Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 1000 ). The description of the test cases follows. The first line of the test case contains one integer n ( 1 <= n <= 10^3 ) -- the length of the array a . The second line of the test case contains n integers -- array a ( 0 <= a_i < 2^8 ). It is guaranteed that the sum of n over all test cases does not exceed 10^3 . For each set test case, print the integer x ( 0 <= x < 2^8 ) if it exists, or -1 otherwise. In the first test case, after applying the operation with the number 6 the array b becomes [7, 4, 3] , 7 oplus 4 oplus 3 = 0 . There are other answers in the third test case, such as the number 0 . '...

Tutorials

Editorial of Codeforces Round #862 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
200474609 absa1am A April 2, 2023, 7:47 p.m. OK C# 10 TESTS 12 46 0
200459928 ansergeyg A April 2, 2023, 5:35 p.m. OK C# 10 TESTS 12 46 102400
200486927 bluemegane A April 2, 2023, 10:35 p.m. OK C# 8 TESTS 12 77 0
200520603 klu_2000031676 A April 3, 2023, 5:48 a.m. OK Clang++17 Diagnostics TESTS 12 46 2048000
200470550 shakhawat2277 A April 2, 2023, 7:03 p.m. OK Clang++20 Diagnostics TESTS 12 31 0
200520186 Kartavya309 A April 3, 2023, 5:43 a.m. OK Clang++20 Diagnostics TESTS 12 31 0
200520619 Kartavya309 A April 3, 2023, 5:49 a.m. OK Clang++20 Diagnostics TESTS 12 46 0
200470023 FlameFire A April 2, 2023, 6:58 p.m. OK Clang++20 Diagnostics TESTS 12 46 0
200491551 saif2107017 A April 3, 2023, 12:25 a.m. OK GNU C11 TESTS 12 15 0
200500359 DeyMass A April 3, 2023, 3:48 a.m. OK GNU C11 TESTS 12 15 0
200452094 Abiao_NYB A April 2, 2023, 4:32 p.m. OK GNU C11 TESTS 12 15 0
200452779 eti_404 A April 2, 2023, 4:33 p.m. OK GNU C11 TESTS 12 15 0
200459346 sanjay77 A April 2, 2023, 5:32 p.m. OK GNU C11 TESTS 12 15 0
200464175 akashyanakandla0073 A April 2, 2023, 6:05 p.m. OK GNU C11 TESTS 12 15 0
200472368 thunderous_reign A April 2, 2023, 7:22 p.m. OK GNU C11 TESTS 12 15 0
200473562 Elalawy A April 2, 2023, 7:35 p.m. OK GNU C11 TESTS 12 15 0
200474158 maruf_bro A April 2, 2023, 7:42 p.m. OK GNU C11 TESTS 12 15 0
200479951 dreus A April 2, 2023, 8:50 p.m. OK GNU C11 TESTS 12 15 0
200502969 VaibhavAnurag A April 3, 2023, 4:33 a.m. OK GNU C++14 TESTS 12 0 0
200484276 alsharif.mohamed23 A April 2, 2023, 9:49 p.m. OK GNU C++14 TESTS 12 0 0
200489112 Ashfak_Uzzaman A April 2, 2023, 11:22 p.m. OK GNU C++14 TESTS 12 0 0
200495057 Schrochanshun A April 3, 2023, 1:57 a.m. OK GNU C++14 TESTS 12 0 0
200496096 Right_One A April 3, 2023, 2:22 a.m. OK GNU C++14 TESTS 12 0 0
200496502 lostintianyi A April 3, 2023, 2:30 a.m. OK GNU C++14 TESTS 12 0 0
200497790 gjh_ict A April 3, 2023, 2:57 a.m. OK GNU C++14 TESTS 12 0 0
200502338 vrishavgarg28 A April 3, 2023, 4:23 a.m. OK GNU C++14 TESTS 12 0 0
200515621 hxzzz A April 3, 2023, 5:38 a.m. OK GNU C++14 TESTS 12 0 0
200515515 hxzzz A April 3, 2023, 5:36 a.m. OK GNU C++14 TESTS 12 0 0
200522420 zzh00195 A April 3, 2023, 6 a.m. OK GNU C++17 TESTS 12 0 0
200522245 Saadblaze456 A April 3, 2023, 5:58 a.m. OK GNU C++17 TESTS 12 0 0
200521999 harsh_j0704 A April 3, 2023, 5:54 a.m. OK GNU C++17 TESTS 12 0 0
200521781 _Error_2.0 A April 3, 2023, 5:51 a.m. OK GNU C++17 TESTS 12 0 0
200521617 mukulrawat_03 A April 3, 2023, 5:49 a.m. OK GNU C++17 TESTS 12 0 0
200520335 shivangnegi01 A April 3, 2023, 5:45 a.m. OK GNU C++17 TESTS 12 0 0
200520151 ER3N_Yager A April 3, 2023, 5:43 a.m. OK GNU C++17 TESTS 12 0 0
200515643 rajpate77725 A April 3, 2023, 5:38 a.m. OK GNU C++17 TESTS 12 0 0
200515494 kenilsarang96 A April 3, 2023, 5:36 a.m. OK GNU C++17 TESTS 12 0 0
200513100 ranni0225 A April 3, 2023, 5:30 a.m. OK GNU C++17 TESTS 12 0 0
200478764 ryash77 A April 2, 2023, 8:39 p.m. OK GNU C++17 (64) TESTS 12 0 0
200508945 Njaso A April 3, 2023, 5:27 a.m. OK GNU C++17 (64) TESTS 12 0 0
200505048 c20230437 A April 3, 2023, 5:04 a.m. OK GNU C++17 (64) TESTS 12 0 0
200504017 zzzjw A April 3, 2023, 4:48 a.m. OK GNU C++17 (64) TESTS 12 0 0
200499757 scutsky A April 3, 2023, 3:37 a.m. OK GNU C++17 (64) TESTS 12 0 0
200497283 jicheboy A April 3, 2023, 2:46 a.m. OK GNU C++17 (64) TESTS 12 0 0
200496677 Aurora0915 A April 3, 2023, 2:34 a.m. OK GNU C++17 (64) TESTS 12 0 0
200488042 alixeid A April 2, 2023, 10:59 p.m. OK GNU C++17 (64) TESTS 12 0 0
200483220 iLLusio A April 2, 2023, 9:34 p.m. OK GNU C++17 (64) TESTS 12 0 0
200482295 Ezzeddine_Sara_84 A April 2, 2023, 9:21 p.m. OK GNU C++17 (64) TESTS 12 0 0
200505263 Light_Yagami_1307 A April 3, 2023, 5:07 a.m. OK GNU C++20 (64) TESTS 12 0 0
200505333 sum A April 3, 2023, 5:08 a.m. OK GNU C++20 (64) TESTS 12 0 0
200507274 AdiZer0 A April 3, 2023, 5:21 a.m. OK GNU C++20 (64) TESTS 12 0 0
200508357 dev.m.dodiya A April 3, 2023, 5:22 a.m. OK GNU C++20 (64) TESTS 12 0 0
200508687 _lemonjuice_ A April 3, 2023, 5:27 a.m. OK GNU C++20 (64) TESTS 12 0 0
200515673 pp_o A April 3, 2023, 5:38 a.m. OK GNU C++20 (64) TESTS 12 0 0
200520227 ____Help_me___ A April 3, 2023, 5:44 a.m. OK GNU C++20 (64) TESTS 12 0 0
200520234 Masker2004 A April 3, 2023, 5:44 a.m. OK GNU C++20 (64) TESTS 12 0 0
200520453 empathy117 A April 3, 2023, 5:47 a.m. OK GNU C++20 (64) TESTS 12 0 0
200520486 Niteen77 A April 3, 2023, 5:47 a.m. OK GNU C++20 (64) TESTS 12 0 0
200466406 katomasao A April 2, 2023, 6:23 p.m. OK Haskell TESTS 12 31 0
200471474 samitdas03 A April 2, 2023, 7:12 p.m. OK Java 11 TESTS 12 171 0
200464181 Dream-On A April 2, 2023, 6:05 p.m. OK Java 11 TESTS 12 187 0
200492551 vipul5565kumar A April 3, 2023, 12:52 a.m. OK Java 11 TESTS 12 202 0
200497126 fuyou98 A April 3, 2023, 2:43 a.m. OK Java 11 TESTS 12 202 0
200463784 ashutoshchahar1250 A April 2, 2023, 6:02 p.m. OK Java 11 TESTS 12 202 0
200464101 codeanand17 A April 2, 2023, 6:04 p.m. OK Java 11 TESTS 12 217 0
200456830 Extradict A April 2, 2023, 5:21 p.m. OK Java 11 TESTS 12 217 0
200473092 ilasiawo A April 2, 2023, 7:30 p.m. OK Java 11 TESTS 12 233 0
200451549 jithin_jose_19 A April 2, 2023, 4:31 p.m. OK Java 11 TESTS 12 233 0
200463349 NavneetKumar99 A April 2, 2023, 5:58 p.m. OK Java 11 TESTS 12 234 0
200474310 aishwarykesarwani A April 2, 2023, 7:44 p.m. OK Java 17 TESTS 12 155 409600
200465399 Intelijj_UB A April 2, 2023, 6:14 p.m. OK Java 17 TESTS 12 155 409600
200456184 Try14022001Baar A April 2, 2023, 5:19 p.m. OK Java 17 TESTS 12 170 409600
200475695 anand_mishra_ A April 2, 2023, 8 p.m. OK Java 17 TESTS 12 171 512000
200503509 Suraj1607 A April 3, 2023, 4:41 a.m. OK Java 17 TESTS 12 186 512000
200476002 anand_mishra_ A April 2, 2023, 8:04 p.m. OK Java 17 TESTS 12 186 512000
200520190 210103047 A April 3, 2023, 5:43 a.m. OK Java 17 TESTS 12 187 307200
200478113 m0rka1 A April 2, 2023, 8:30 p.m. OK Java 17 TESTS 12 187 409600
200490568 Jatinydv17 A April 3, 2023, midnight OK Java 17 TESTS 12 202 512000
200458440 rated21 A April 2, 2023, 5:27 p.m. OK Java 17 TESTS 12 202 512000
200468309 FlameFire A April 2, 2023, 6:41 p.m. OK Java 8 TESTS 12 92 0
200471781 youssef_ayman_ A April 2, 2023, 7:15 p.m. OK Java 8 TESTS 12 93 0
200468057 FlameFire A April 2, 2023, 6:38 p.m. OK Java 8 TESTS 12 93 0
200457015 malekelkassas A April 2, 2023, 5:21 p.m. OK Java 8 TESTS 12 93 0
200468155 Parth_Pandey A April 2, 2023, 6:39 p.m. OK Java 8 TESTS 12 108 0
200482938 aryankumar877 A April 2, 2023, 9:30 p.m. OK Java 8 TESTS 12 109 38195200
200495071 wdjuruo A April 3, 2023, 1:58 a.m. OK Java 8 TESTS 12 124 0
200459103 Koka A April 2, 2023, 5:30 p.m. OK Java 8 TESTS 12 124 0
200486143 codebind2020 A April 2, 2023, 10:20 p.m. OK Java 8 TESTS 12 124 38195200
200459755 yogesg_25 A April 2, 2023, 5:34 p.m. OK Java 8 TESTS 12 139 0
200464655 reosfire A April 2, 2023, 6:08 p.m. OK Kotlin 1.7 TESTS 12 311 8601600
200522408 Varun_2K A April 3, 2023, 6 a.m. OK MS C++ 2017 TESTS 12 15 0
200502235 ayushgupta2417 A April 3, 2023, 4:21 a.m. OK MS C++ 2017 TESTS 12 15 0
200495156 te06008 A April 3, 2023, 2 a.m. OK MS C++ 2017 TESTS 12 15 0
200480936 swseverance A April 2, 2023, 9:03 p.m. OK Node.js TESTS 12 62 102400
200498597 jinzew A April 3, 2023, 3:15 a.m. OK PyPy 3 TESTS 12 77 1433600
200482416 MohmadZaid._. A April 2, 2023, 9:23 p.m. OK PyPy 3 TESTS 12 92 1433600
200487451 alpy123 A April 2, 2023, 10:46 p.m. OK PyPy 3 TESTS 12 93 1433600
200472768 hedley.gisbourne A April 2, 2023, 7:26 p.m. OK PyPy 3 TESTS 12 93 1945600
200458125 chicosena A April 2, 2023, 5:26 p.m. OK PyPy 3 TESTS 12 108 1433600
200467234 RahulSinghIITD A April 2, 2023, 6:30 p.m. OK PyPy 3 TESTS 12 108 1945600
200495823 ealeksandrov A April 3, 2023, 2:16 a.m. OK PyPy 3 TESTS 12 109 2048000
200459951 Yash_Nandwana A April 2, 2023, 5:35 p.m. OK PyPy 3 TESTS 12 124 1024000
200476665 Kustov_Vadim_533 A April 2, 2023, 8:12 p.m. OK PyPy 3-64 TESTS 12 61 0
200457545 rmr A April 2, 2023, 5:23 p.m. OK PyPy 3-64 TESTS 12 61 0
200476746 Ethan_Hunt_69 A April 2, 2023, 8:13 p.m. OK PyPy 3-64 TESTS 12 61 1638400
200460253 ashwani21521 A April 2, 2023, 5:37 p.m. OK PyPy 3-64 TESTS 12 61 1843200
200498951 Youarenotgood A April 3, 2023, 3:21 a.m. OK PyPy 3-64 TESTS 12 62 0
200471846 Mohamed_Hamed A April 2, 2023, 7:16 p.m. OK PyPy 3-64 TESTS 12 62 0
200471826 2momo2 A April 2, 2023, 7:16 p.m. OK PyPy 3-64 TESTS 12 62 0
200467817 isekun A April 2, 2023, 6:36 p.m. OK PyPy 3-64 TESTS 12 62 0
200469925 almkdadAli A April 2, 2023, 6:57 p.m. OK PyPy 3-64 TESTS 12 62 102400
200491379 Yinch A April 3, 2023, 12:21 a.m. OK PyPy 3-64 TESTS 12 62 614400
200491167 Ki1ro A April 3, 2023, 12:15 a.m. OK Python 3 TESTS 12 31 0
200472014 mayank1998sharma A April 2, 2023, 7:18 p.m. OK Python 3 TESTS 12 31 0
200520464 Sabuj_arif A April 3, 2023, 5:47 a.m. OK Python 3 TESTS 12 46 0
200504100 adrian.riv A April 3, 2023, 4:49 a.m. OK Python 3 TESTS 12 46 0
200501743 Hritik12 A April 3, 2023, 4:12 a.m. OK Python 3 TESTS 12 46 0
200501712 lidaxian6 A April 3, 2023, 4:12 a.m. OK Python 3 TESTS 12 46 0
200500666 sbdkdlalit0112 A April 3, 2023, 3:53 a.m. OK Python 3 TESTS 12 46 0
200499816 akash20021118 A April 3, 2023, 3:38 a.m. OK Python 3 TESTS 12 46 0
200497382 nile_2772 A April 3, 2023, 2:48 a.m. OK Python 3 TESTS 12 46 0
200494474 aashrithreddypeddi A April 3, 2023, 1:42 a.m. OK Python 3 TESTS 12 46 0
200507201 booiris A April 3, 2023, 5:20 a.m. OK Rust 2021 TESTS 12 15 0
200479656 niyaznigmatul A April 2, 2023, 8:48 p.m. OK Rust 2021 TESTS 12 15 0

remove filters

Back to search problems