Codeforces Round 803 (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
1698 Codeforces Round 803 (Div. 2) FINISHED False 8100 80839463 June 28, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 29767 ) A XOR Mixup PROGRAMMING bitmasks brute force

B'There is an array a with n-1 integers. Let x be the bitwise XOR of all elements of the array. The number x is added to the end of the array a (now it has length n ), and then the elements are shuffled. You are given the newly formed array a . What is x ? If there are multiple possible values of x , you can output any of them. The input consists of multiple test cases. The first line contains an integer t ( 1 <= q t <= q 1000 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains an integer n ( 2 <= q n <= q 100 ) -- the number of integers in the resulting array a . The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 0 <= a_i <= 127 ) -- the elements of the newly formed array a . Additional constraint on the input: the array a is made by the process described in the statement; that is, some value of x exists. For each test case, output a single integer -- the value of x , as described in the statement. If there are multiple possible values of x , output any of them. In the first test case, one possible array a is a=[2, 5, 4] . Then x = 2 oplus 5 oplus 4 = 3 ( oplus denotes the bitwise XOR), so the new array is [2, 5, 4, 3] . Afterwards, the array is shuffled to form [4, 3, 2, 5] . In the second test case, one possible array a is a=[1, 10, 6, 10] . Then x = 1 oplus 10 oplus 6 oplus 10 = 7 , so the new array is [1, 10, 6, 10, 7] . Afterwards, the array is shuffled to form [6, 1, 10, 7, 10] . In the third test case, all elements of the array are equal to 6 , so x=6 . In the fourth test case, one possible array a is a=[100, 100] . Then x = 100 oplus 100 = 0 , so the new array is [100, 100, 0] . Afterwards, the array is shuffled to form [100, 100, 0] .'...

Tutorials

