Codeforces Round 664 (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
1395 Codeforces Round 664 (Div. 2) FINISHED False 7200 134580299 Aug. 12, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14198 ) C Boboniu and Bit Operations PROGRAMMING bitmasks brute force dp 1600

B"Boboniu likes bit operations. He wants to play a game with you. Boboniu gives you two sequences of non-negative integers a_1,a_2, ldots,a_n and b_1,b_2, ldots,b_m . For each i ( 1 <= i <= n ), you're asked to choose a j ( 1 <= j <= m ) and let c_i=a_i & b_j , where & denotes the bitwise AND operation. Note that you can pick the same j for different i 's. Find the minimum possible c_1 | c_2 | ldots | c_n , where | denotes the bitwise OR operation. The first line contains two integers n and m ( 1 <= n,m <= 200 ). The next line contains n integers a_1,a_2, ldots,a_n ( 0 <= a_i < 2^9 ). The next line contains m integers b_1,b_2, ldots,b_m ( 0 <= b_i < 2^9 ). Print one integer: the minimum possible c_1 | c_2 | ldots | c_n . For the first example, we have c_1=a_1 & b_2=0 , c_2=a_2 & b_1=2 , c_3=a_3 & b_1=0 , c_4 = a_4 & b_1=0 .Thus c_1 | c_2 | c_3 |c_4 =2 , and this is the minimal answer we can get. "...

Tutorials

