Codeforces Round 825 (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
1736 Codeforces Round 825 (Div. 2) FINISHED False 7200 71853863 Oct. 10, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 23225 ) A Make A Equal to B PROGRAMMING sortings

B'You are given two arrays a and b of n elements, each element is either 0 or 1 . You can make operations of 2 kinds. Find the minimum number of operations required to make a equal to b . Each test contains multiple test cases. The first line contains a single integer t ( 1 <= q t <= q 400 ) -- the number of test cases. Description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= q n <= q 100 ) -- the length of the arrays a and b . The second line of each test case contains n space-separated integers a_1,a_2, ldots,a_n ( a_i is 0 or 1 ), representing the array a . The third line of each test case contains n space-separated integers b_1,b_2, ldots,b_n ( b_i is 0 or 1 ), representing the array b . For each test case, print the minimum number of operations required to make a equal to b . In the first case, we need only one operation: change a_1 to 1-a_i . Now a = [0, 0] which is equal to b . In the second case, the optimal way is to rearrange a to get the array [0, 1, 11 . Now a = [0, 0, 1] which is equal to b . In the second case, one of optimal ways would be to first change a_3 to 1 - a_3 , then rearrange a . In the third case, no operation is needed. In the fourth case, the optimal way is to rearrange a to get the array [0, 1, 1, 0] . '...

Tutorials

