Codeforces Round 772 (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
1635 Codeforces Round 772 (Div. 2) FINISHED False 7200 91812262 Feb. 20, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 23379 ) A Min Or Sum PROGRAMMING bitmasks greedy

B"You are given an array a of size n . You can perform the following operation on the array: Please output the minimum sum of the array you can get after using the operation above any number of times. Each test contains multiple test cases. The first line contains the number of test cases t (1 <= q t <= q 1000) . Description of the test cases follows. The first line of each test case contains an integer n (2 <= q n <= q 100) -- the size of array a . The second line of each test case contains n integers a_1, a_2, ldots ,a_n (0 <= q a_i < 2^{30}) . For each test case, print one number in a line -- the minimum possible sum of the array. In the first example, you can perform the following operations to obtain the array [1, 0, 2] : 1. choose i = 1, j = 2 , change a_1 = 1 and a_2 = 2 , it's valid since 1 | 3 = 1 | 2 . The array becomes [1, 2, 2] . 2. choose i = 2, j = 3 , change a_2 = 0 and a_3 = 2 , it's valid since 2 | 2 = 0 | 2 . The array becomes [1, 0, 2] . We can prove that the minimum sum is 1 + 0 + 2 = 3 In the second example, We don't need any operations. "...

Tutorials

Codeforces Round #772 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
147104503 dean.menezes A Feb. 20, 2022, 6:06 p.m. OK Clang++17 Diagnostics TESTS 15 46 0
147114861 tatianyi A Feb. 20, 2022, 8:07 p.m. OK Clang++17 Diagnostics TESTS 15 46 0
147090971 190030027 A Feb. 20, 2022, 4:17 p.m. OK GNU C11 TESTS 15 15 0
147124629 maximeromeoassogba03 A Feb. 21, 2022, 12:04 a.m. OK GNU C11 TESTS 15 30 0
147113701 dragoo00n A Feb. 20, 2022, 7:49 p.m. OK GNU C11 TESTS 15 31 0
147101737 predawn A Feb. 20, 2022, 5:49 p.m. OK GNU C11 TESTS 15 31 0
147114816 tatianyi A Feb. 20, 2022, 8:06 p.m. OK GNU C11 TESTS 15 31 0
147136251 generaltroy3 A Feb. 21, 2022, 4:31 a.m. OK GNU C11 TESTS 15 31 0
147101501 rainboy A Feb. 20, 2022, 5:48 p.m. OK GNU C11 TESTS 15 31 0
147092178 lkmlkm00 A Feb. 20, 2022, 4:20 p.m. OK GNU C11 TESTS 15 31 0
147134575 xXProKodarXx A Feb. 21, 2022, 4:03 a.m. OK GNU C++14 TESTS 15 15 0
147134452 ak.47 A Feb. 21, 2022, 4:01 a.m. OK GNU C++14 TESTS 15 15 0
147132721 dhru_3101 A Feb. 21, 2022, 3:28 a.m. OK GNU C++14 TESTS 15 15 0
147128322 Forever_M A Feb. 21, 2022, 2:07 a.m. OK GNU C++14 TESTS 15 15 0
147128261 caolima A Feb. 21, 2022, 2:05 a.m. OK GNU C++14 TESTS 15 15 0
147128170 LWLAymh A Feb. 21, 2022, 2:02 a.m. OK GNU C++14 TESTS 15 15 0
147127926 kuaileshiwo A Feb. 21, 2022, 1:56 a.m. OK GNU C++14 TESTS 15 15 0
147141788 vegetable7 A Feb. 21, 2022, 5:50 a.m. OK GNU C++14 TESTS 15 15 0
147141455 vegetable7 A Feb. 21, 2022, 5:45 a.m. OK GNU C++14 TESTS 15 15 0
147136615 aro_ekbar A Feb. 21, 2022, 4:37 a.m. OK GNU C++14 TESTS 15 15 0
147139143 MikeOvO A Feb. 21, 2022, 5:14 a.m. OK GNU C++17 TESTS 15 15 0
147138810 dj0689839 A Feb. 21, 2022, 5:10 a.m. OK GNU C++17 TESTS 15 15 0
147137822 raju_halkat A Feb. 21, 2022, 4:56 a.m. OK GNU C++17 TESTS 15 15 0
147136967 MohamedMagdy A Feb. 21, 2022, 4:43 a.m. OK GNU C++17 TESTS 15 15 0
147142096 Raymond_YP A Feb. 21, 2022, 5:54 a.m. OK GNU C++17 TESTS 15 15 0
147142551 sQ-nax- A Feb. 21, 2022, 6 a.m. OK GNU C++17 TESTS 15 15 0
147142730 Focusss A Feb. 21, 2022, 6:02 a.m. OK GNU C++17 TESTS 15 15 0
147141433 djay24 A Feb. 21, 2022, 5:45 a.m. OK GNU C++17 TESTS 15 15 0
147140776 wbszxw A Feb. 21, 2022, 5:36 a.m. OK GNU C++17 TESTS 15 15 0
147139188 hitesh_bansal A Feb. 21, 2022, 5:15 a.m. OK GNU C++17 TESTS 15 15 0
147132813 SoluckyBhavya9 A Feb. 21, 2022, 3:30 a.m. OK GNU C++17 (64) TESTS 15 15 0
147142386 hara_1999 A Feb. 21, 2022, 5:57 a.m. OK GNU C++17 (64) TESTS 15 15 0
147142239 Shubhrajyoti_Dey A Feb. 21, 2022, 5:56 a.m. OK GNU C++17 (64) TESTS 15 15 0
147142020 EZiganshin A Feb. 21, 2022, 5:53 a.m. OK GNU C++17 (64) TESTS 15 15 0
147140334 lesjones254 A Feb. 21, 2022, 5:31 a.m. OK GNU C++17 (64) TESTS 15 15 0
147138834 bkifhr10 A Feb. 21, 2022, 5:10 a.m. OK GNU C++17 (64) TESTS 15 15 0
147137160 ajai_C_R_7_ A Feb. 21, 2022, 4:46 a.m. OK GNU C++17 (64) TESTS 15 15 0
147137064 HP_BenLadeN A Feb. 21, 2022, 4:44 a.m. OK GNU C++17 (64) TESTS 15 15 0
147136321 zzhrnoicansolve A Feb. 21, 2022, 4:32 a.m. OK GNU C++17 (64) TESTS 15 15 0
147133260 kadde A Feb. 21, 2022, 3:39 a.m. OK GNU C++17 (64) TESTS 15 15 0
147140797 Zjkai_ A Feb. 21, 2022, 5:36 a.m. OK GNU C++20 (64) TESTS 15 15 0
147140400 gongkoufadongji A Feb. 21, 2022, 5:32 a.m. OK GNU C++20 (64) TESTS 15 15 0
147140029 CodeCracker1609 A Feb. 21, 2022, 5:27 a.m. OK GNU C++20 (64) TESTS 15 15 0
147138993 generic_placeholder_name A Feb. 21, 2022, 5:12 a.m. OK GNU C++20 (64) TESTS 15 15 0
147140963 keenlf A Feb. 21, 2022, 5:38 a.m. OK GNU C++20 (64) TESTS 15 15 0
147141276 anandk543 A Feb. 21, 2022, 5:43 a.m. OK GNU C++20 (64) TESTS 15 15 0
147141800 ImMortaL_NecRomanceR A Feb. 21, 2022, 5:50 a.m. OK GNU C++20 (64) TESTS 15 15 0
147141824 nesco A Feb. 21, 2022, 5:50 a.m. OK GNU C++20 (64) TESTS 15 15 0
147141905 Dilip24 A Feb. 21, 2022, 5:51 a.m. OK GNU C++20 (64) TESTS 15 15 0
147142354 shineblinking A Feb. 21, 2022, 5:57 a.m. OK GNU C++20 (64) TESTS 15 15 0
147109226 jyoti360 A Feb. 20, 2022, 6:49 p.m. OK Java 11 TESTS 15 170 0
147112286 kishorep A Feb. 20, 2022, 7:29 p.m. OK Java 11 TESTS 15 171 0
147102512 sinnay A Feb. 20, 2022, 5:54 p.m. OK Java 11 TESTS 15 171 0
147139281 suhas5979 A Feb. 21, 2022, 5:16 a.m. OK Java 11 TESTS 15 171 0
147123692 bobib A Feb. 20, 2022, 11:31 p.m. OK Java 11 TESTS 15 171 0
147132199 17821147 A Feb. 21, 2022, 3:18 a.m. OK Java 11 TESTS 15 186 0
147138309 mayank.singh19 A Feb. 21, 2022, 5:03 a.m. OK Java 11 TESTS 15 186 0
147131294 gawsfbet A Feb. 21, 2022, 2:59 a.m. OK Java 11 TESTS 15 186 0
147124168 pepelats A Feb. 20, 2022, 11:47 p.m. OK Java 11 TESTS 15 187 0
147129123 __Serendipity A Feb. 21, 2022, 2:28 a.m. OK Java 11 TESTS 15 187 0
147107887 arutsudar A Feb. 20, 2022, 6:35 p.m. OK Java 8 TESTS 15 93 0
147105956 Mohamed308 A Feb. 20, 2022, 6:17 p.m. OK Java 8 TESTS 15 108 0
147108435 dev_14 A Feb. 20, 2022, 6:41 p.m. OK Java 8 TESTS 15 108 0
147115436 malekelkassas A Feb. 20, 2022, 8:16 p.m. OK Java 8 TESTS 15 109 0
147103589 amit_roy A Feb. 20, 2022, 6 p.m. OK Java 8 TESTS 15 109 0
147125086 Self7 A Feb. 21, 2022, 12:20 a.m. OK Java 8 TESTS 15 124 0
147097913 sky9313 A Feb. 20, 2022, 4:34 p.m. OK Java 8 TESTS 15 124 0
147128785 -crazy_coder- A Feb. 21, 2022, 2:19 a.m. OK Java 8 TESTS 15 124 0
147104015 nomadicjuggrnaut A Feb. 20, 2022, 6:02 p.m. OK Java 8 TESTS 15 124 0
147111800 adi_daredevil A Feb. 20, 2022, 7:22 p.m. OK Java 8 TESTS 15 155 0
147137387 _Astron A Feb. 21, 2022, 4:49 a.m. OK Kotlin 1.4 TESTS 15 109 0
147102088 Subhanshu20135 A Feb. 20, 2022, 5:51 p.m. OK Kotlin 1.5 TESTS 15 296 0
147093497 ValuableGrbg A Feb. 20, 2022, 4:24 p.m. OK MS C++ 2017 TESTS 15 62 0
147092090 MateiCv A Feb. 20, 2022, 4:20 p.m. OK MS C++ 2017 TESTS 15 62 0
147137413 wellorbetter A Feb. 21, 2022, 4:50 a.m. OK MS C++ 2017 TESTS 15 62 0
147129352 dogoeswoof A Feb. 21, 2022, 2:34 a.m. OK MS C++ 2017 TESTS 15 62 0
147109903 Rydolf_sikorski-Baal A Feb. 20, 2022, 6:57 p.m. OK MS C++ 2017 TESTS 15 62 0
147131085 Ir0nic_Joker A Feb. 21, 2022, 2:55 a.m. OK MS C++ 2017 TESTS 15 78 0
147105519 ReiAC A Feb. 20, 2022, 6:14 p.m. OK .NET Core C# TESTS 15 93 2969600
147109884 newb_ie A Feb. 20, 2022, 6:57 p.m. OK .NET Core C# TESTS 15 93 3072000
147141596 Zeroop A Feb. 21, 2022, 5:47 a.m. OK Node.js TESTS 15 78 4812800
147141545 Zeroop A Feb. 21, 2022, 5:46 a.m. OK Node.js TESTS 15 78 4812800
147101674 1_2_3_4_5_9 A Feb. 20, 2022, 5:49 p.m. OK PyPy 2 TESTS 15 109 2355200
147107014 Adolf988 A Feb. 20, 2022, 6:27 p.m. OK PyPy 3 TESTS 15 124 4198400
147121033 toam A Feb. 20, 2022, 10:11 p.m. OK PyPy 3 TESTS 15 155 3891200
147102604 harshitgarg02 A Feb. 20, 2022, 5:54 p.m. OK PyPy 3 TESTS 15 170 4096000
147127027 grawlixes A Feb. 21, 2022, 1:27 a.m. OK PyPy 3 TESTS 15 171 3993600
147108054 lebron87 A Feb. 20, 2022, 6:37 p.m. OK PyPy 3 TESTS 15 171 4096000
147116283 rbamhore20 A Feb. 20, 2022, 8:31 p.m. OK PyPy 3 TESTS 15 186 6348800
147138795 59ri A Feb. 21, 2022, 5:09 a.m. OK PyPy 3 TESTS 15 187 6348800
147135262 YouCanCallMeNoob A Feb. 21, 2022, 4:15 a.m. OK PyPy 3 TESTS 15 187 6348800
147117661 noobsatish A Feb. 20, 2022, 8:56 p.m. OK PyPy 3 TESTS 15 187 6451200
147139012 mahitanaidu249 A Feb. 21, 2022, 5:12 a.m. OK PyPy 3 TESTS 15 202 6348800
147105155 mayank35 A Feb. 20, 2022, 6:11 p.m. OK PyPy 3-64 TESTS 15 92 3891200
147103857 NKUCristiano A Feb. 20, 2022, 6:01 p.m. OK PyPy 3-64 TESTS 15 93 4300800
147106867 itsyogeshniranjan A Feb. 20, 2022, 6:26 p.m. OK PyPy 3-64 TESTS 15 124 5324800
147134143 aman404found A Feb. 21, 2022, 3:55 a.m. OK PyPy 3-64 TESTS 15 124 5427200
147139407 sakshatmali A Feb. 21, 2022, 5:18 a.m. OK PyPy 3-64 TESTS 15 124 9011200
147103600 _sicmundus_ A Feb. 20, 2022, 6 p.m. OK PyPy 3-64 TESTS 15 140 7372800
147117931 mathdude42 A Feb. 20, 2022, 9:01 p.m. OK PyPy 3-64 TESTS 15 140 9113600
147115739 whatshisbucket A Feb. 20, 2022, 8:22 p.m. OK PyPy 3-64 TESTS 15 155 5836800
147137383 hardik2001 A Feb. 21, 2022, 4:49 a.m. OK PyPy 3-64 TESTS 15 155 9625600
147114590 hey24sheep A Feb. 20, 2022, 8:02 p.m. OK PyPy 3-64 TESTS 15 171 4915200
147105614 OLOGY A Feb. 20, 2022, 6:15 p.m. OK Python 2 TESTS 15 62 1228800
147112354 0.00 A Feb. 20, 2022, 7:30 p.m. OK Python 3 TESTS 15 46 307200
147140012 Md_Tareq_Hasan A Feb. 21, 2022, 5:26 a.m. OK Python 3 TESTS 15 62 0
147139141 sphoortimpatil A Feb. 21, 2022, 5:14 a.m. OK Python 3 TESTS 15 62 0
147137479 deepak19 A Feb. 21, 2022, 4:51 a.m. OK Python 3 TESTS 15 62 0
147124537 CoolManGame A Feb. 21, 2022, midnight OK Python 3 TESTS 15 62 0
147094669 190330039 A Feb. 20, 2022, 4:27 p.m. OK Python 3 TESTS 15 62 0
147135581 Srirambabu A Feb. 21, 2022, 4:20 a.m. OK Python 3 TESTS 15 62 204800
147129709 khanhtoan38 A Feb. 21, 2022, 2:42 a.m. OK Python 3 TESTS 15 62 204800
147128052 endinggy A Feb. 21, 2022, 1:59 a.m. OK Python 3 TESTS 15 62 204800
147114779 ayushgupta71011 A Feb. 20, 2022, 8:05 p.m. OK Python 3 TESTS 15 62 204800
147125275 Spheniscine A Feb. 21, 2022, 12:26 a.m. OK Rust 2021 TESTS 15 15 102400
147133563 MoonPie A Feb. 21, 2022, 3:45 a.m. OK Rust 2021 TESTS 15 15 204800
147121363 julianferres A Feb. 20, 2022, 10:19 p.m. OK Rust 2021 TESTS 15 31 102400

remove filters

Back to search problems