Codeforces Round #664 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
89842834 syawl-1017 C Aug. 14, 2020, 5:20 a.m. OK Clang++17 Diagnostics TESTS 33 46 0 1600
90038036 wlshih C Aug. 15, 2020, 5:35 p.m. OK Clang++17 Diagnostics TESTS 33 62 0 1600
90502631 Vicfred C Aug. 21, 2020, 2:22 a.m. OK D TESTS 33 62 4710400 1600
91668897 Mohamed_abd_elmonem C Sept. 2, 2020, 6:54 p.m. OK GNU C11 TESTS 33 670 0 1600
89828149 lesswrong C Aug. 13, 2020, 9:24 p.m. OK GNU C++11 TESTS 33 15 0 1600
89824391 ocean3 C Aug. 13, 2020, 7:39 p.m. OK GNU C++11 TESTS 33 15 0 1600
91625909 Youth518 C Sept. 2, 2020, 8:53 a.m. OK GNU C++11 TESTS 33 15 0 1600
91178802 Imakf C Aug. 28, 2020, 4:32 a.m. OK GNU C++11 TESTS 33 15 0 1600
90240227 deeptisingh956 C Aug. 17, 2020, 3:01 p.m. OK GNU C++11 TESTS 33 15 0 1600
90044605 whoisthat C Aug. 15, 2020, 8:09 p.m. OK GNU C++11 TESTS 33 15 0 1600
89838673 Tommy0103 C Aug. 14, 2020, 3:44 a.m. OK GNU C++11 TESTS 33 15 204800 1600
89845132 Alex3102 C Aug. 14, 2020, 6:03 a.m. OK GNU C++11 TESTS 33 15 204800 1600
89838719 Hyacinths C Aug. 14, 2020, 3:46 a.m. OK GNU C++11 TESTS 33 15 409600 1600
90008305 zhouc C Aug. 15, 2020, 10:01 a.m. OK GNU C++11 TESTS 33 15 819200 1600
89851263 Autron C Aug. 14, 2020, 7:40 a.m. OK GNU C++14 TESTS 33 30 0 1600
90355738 snest21 C Aug. 19, 2020, 4:06 a.m. OK GNU C++14 TESTS 33 30 0 1600
89923111 tj-black C Aug. 14, 2020, 3:24 p.m. OK GNU C++14 TESTS 33 30 102400 1600
91677902 RKNO C Sept. 2, 2020, 11:16 p.m. OK GNU C++14 TESTS 33 31 0 1600
91670768 bawkarmanish14 C Sept. 2, 2020, 7:30 p.m. OK GNU C++14 TESTS 33 31 0 1600
91658899 adzo261 C Sept. 2, 2020, 4:24 p.m. OK GNU C++14 TESTS 33 31 0 1600
91707723 123vivekverma C Sept. 3, 2020, 10:22 a.m. OK GNU C++14 TESTS 33 31 0 1600
91601600 MEGA-MIND C Sept. 1, 2020, 10:27 p.m. OK GNU C++14 TESTS 33 31 0 1600
91601594 vjudge5 C Sept. 1, 2020, 10:27 p.m. OK GNU C++14 TESTS 33 31 0 1600
91645527 Jatin11077 C Sept. 2, 2020, 1:41 p.m. OK GNU C++14 TESTS 33 31 0 1600
90083722 Rishabh.Jain C Aug. 16, 2020, 1:07 p.m. OK GNU C++17 TESTS 33 30 0 1600
91583468 lostmartian001 C Sept. 1, 2020, 4:19 p.m. OK GNU C++17 TESTS 33 30 0 1600
90848077 Rhytham4 C Aug. 24, 2020, 5:19 p.m. OK GNU C++17 TESTS 33 30 0 1600
90002810 dsoni351 C Aug. 15, 2020, 8:45 a.m. OK GNU C++17 TESTS 33 30 0 1600
89878230 maffeiaocontrario C Aug. 14, 2020, 2:29 p.m. OK GNU C++17 TESTS 33 30 0 1600
89980877 mumumu C Aug. 15, 2020, 2:23 a.m. OK GNU C++17 TESTS 33 30 102400 1600
90446992 gurpreetsingh.be C Aug. 20, 2020, 8:41 a.m. OK GNU C++17 TESTS 33 30 204800 1600
90015881 vjudge2 C Aug. 15, 2020, 11:53 a.m. OK GNU C++17 TESTS 33 30 409600 1600
90004647 paulica C Aug. 15, 2020, 9:09 a.m. OK GNU C++17 TESTS 33 30 409600 1600
91697705 devil_within C Sept. 3, 2020, 7:49 a.m. OK GNU C++17 TESTS 33 31 0 1600
91150490 uruuru8888 C Aug. 27, 2020, 4:10 p.m. OK GNU C++17 (64) TESTS 33 30 0 1600
90454912 SSYernar C Aug. 20, 2020, 10:44 a.m. OK GNU C++17 (64) TESTS 33 30 0 1600
90285437 vjudge2 C Aug. 18, 2020, 7:22 a.m. OK GNU C++17 (64) TESTS 33 30 0 1600
90040112 agarwala2512 C Aug. 15, 2020, 6:18 p.m. OK GNU C++17 (64) TESTS 33 30 0 1600
90505581 soymilk C Aug. 21, 2020, 4:59 a.m. OK GNU C++17 (64) TESTS 33 30 4608000 1600
91612498 tazim5032 C Sept. 2, 2020, 5:10 a.m. OK GNU C++17 (64) TESTS 33 31 0 1600
91621650 himeros C Sept. 2, 2020, 7:44 a.m. OK GNU C++17 (64) TESTS 33 31 0 1600
91605331 aarav.cube C Sept. 2, 2020, 1:41 a.m. OK GNU C++17 (64) TESTS 33 31 0 1600
91560874 _tarek007 C Sept. 1, 2020, 11:35 a.m. OK GNU C++17 (64) TESTS 33 31 0 1600
91263692 shelby537 C Aug. 29, 2020, 7:13 a.m. OK GNU C++17 (64) TESTS 33 31 0 1600
89856789 RetiredProgrammer C Aug. 14, 2020, 9:09 a.m. OK Go TESTS 33 265 0 1600
91251860 PizzaLovers007 C Aug. 29, 2020, 2:44 a.m. OK Java 11 TESTS 33 171 0 1600
90337317 PratyushS7 C Aug. 18, 2020, 6:33 p.m. OK Java 11 TESTS 33 171 0 1600
89965594 vasanthmaharshi C Aug. 14, 2020, 6:24 p.m. OK Java 11 TESTS 33 171 0 1600
89874823 777turbo77 C Aug. 14, 2020, 1:38 p.m. OK Java 11 TESTS 33 171 0 1600
89855479 kushwaha_vi C Aug. 14, 2020, 8:48 a.m. OK Java 11 TESTS 33 171 0 1600
90227030 nick_301 C Aug. 17, 2020, 12:23 p.m. OK Java 11 TESTS 33 186 0 1600
91087888 tirtho2107 C Aug. 26, 2020, 7:43 p.m. OK Java 11 TESTS 33 186 0 1600
90436679 vaishnav_firebolt C Aug. 20, 2020, 6:05 a.m. OK Java 11 TESTS 33 186 0 1600
90411045 NS-KAL C Aug. 19, 2020, 5:38 p.m. OK Java 11 TESTS 33 186 0 1600
89857655 Tony0695 C Aug. 14, 2020, 9:23 a.m. OK Java 11 TESTS 33 187 0 1600
91569653 anathema C Sept. 1, 2020, 1:33 p.m. OK Java 8 TESTS 33 109 0 1600
91265275 shojin_pro C Aug. 29, 2020, 7:38 a.m. OK Java 8 TESTS 33 109 0 1600
91186046 aym_05 C Aug. 28, 2020, 6:58 a.m. OK Java 8 TESTS 33 109 0 1600
90284861 __goku__ C Aug. 18, 2020, 7:13 a.m. OK Java 8 TESTS 33 109 0 1600
90064173 Nirav412000 C Aug. 16, 2020, 7:19 a.m. OK Java 8 TESTS 33 109 0 1600
90021320 mr___hacker____ C Aug. 15, 2020, 1:21 p.m. OK Java 8 TESTS 33 109 0 1600
89987292 aya_cool C Aug. 15, 2020, 5:15 a.m. OK Java 8 TESTS 33 109 0 1600
89976648 Mildog C Aug. 14, 2020, 11:10 p.m. OK Java 8 TESTS 33 109 0 1600
89938402 himmi_221 C Aug. 14, 2020, 3:57 p.m. OK Java 8 TESTS 33 109 0 1600
89937918 himanshu775 C Aug. 14, 2020, 3:56 p.m. OK Java 8 TESTS 33 109 0 1600
89840454 Spheniscine C Aug. 14, 2020, 4:29 a.m. OK Kotlin TESTS 33 140 204800 1600
91658057 koper C Sept. 2, 2020, 4:13 p.m. OK Kotlin TESTS 33 670 1331200 1600
91202751 Karamba16 C Aug. 28, 2020, 11:23 a.m. OK Mono C# TESTS 33 62 204800 1600
90056223 AliceNCsyuk C Aug. 16, 2020, 4:30 a.m. OK MS C++ TESTS 33 31 0 1600
90311938 TheSoundOfZero C Aug. 18, 2020, 1:31 p.m. OK MS C++ TESTS 33 46 0 1600
90186658 icecap360 C Aug. 17, 2020, 2:37 a.m. OK MS C++ 2017 TESTS 33 31 0 1600
89942262 prosto_user C Aug. 14, 2020, 4:06 p.m. OK MS C++ 2017 TESTS 33 31 0 1600
89855977 Mad112233 C Aug. 14, 2020, 8:56 a.m. OK MS C++ 2017 TESTS 33 31 0 1600
90362963 CFWudanna C Aug. 19, 2020, 6:27 a.m. OK MS C++ 2017 TESTS 33 31 0 1600
89844284 choyj2012 C Aug. 14, 2020, 5:47 a.m. OK MS C++ 2017 TESTS 33 31 307200 1600
90886420 Explode C Aug. 25, 2020, 9:28 a.m. OK MS C++ 2017 TESTS 33 31 614400 1600
90655551 dixmw34 C Aug. 22, 2020, 5:20 a.m. OK MS C++ 2017 TESTS 33 31 3788800 1600
91144746 scorpiowf C Aug. 27, 2020, 3:08 p.m. OK MS C++ 2017 TESTS 33 46 0 1600
89870215 Alternek C Aug. 14, 2020, 12:30 p.m. OK MS C++ 2017 TESTS 33 46 409600 1600
90532969 544432 C Aug. 21, 2020, 12:54 p.m. OK MS C++ 2017 TESTS 33 46 3788800 1600
89859191 wqt_ C Aug. 14, 2020, 9:48 a.m. OK Node.js TESTS 33 187 1843200 1600
89953085 Darooha C Aug. 14, 2020, 4:32 p.m. OK Ocaml TESTS 33 31 0 1600
90367848 bhuya C Aug. 19, 2020, 7:38 a.m. OK PyPy 2 TESTS 33 93 512000 1600
91556801 yumtam C Sept. 1, 2020, 10:34 a.m. OK PyPy 2 TESTS 33 108 307200 1600
90059475 iamprayush C Aug. 16, 2020, 5:55 a.m. OK PyPy 2 TESTS 33 249 9318400 1600
89860632 tanishqagarwal987 C Aug. 14, 2020, 10:10 a.m. OK PyPy 3 TESTS 33 124 1536000 1600
90461806 slijk C Aug. 20, 2020, 12:28 p.m. OK PyPy 3 TESTS 33 139 1536000 1600
90083163 kyaBantai C Aug. 16, 2020, 12:58 p.m. OK PyPy 3 TESTS 33 139 1536000 1600
91254833 1600-1700 C Aug. 29, 2020, 4:18 a.m. OK PyPy 3 TESTS 33 140 1433600 1600
89842462 moriarty1992 C Aug. 14, 2020, 5:12 a.m. OK PyPy 3 TESTS 33 140 1433600 1600
89828423 YoLoZ C Aug. 13, 2020, 9:34 p.m. OK PyPy 3 TESTS 33 140 1433600 1600
90082082 ps_112 C Aug. 16, 2020, 12:40 p.m. OK PyPy 3 TESTS 33 140 1638400 1600
90329237 aimileus C Aug. 18, 2020, 4:42 p.m. OK PyPy 3 TESTS 33 140 2560000 1600
91350349 Goldsmith94 C Aug. 30, 2020, 2:31 p.m. OK PyPy 3 TESTS 33 140 21708800 1600
90019669 D9RS C Aug. 15, 2020, 12:54 p.m. OK PyPy 3 TESTS 33 155 1331200 1600
89962098 Ayushman_500 C Aug. 14, 2020, 5:38 p.m. OK Python 3 TESTS 33 108 307200 1600
89827290 tom__riddle C Aug. 13, 2020, 8:55 p.m. OK Python 3 TESTS 33 108 307200 1600
89876842 langlang22 C Aug. 14, 2020, 2:08 p.m. OK Python 3 TESTS 33 109 0 1600
89876001 langlang22 C Aug. 14, 2020, 1:56 p.m. OK Python 3 TESTS 33 109 0 1600
89875427 zumin C Aug. 14, 2020, 1:47 p.m. OK Python 3 TESTS 33 109 0 1600
89874499 Player001 C Aug. 14, 2020, 1:33 p.m. OK Python 3 TESTS 33 109 0 1600
89860597 tanishqagarwal987 C Aug. 14, 2020, 10:10 a.m. OK Python 3 TESTS 33 109 0 1600
91116508 harshitha_99 C Aug. 27, 2020, 8:32 a.m. OK Python 3 TESTS 33 109 307200 1600
91116325 Gikinet C Aug. 27, 2020, 8:29 a.m. OK Python 3 TESTS 33 109 307200 1600
90495750 RMILKA C Aug. 20, 2020, 8:56 p.m. OK Python 3 TESTS 33 109 307200 1600
90011049 Strorkis C Aug. 15, 2020, 10:40 a.m. OK Rust TESTS 33 46 0 1600

remove filters

Back to search problems