Codeforces Round #825 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
175450322 Ezonok A Oct. 10, 2022, 5:45 p.m. OK C# 10 TESTS 5 31 1228800
175450879 2000030794 A Oct. 10, 2022, 5:49 p.m. OK Clang++17 Diagnostics TESTS 5 77 1024000
175503286 rahul_138 A Oct. 11, 2022, 5:50 a.m. OK Clang++17 Diagnostics TESTS 6 78 1024000
175503191 2010030168 A Oct. 11, 2022, 5:49 a.m. OK Clang++20 Diagnostics TESTS 6 62 0
175503766 nightwindnohen A Oct. 11, 2022, 5:55 a.m. OK Clang++20 Diagnostics TESTS 6 77 0
175484816 Lin040521 A Oct. 11, 2022, midnight OK Clang++20 Diagnostics TESTS 5 77 1126400
175450871 Hantur A Oct. 10, 2022, 5:49 p.m. OK GNU C11 TESTS 5 15 0
175457576 overflowingsueme A Oct. 10, 2022, 6:52 p.m. OK GNU C11 TESTS 5 15 0
175467293 alif_hasnain A Oct. 10, 2022, 9:10 p.m. OK GNU C11 TESTS 5 15 0
175468228 FahimKhamsa A Oct. 10, 2022, 9:29 p.m. OK GNU C11 TESTS 5 15 0
175449570 6Tgraybird A Oct. 10, 2022, 5:38 p.m. OK GNU C11 TESTS 5 15 0
175449972 paul69 A Oct. 10, 2022, 5:42 p.m. OK GNU C11 TESTS 5 15 0
175502097 meaou A Oct. 11, 2022, 5:35 a.m. OK GNU C11 TESTS 6 15 204800
175441934 namanpahwa20 A Oct. 10, 2022, 4:32 p.m. OK GNU C11 TESTS 5 31 0
175487042 glorious_dream A Oct. 11, 2022, 1:06 a.m. OK GNU C++14 TESTS 5 0 0
175486798 iThunderGod A Oct. 11, 2022, 12:59 a.m. OK GNU C++14 TESTS 5 0 0
175484640 RuntimeErr A Oct. 10, 2022, 11:54 p.m. OK GNU C++14 TESTS 5 0 0
175484285 01tanishq A Oct. 10, 2022, 11:42 p.m. OK GNU C++14 TESTS 5 0 0
175463135 nerdy_cacodemon A Oct. 10, 2022, 8:02 p.m. OK GNU C++14 TESTS 5 0 0
175504285 Stolyarov A Oct. 11, 2022, 6:01 a.m. OK GNU C++14 TESTS 6 0 0
175491141 Leaving_ A Oct. 11, 2022, 2:32 a.m. OK GNU C++14 TESTS 6 0 0
175488040 omeganot A Oct. 11, 2022, 1:29 a.m. OK GNU C++14 TESTS 6 0 102400
175487078 wuxinwuqing A Oct. 11, 2022, 1:07 a.m. OK GNU C++14 TESTS 5 0 102400
175462199 Harsh1610 A Oct. 10, 2022, 7:50 p.m. OK GNU C++14 TESTS 5 0 102400
175493300 L1bra A Oct. 11, 2022, 3:12 a.m. OK GNU C++17 TESTS 6 0 0
175503729 kartikhatwar98 A Oct. 11, 2022, 5:55 a.m. OK GNU C++17 TESTS 6 0 0
175459881 partik_03 A Oct. 10, 2022, 7:20 p.m. OK GNU C++17 TESTS 5 0 0
175438992 Gaurav__p A Oct. 10, 2022, 4:25 p.m. OK GNU C++17 TESTS 5 0 0
175488683 serenhade00 A Oct. 11, 2022, 1:43 a.m. OK GNU C++17 TESTS 6 0 0
175466162 darkness_ero A Oct. 10, 2022, 8:49 p.m. OK GNU C++17 TESTS 5 0 0
175457141 Priyanshu14_ A Oct. 10, 2022, 6:47 p.m. OK GNU C++17 TESTS 5 0 0
175501861 Thomas_Michael_Shelby A Oct. 11, 2022, 5:32 a.m. OK GNU C++17 TESTS 6 0 102400
175497700 cppc A Oct. 11, 2022, 4:33 a.m. OK GNU C++17 TESTS 6 0 102400
175499494 navnath_0701 A Oct. 11, 2022, 5 a.m. OK GNU C++17 TESTS 6 0 102400
175488629 izumiQR A Oct. 11, 2022, 1:41 a.m. OK GNU C++17 (64) TESTS 6 0 0
175504057 starrall A Oct. 11, 2022, 5:59 a.m. OK GNU C++17 (64) TESTS 6 0 0
175503793 xinjiu A Oct. 11, 2022, 5:56 a.m. OK GNU C++17 (64) TESTS 6 0 0
175503705 BMingSY A Oct. 11, 2022, 5:55 a.m. OK GNU C++17 (64) TESTS 6 0 0
175500319 sugam10 A Oct. 11, 2022, 5:11 a.m. OK GNU C++17 (64) TESTS 6 0 0
175497022 b4158813 A Oct. 11, 2022, 4:22 a.m. OK GNU C++17 (64) TESTS 6 0 0
175492416 L_Min1 A Oct. 11, 2022, 2:56 a.m. OK GNU C++17 (64) TESTS 6 0 0
175491637 killer_queen4804 A Oct. 11, 2022, 2:41 a.m. OK GNU C++17 (64) TESTS 6 0 0
175487997 haengsyo A Oct. 11, 2022, 1:28 a.m. OK GNU C++17 (64) TESTS 6 0 0
175486199 tsukiko_tsutsukakushi A Oct. 11, 2022, 12:43 a.m. OK GNU C++17 (64) TESTS 5 0 0
175500290 _Knyaz_ A Oct. 11, 2022, 5:11 a.m. OK GNU C++20 (64) TESTS 6 0 0
175500263 NAVI_Perfecto A Oct. 11, 2022, 5:11 a.m. OK GNU C++20 (64) TESTS 6 0 0
175500424 iyuvman A Oct. 11, 2022, 5:13 a.m. OK GNU C++20 (64) TESTS 6 0 0
175501671 Sauc3pan A Oct. 11, 2022, 5:29 a.m. OK GNU C++20 (64) TESTS 6 0 0
175501929 cfuser22 A Oct. 11, 2022, 5:33 a.m. OK GNU C++20 (64) TESTS 6 0 0
175502208 Rasel_367 A Oct. 11, 2022, 5:36 a.m. OK GNU C++20 (64) TESTS 6 0 0
175502245 Tanvirrafi A Oct. 11, 2022, 5:37 a.m. OK GNU C++20 (64) TESTS 6 0 0
175502265 harmanboparai A Oct. 11, 2022, 5:37 a.m. OK GNU C++20 (64) TESTS 6 0 0
175502558 hardik_836 A Oct. 11, 2022, 5:41 a.m. OK GNU C++20 (64) TESTS 6 0 0
175503423 priyanshubit A Oct. 11, 2022, 5:51 a.m. OK GNU C++20 (64) TESTS 6 0 0
175490221 graceoflives A Oct. 11, 2022, 2:15 a.m. OK Go TESTS 6 30 204800
175446991 eviL_cheztor A Oct. 10, 2022, 5:21 p.m. OK Haskell TESTS 5 46 0
175455399 jyoti360 A Oct. 10, 2022, 6:30 p.m. OK Java 11 TESTS 5 140 0
175493624 __Serendipity A Oct. 11, 2022, 3:18 a.m. OK Java 11 TESTS 6 155 0
175458306 aadarsh_singh A Oct. 10, 2022, 7:01 p.m. OK Java 11 TESTS 5 155 0
175448928 g_square A Oct. 10, 2022, 5:34 p.m. OK Java 11 TESTS 5 155 0
175447975 SAY_NO_TO_EDITORIAL A Oct. 10, 2022, 5:27 p.m. OK Java 11 TESTS 5 155 0
175498816 Tan_G56 A Oct. 11, 2022, 4:50 a.m. OK Java 11 TESTS 6 156 0
175458802 aadarsh_singh A Oct. 10, 2022, 7:07 p.m. OK Java 11 TESTS 5 156 0
175494292 Jackyjuman A Oct. 11, 2022, 3:30 a.m. OK Java 11 TESTS 6 171 0
175487096 SpookyJumpyBeans A Oct. 11, 2022, 1:08 a.m. OK Java 11 TESTS 5 186 0
175484086 ismail00882 A Oct. 10, 2022, 11:34 p.m. OK Java 11 TESTS 5 186 0
175503162 sharadtandale2878 A Oct. 11, 2022, 5:48 a.m. OK Java 17 TESTS 6 171 614400
175448227 devashish19 A Oct. 10, 2022, 5:28 p.m. OK Java 17 TESTS 5 186 614400
175450208 devashish19 A Oct. 10, 2022, 5:44 p.m. OK Java 17 TESTS 5 187 614400
175458157 irachit0702 A Oct. 10, 2022, 6:59 p.m. OK Java 17 TESTS 5 202 0
175500818 Shady_X A Oct. 11, 2022, 5:18 a.m. OK Java 17 TESTS 6 202 409600
175438231 max. A Oct. 10, 2022, 4:24 p.m. OK Java 17 TESTS 5 218 0
175504076 Saumil_patel A Oct. 11, 2022, 5:59 a.m. OK Java 17 TESTS 6 218 307200
175490282 cute_bei A Oct. 11, 2022, 2:17 a.m. OK Java 17 TESTS 6 218 512000
175491239 abdulazizms A Oct. 11, 2022, 2:34 a.m. OK Java 17 TESTS 6 233 409600
175438997 aditisaxena A Oct. 10, 2022, 4:25 p.m. OK Java 17 TESTS 5 233 614400
175501559 kumarankit1041999 A Oct. 11, 2022, 5:28 a.m. OK Java 8 TESTS 6 93 0
175500847 frey4 A Oct. 11, 2022, 5:18 a.m. OK Java 8 TESTS 6 93 0
175486412 Ibrahimovic_The_Lion A Oct. 11, 2022, 12:49 a.m. OK Java 8 TESTS 5 93 0
175467209 ahmedTarek28 A Oct. 10, 2022, 9:08 p.m. OK Java 8 TESTS 5 93 0
175449216 P1011 A Oct. 10, 2022, 5:36 p.m. OK Java 8 TESTS 5 93 0
175462967 osa.ayman A Oct. 10, 2022, 8 p.m. OK Java 8 TESTS 5 108 0
175442909 K_A_Y A Oct. 10, 2022, 4:34 p.m. OK Java 8 TESTS 5 108 0
175448892 Koka A Oct. 10, 2022, 5:33 p.m. OK Java 8 TESTS 5 109 0
175436127 anshulchou_123 A Oct. 10, 2022, 4:19 p.m. OK Java 8 TESTS 5 109 0
175497130 prince077 A Oct. 11, 2022, 4:23 a.m. OK Java 8 TESTS 6 124 0
175454828 Krantzy A Oct. 10, 2022, 6:24 p.m. OK Kotlin 1.6 TESTS 5 202 0
175504343 liaopengfei A Oct. 11, 2022, 6:02 a.m. OK MS C++ 2017 TESTS 6 15 0
175481687 abdulkader_haffar A Oct. 10, 2022, 10:14 p.m. OK MS C++ 2017 TESTS 5 15 0
175479782 D1mas A Oct. 10, 2022, 9:33 p.m. OK MS C++ 2017 TESTS 5 15 0
175451772 cpedniynikon A Oct. 10, 2022, 5:57 p.m. OK MS C++ 2017 TESTS 5 15 0
175498612 cookybear A Oct. 11, 2022, 4:47 a.m. OK MS C++ 2017 TESTS 6 30 0
175437539 knitin2604 A Oct. 10, 2022, 4:22 p.m. OK MS C++ 2017 TESTS 5 30 102400
175499665 lyqhh88 A Oct. 11, 2022, 5:02 a.m. OK MS C++ 2017 TESTS 6 31 0
175460929 mourhafsabri A Oct. 10, 2022, 7:32 p.m. OK MS C++ 2017 TESTS 5 31 0
175441613 belief_010 A Oct. 10, 2022, 4:31 p.m. OK MS C++ 2017 TESTS 5 31 0
175450565 rsFalse A Oct. 10, 2022, 5:47 p.m. OK Perl TESTS 5 30 0
175489775 Utkarshg001 A Oct. 11, 2022, 2:07 a.m. OK PyPy 2 TESTS 6 109 819200
175487434 rummansadik A Oct. 11, 2022, 1:15 a.m. OK PyPy 3 TESTS 5 93 1945600
175458914 sheshank10 A Oct. 10, 2022, 7:08 p.m. OK PyPy 3 TESTS 5 93 2048000
175447078 segfault11 A Oct. 10, 2022, 5:22 p.m. OK PyPy 3 TESTS 5 93 2048000
175436048 VeNkAt_178 A Oct. 10, 2022, 4:19 p.m. OK PyPy 3 TESTS 5 93 2048000
175452694 vishu.ut A Oct. 10, 2022, 6:05 p.m. OK PyPy 3 TESTS 5 108 1945600
175496141 oyoot A Oct. 11, 2022, 4:06 a.m. OK PyPy 3 TESTS 6 109 1945600
175454889 Mark2012 A Oct. 10, 2022, 6:24 p.m. OK PyPy 3 TESTS 5 109 2048000
175489800 Utkarshg001 A Oct. 11, 2022, 2:07 a.m. OK PyPy 3 TESTS 6 109 2150400
175465034 aneesh2002 A Oct. 10, 2022, 8:31 p.m. OK PyPy 3 TESTS 5 124 1638400
175466293 Noureldin A Oct. 10, 2022, 8:51 p.m. OK PyPy 3 TESTS 5 124 2150400
175482237 crapcode A Oct. 10, 2022, 10:31 p.m. OK PyPy 3-64 TESTS 5 46 1945600
175491310 bokunopicolo A Oct. 11, 2022, 2:35 a.m. OK PyPy 3-64 TESTS 6 46 2969600
175460949 gesuta A Oct. 10, 2022, 7:33 p.m. OK PyPy 3-64 TESTS 5 61 1843200
175485588 Sam_Jiang A Oct. 11, 2022, 12:24 a.m. OK PyPy 3-64 TESTS 5 62 2252800
175489758 Utkarshg001 A Oct. 11, 2022, 2:06 a.m. OK PyPy 3-64 TESTS 6 62 2560000
175448665 abineth A Oct. 10, 2022, 5:32 p.m. OK PyPy 3-64 TESTS 5 62 3379200
175503378 hitthheerree A Oct. 11, 2022, 5:51 a.m. OK PyPy 3-64 TESTS 6 77 2355200
175464898 noobsatish A Oct. 10, 2022, 8:29 p.m. OK PyPy 3-64 TESTS 5 77 2662400
175495513 amogh17009 A Oct. 11, 2022, 3:54 a.m. OK PyPy 3-64 TESTS 6 77 3072000
175487131 FazeCT A Oct. 11, 2022, 1:09 a.m. OK PyPy 3-64 TESTS 5 77 3379200
175497855 OLOGY A Oct. 11, 2022, 4:36 a.m. OK Python 2 TESTS 6 46 0
175465427 hp685 A Oct. 10, 2022, 8:38 p.m. OK Python 2 TESTS 5 62 102400
175497688 hpnq A Oct. 11, 2022, 4:33 a.m. OK Python 3 TESTS 6 31 0
175485433 cr7ro A Oct. 11, 2022, 12:20 a.m. OK Python 3 TESTS 5 31 0
175485043 happywater A Oct. 11, 2022, 12:07 a.m. OK Python 3 TESTS 5 31 0
175483772 milimurmu1995 A Oct. 10, 2022, 11:25 p.m. OK Python 3 TESTS 5 31 0
175466923 Priyaranjan_Khan A Oct. 10, 2022, 9:02 p.m. OK Python 3 TESTS 5 31 0
175456335 suraj_kp_79 A Oct. 10, 2022, 6:39 p.m. OK Python 3 TESTS 5 31 0
175454806 Smit267 A Oct. 10, 2022, 6:23 p.m. OK Python 3 TESTS 5 31 0
175453928 siddharth4158 A Oct. 10, 2022, 6:16 p.m. OK Python 3 TESTS 5 31 0
175452829 Fox1993 A Oct. 10, 2022, 6:06 p.m. OK Python 3 TESTS 5 31 0
175449289 sayam241020 A Oct. 10, 2022, 5:36 p.m. OK Python 3 TESTS 5 31 0
175463232 avnyu A Oct. 10, 2022, 8:04 p.m. OK Rust 2021 TESTS 5 0 1638400
175499060 aadi58002 A Oct. 11, 2022, 4:54 a.m. OK Rust 2021 TESTS 6 15 102400

remove filters

Back to search problems