Codeforces Round #803 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
162176197 WahbiD.A A June 28, 2022, 8:33 p.m. OK C# 10 TESTS 3 46 3379200
162176313 WahbiD.A A June 28, 2022, 8:35 p.m. OK C# 10 TESTS 3 46 3379200
162175616 WahbiD.A A June 28, 2022, 8:23 p.m. OK C# 10 TESTS 3 46 3584000
162186301 QKLXTC A June 29, 2022, 1:01 a.m. OK Clang++17 Diagnostics TESTS 3 30 0
162189035 xkys A June 29, 2022, 1:55 a.m. OK Clang++17 Diagnostics TESTS 3 312 0
162186514 ousso3527 A June 29, 2022, 1:06 a.m. OK Clang++17 Diagnostics TESTS 3 623 7372800
162190173 ldu-LC A June 29, 2022, 2:14 a.m. OK Clang++20 Diagnostics TESTS 3 312 0
162160718 WalrusRamen21 A June 28, 2022, 5:44 p.m. OK GNU C11 TESTS 3 15 0
162204150 harshdeepj A June 29, 2022, 5:56 a.m. OK GNU C11 TESTS 3 15 0
162169814 bhardwaj_sir A June 28, 2022, 7:01 p.m. OK GNU C11 TESTS 3 15 0
162157145 bipul- A June 28, 2022, 5:23 p.m. OK GNU C11 TESTS 3 15 0
162183539 antuda A June 28, 2022, 11:44 p.m. OK GNU C11 TESTS 3 31 0
162189666 shanu11223 A June 29, 2022, 2:05 a.m. OK GNU C11 TESTS 3 31 0
162193938 slayeh17 A June 29, 2022, 3:21 a.m. OK GNU C11 TESTS 3 31 0
162171665 Walid238 A June 28, 2022, 7:26 p.m. OK GNU C11 TESTS 3 31 0
162173027 UttamAmit A June 28, 2022, 7:44 p.m. OK GNU C11 TESTS 3 31 0
162157396 Devansh_2021460 A June 28, 2022, 5:24 p.m. OK GNU C11 TESTS 3 31 614400
162184435 messibolt A June 29, 2022, 12:11 a.m. OK GNU C++14 TESTS 3 0 0
162185170 Bowence A June 29, 2022, 12:31 a.m. OK GNU C++14 TESTS 3 0 0
162195558 Shud A June 29, 2022, 3:49 a.m. OK GNU C++14 TESTS 3 15 0
162195508 Gammu A June 29, 2022, 3:48 a.m. OK GNU C++14 TESTS 3 15 0
162197494 Chitranjan_hembrom A June 29, 2022, 4:20 a.m. OK GNU C++14 TESTS 3 15 0
162200302 Memory66 A June 29, 2022, 5:04 a.m. OK GNU C++14 TESTS 3 15 0
162202829 sarthakarora01 A June 29, 2022, 5:39 a.m. OK GNU C++14 TESTS 3 15 0
162204416 strange757 A June 29, 2022, 6 a.m. OK GNU C++14 TESTS 3 15 0
162196344 100476241 A June 29, 2022, 4:02 a.m. OK GNU C++14 TESTS 3 15 0
162195757 Hatsune_MikuOvO A June 29, 2022, 3:52 a.m. OK GNU C++14 TESTS 3 15 0
162163775 KRISH_FOUSC A June 28, 2022, 6:06 p.m. OK GNU C++17 TESTS 3 0 0
162185994 nikhil129 A June 29, 2022, 12:53 a.m. OK GNU C++17 TESTS 3 0 0
162188239 NicolasG A June 29, 2022, 1:40 a.m. OK GNU C++17 TESTS 3 0 0
162190581 kabilan45 A June 29, 2022, 2:21 a.m. OK GNU C++17 TESTS 3 0 0
162194762 Birthday1703 A June 29, 2022, 3:35 a.m. OK GNU C++17 TESTS 3 0 204800
162169405 IYAS.A.S A June 28, 2022, 6:57 p.m. OK GNU C++17 TESTS 3 0 204800
162185168 alejandrosm96 A June 29, 2022, 12:31 a.m. OK GNU C++17 TESTS 3 0 204800
162196453 12378 A June 29, 2022, 4:04 a.m. OK GNU C++17 TESTS 3 0 819200
162194530 iLoveAbdulrahman_aj A June 29, 2022, 3:31 a.m. OK GNU C++17 TESTS 3 0 1331200
162203629 Learner_one A June 29, 2022, 5:50 a.m. OK GNU C++17 TESTS 3 15 0
162162664 Bhagavath A June 28, 2022, 5:57 p.m. OK GNU C++17 (64) TESTS 3 0 0
162187118 Time_JYF A June 29, 2022, 1:20 a.m. OK GNU C++17 (64) TESTS 3 0 0
162196038 nlyh A June 29, 2022, 3:57 a.m. OK GNU C++17 (64) TESTS 3 0 0
162203467 aliasgar_45 A June 29, 2022, 5:48 a.m. OK GNU C++17 (64) TESTS 3 15 0
162201692 b.sahasreddy A June 29, 2022, 5:23 a.m. OK GNU C++17 (64) TESTS 3 15 0
162200146 sagar_sk007 A June 29, 2022, 5:01 a.m. OK GNU C++17 (64) TESTS 3 15 0
162196109 adityateltia22 A June 29, 2022, 3:58 a.m. OK GNU C++17 (64) TESTS 3 15 0
162196046 adityateltia22 A June 29, 2022, 3:57 a.m. OK GNU C++17 (64) TESTS 3 15 0
162195745 ashutosh_pathak_27 A June 29, 2022, 3:52 a.m. OK GNU C++17 (64) TESTS 3 15 0
162194508 neyung_ A June 29, 2022, 3:31 a.m. OK GNU C++17 (64) TESTS 3 15 0
162164959 afshaan08 A June 28, 2022, 6:15 p.m. OK GNU C++20 (64) TESTS 3 0 0
162168542 TheDeadSoul A June 28, 2022, 6:48 p.m. OK GNU C++20 (64) TESTS 3 0 0
162178397 benzyl A June 28, 2022, 9:15 p.m. OK GNU C++20 (64) TESTS 3 0 0
162184073 joseacaz A June 29, 2022, midnight OK GNU C++20 (64) TESTS 3 0 0
162185429 xdO_o A June 29, 2022, 12:38 a.m. OK GNU C++20 (64) TESTS 3 0 0
162193659 Mushfiq_Talha A June 29, 2022, 3:17 a.m. OK GNU C++20 (64) TESTS 3 0 0
162194590 SCMZUoj A June 29, 2022, 3:32 a.m. OK GNU C++20 (64) TESTS 3 0 0
162197192 izumiQR A June 29, 2022, 4:15 a.m. OK GNU C++20 (64) TESTS 3 0 0
162198223 bhuri A June 29, 2022, 4:32 a.m. OK GNU C++20 (64) TESTS 3 0 0
162198809 heng- A June 29, 2022, 4:41 a.m. OK GNU C++20 (64) TESTS 3 0 0
162182721 koluchiy A June 28, 2022, 11:17 p.m. OK Go TESTS 3 826 0
162183103 koluchiy A June 28, 2022, 11:29 p.m. OK Go TESTS 3 826 102400
162181049 koluchiy A June 28, 2022, 10:23 p.m. OK Go TESTS 3 873 2662400
162180789 koluchiy A June 28, 2022, 10:17 p.m. OK Go TESTS 3 873 2662400
162180496 koluchiy A June 28, 2022, 10:09 p.m. OK Go TESTS 3 904 3072000
162182000 koluchiy A June 28, 2022, 10:53 p.m. OK Go TESTS 3 920 2662400
162180591 koluchiy A June 28, 2022, 10:12 p.m. OK Go TESTS 3 936 3072000
162180924 koluchiy A June 28, 2022, 10:20 p.m. OK Go TESTS 3 951 2662400
162160476 LazyHaskell A June 28, 2022, 5:42 p.m. OK Haskell TESTS 3 15 0
162202264 poopoop A June 29, 2022, 5:31 a.m. OK Java 11 TESTS 3 140 0
162200685 kartikpapney A June 29, 2022, 5:09 a.m. OK Java 11 TESTS 3 155 0
162192441 Longgggggggg A June 29, 2022, 2:56 a.m. OK Java 11 TESTS 3 155 0
162178794 Karakurik A June 28, 2022, 9:25 p.m. OK Java 11 TESTS 3 155 0
162176870 satyaa_78 A June 28, 2022, 8:45 p.m. OK Java 11 TESTS 3 156 0
162198543 the_unseen A June 29, 2022, 4:37 a.m. OK Java 11 TESTS 3 171 0
162193026 swift51385 A June 29, 2022, 3:05 a.m. OK Java 11 TESTS 3 171 0
162186225 v7fgg A June 29, 2022, 12:59 a.m. OK Java 11 TESTS 3 171 0
162178804 Karakurik A June 28, 2022, 9:25 p.m. OK Java 11 TESTS 3 171 0
162160470 La_Pagla A June 28, 2022, 5:42 p.m. OK Java 11 TESTS 3 171 0
162188536 zp16630309290 A June 29, 2022, 1:46 a.m. OK Java 17 TESTS 3 280 512000
162177928 WalrusRamen21 A June 28, 2022, 9:05 p.m. OK Java 17 TESTS 3 311 409600
162202529 juryc A June 29, 2022, 5:35 a.m. OK Java 17 TESTS 3 326 102400
162174448 AhmedEl-Gohary A June 28, 2022, 8:04 p.m. OK Java 8 TESTS 3 78 0
162200657 RR2000 A June 29, 2022, 5:09 a.m. OK Java 8 TESTS 3 93 0
162200653 dkj A June 29, 2022, 5:09 a.m. OK Java 8 TESTS 3 93 0
162171495 Koka A June 28, 2022, 7:24 p.m. OK Java 8 TESTS 3 108 0
162170552 handle007 A June 28, 2022, 7:11 p.m. OK Java 8 TESTS 3 108 0
162170085 gagan1729 A June 28, 2022, 7:04 p.m. OK Java 8 TESTS 3 108 0
162190116 ikillmyself A June 29, 2022, 2:13 a.m. OK Java 8 TESTS 3 124 0
162192419 _Gupta_JI_ A June 29, 2022, 2:55 a.m. OK Java 8 TESTS 3 186 0
162200613 codehunter_ A June 29, 2022, 5:08 a.m. OK Java 8 TESTS 3 202 0
162171123 Saurav0826 A June 28, 2022, 7:19 p.m. OK Java 8 TESTS 3 202 0
162175459 xxxtentaclez A June 28, 2022, 8:21 p.m. OK Kotlin 1.4 TESTS 3 156 204800
162175270 Kremlebot13 A June 28, 2022, 8:18 p.m. OK Kotlin 1.6 TESTS 3 233 0
162179299 rip.nsk A June 28, 2022, 9:36 p.m. OK MS C++ 2017 TESTS 3 31 0
162196519 merzgling A June 29, 2022, 4:05 a.m. OK MS C++ 2017 TESTS 3 61 0
162169374 fares.h.moneim A June 28, 2022, 6:57 p.m. OK MS C++ 2017 TESTS 3 62 409600
162158723 youssefdarwishh A June 28, 2022, 5:31 p.m. OK MS C++ 2017 TESTS 3 77 409600
162175441 Nosov_Vovanus2022 A June 28, 2022, 8:20 p.m. OK MS C++ 2017 TESTS 3 78 0
162153544 ArtKot A June 28, 2022, 4:48 p.m. OK PascalABC.NET TESTS 3 265 0
162164966 784 A June 28, 2022, 6:15 p.m. OK Perl TESTS 3 15 0
162163113 784 A June 28, 2022, 6:01 p.m. OK Perl TESTS 3 46 0
162171109 jscn A June 28, 2022, 7:19 p.m. OK PyPy 3 TESTS 3 109 2355200
162165841 litesam A June 28, 2022, 6:22 p.m. OK PyPy 3 TESTS 3 171 5017600
162189618 Shrink A June 29, 2022, 2:04 a.m. OK PyPy 3 TESTS 3 171 5324800
162169592 Mannu31 A June 28, 2022, 6:59 p.m. OK PyPy 3 TESTS 3 171 5427200
162201256 hiardik45_exe A June 29, 2022, 5:17 a.m. OK PyPy 3 TESTS 3 202 5324800
162161674 pavanfknkarthik A June 28, 2022, 5:50 p.m. OK PyPy 3 TESTS 3 202 6041600
162158904 Hamid1385 A June 28, 2022, 5:32 p.m. OK PyPy 3 TESTS 3 217 5324800
162180508 zubra.bubra A June 28, 2022, 10:09 p.m. OK PyPy 3-64 TESTS 3 108 1843200
162170574 Istarchick A June 28, 2022, 7:11 p.m. OK PyPy 3-64 TESTS 3 109 1433600
162191176 Youarenotgood A June 29, 2022, 2:32 a.m. OK PyPy 3-64 TESTS 3 109 1945600
162191296 tassei903 A June 29, 2022, 2:34 a.m. OK PyPy 3-64 TESTS 3 109 2048000
162162339 touristjiangly A June 28, 2022, 5:55 p.m. OK PyPy 3-64 TESTS 3 124 1843200
162170821 Yansou A June 28, 2022, 7:14 p.m. OK PyPy 3-64 TESTS 3 124 2457600
162160481 Himanshu_Kaithal A June 28, 2022, 5:42 p.m. OK PyPy 3-64 TESTS 3 155 3072000
162186345 capdCrusader A June 29, 2022, 1:02 a.m. OK PyPy 3-64 TESTS 3 155 4505600
162157537 Pronoy_Deb A June 28, 2022, 5:25 p.m. OK PyPy 3-64 TESTS 3 170 3993600
162161809 FanaticAuthorship A June 28, 2022, 5:51 p.m. OK PyPy 3-64 TESTS 3 171 3379200
162161709 Aymops A June 28, 2022, 5:51 p.m. OK Python 3 TESTS 3 30 204800
162200966 Livfo A June 29, 2022, 5:13 a.m. OK Python 3 TESTS 3 46 0
162200220 senju_kage A June 29, 2022, 5:02 a.m. OK Python 3 TESTS 3 46 0
162186066 happywater A June 29, 2022, 12:55 a.m. OK Python 3 TESTS 3 46 0
162184559 yash1744 A June 29, 2022, 12:15 a.m. OK Python 3 TESTS 3 46 0
162173113 Mad_Andrei A June 28, 2022, 7:45 p.m. OK Python 3 TESTS 3 46 0
162173086 gustavoo A June 28, 2022, 7:45 p.m. OK Python 3 TESTS 3 46 0
162166143 avshet2001 A June 28, 2022, 6:25 p.m. OK Python 3 TESTS 3 46 0
162164431 AyuAnchor A June 28, 2022, 6:10 p.m. OK Python 3 TESTS 3 46 0
162179068 PJdan A June 28, 2022, 9:31 p.m. OK Python 3 TESTS 3 46 102400
162162507 Akash_123 A June 28, 2022, 5:56 p.m. OK Rust 2021 TESTS 3 15 102400

remove filters

Back to search problems