Educational Codeforces Round 134 (Rated for 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
1721 Educational Codeforces Round 134 (Rated for Div. 2) FINISHED False 7200 75655462 Aug. 27, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6824 ) D Maximum AND PROGRAMMING bitmasks brute force divide and conquer greedy math sortings

B"You are given two arrays a and b , consisting of n integers each. Let's define a function f(a, b) as follows: Find the maximum value of the function f(a, b) if you can reorder the array b in an arbitrary way (leaving the initial order is also an option). The first line contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The first line of each test case contains one integer n ( 1 <= n <= 10^5 ) -- the size of arrays a and b . The second line contains n integers a_1, a_2, ... , a_n ( 0 <= a_i < 2^{30} ). The third line contains n integers b_1, b_2, ... , b_n ( 0 <= b_i < 2^{30} ). The sum of n over all test cases does not exceed 10^5 . For each test case print one integer -- the maximum value of the function f(a, b) if you can reorder the array b in an arbitrary way. "...

Tutorials

106416

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
169897433 mldl D Aug. 27, 2022, 5:11 p.m. OK GNU C11 TESTS 16 77 26828800
169908428 alkido D Aug. 27, 2022, 6:59 p.m. OK GNU C++14 TESTS 16 93 819200
169917558 Alche_mist D Aug. 27, 2022, 9:44 p.m. OK GNU C++14 TESTS 16 93 2252800
169893838 Momiji D Aug. 27, 2022, 4:48 p.m. OK GNU C++14 TESTS 16 109 65331200
169889480 LinkWish D Aug. 27, 2022, 4:33 p.m. OK GNU C++14 TESTS 16 124 4300800
169894408 mldl D Aug. 27, 2022, 4:51 p.m. OK GNU C++14 TESTS 16 124 27648000
169887828 wang_yue_xi D Aug. 27, 2022, 4:30 p.m. OK GNU C++14 TESTS 16 140 819200
169923393 AKBug D Aug. 28, 2022, 12:55 a.m. OK GNU C++14 TESTS 16 140 3686400
169890986 mldl D Aug. 27, 2022, 4:36 p.m. OK GNU C++14 TESTS 16 140 27648000
169923044 Daniel_Liuyang D Aug. 28, 2022, 12:44 a.m. OK GNU C++14 TESTS 16 156 6451200
169937209 1AK101 D Aug. 28, 2022, 5:35 a.m. OK GNU C++14 TESTS 16 156 10240000
169901837 Bobocan D Aug. 27, 2022, 5:48 p.m. OK GNU C++17 TESTS 16 78 2969600
169901501 Bobocan D Aug. 27, 2022, 5:45 p.m. OK GNU C++17 TESTS 16 78 3481600
169929180 k1671k D Aug. 28, 2022, 3:01 a.m. OK GNU C++17 TESTS 16 78 3686400
169926409 kk19212 D Aug. 28, 2022, 2:07 a.m. OK GNU C++17 TESTS 16 78 9830400
169894894 Totoro_ D Aug. 27, 2022, 4:54 p.m. OK GNU C++17 TESTS 16 78 16998400
169929743 jaarviss D Aug. 28, 2022, 3:12 a.m. OK GNU C++17 TESTS 16 93 1945600
169900706 withinlover D Aug. 27, 2022, 5:38 p.m. OK GNU C++17 TESTS 16 93 2457600
169932470 1287971889 D Aug. 28, 2022, 4:10 a.m. OK GNU C++17 TESTS 16 93 2764800
169928610 bkifhr10 D Aug. 28, 2022, 2:52 a.m. OK GNU C++17 TESTS 16 93 3584000
169889582 knon0501 D Aug. 27, 2022, 4:33 p.m. OK GNU C++17 TESTS 16 93 3993600
169913815 Alexeyka20x D Aug. 27, 2022, 8:26 p.m. OK GNU C++17 (64) TESTS 16 62 4300800
169931020 zhaoyiping D Aug. 28, 2022, 3:39 a.m. OK GNU C++17 (64) TESTS 16 77 4710400
169930121 KazamaHoang D Aug. 28, 2022, 3:19 a.m. OK GNU C++17 (64) TESTS 16 78 2457600
169923347 gyouzasushi D Aug. 28, 2022, 12:53 a.m. OK GNU C++17 (64) TESTS 16 93 1843200
169923273 gyouzasushi D Aug. 28, 2022, 12:51 a.m. OK GNU C++17 (64) TESTS 16 109 819200
169910667 pseuda D Aug. 27, 2022, 7:32 p.m. OK GNU C++17 (64) TESTS 16 124 5836800
169909162 mrsac7 D Aug. 27, 2022, 7:09 p.m. OK GNU C++17 (64) TESTS 16 140 33177600
169937227 pavankalyanpallapolu D Aug. 28, 2022, 5:35 a.m. OK GNU C++17 (64) TESTS 16 249 819200
169924036 Raven7959 D Aug. 28, 2022, 1:17 a.m. OK GNU C++17 (64) TESTS 16 249 819200
169893549 VegeDog D Aug. 27, 2022, 4:47 p.m. OK GNU C++17 (64) TESTS 16 249 1638400
169915408 Tutis D Aug. 27, 2022, 8:56 p.m. OK GNU C++20 (64) TESTS 16 46 1331200
169915794 Tutis D Aug. 27, 2022, 9:04 p.m. OK GNU C++20 (64) TESTS 16 46 1843200
169910770 jay_jayjay D Aug. 27, 2022, 7:34 p.m. OK GNU C++20 (64) TESTS 16 46 7065600
169897258 NeutrO.onstr D Aug. 27, 2022, 5:09 p.m. OK GNU C++20 (64) TESTS 16 62 1843200
169914759 JacobianDet D Aug. 27, 2022, 8:43 p.m. OK GNU C++20 (64) TESTS 16 62 4812800
169892394 spongebobsquareroot D Aug. 27, 2022, 4:41 p.m. OK GNU C++20 (64) TESTS 16 62 8089600
169886984 Ststone1687 D Aug. 27, 2022, 4:29 p.m. OK GNU C++20 (64) TESTS 16 62 9318400
169907177 andreyDagger D Aug. 27, 2022, 6:43 p.m. OK GNU C++20 (64) TESTS 16 78 4198400
169937691 vipjml D Aug. 28, 2022, 5:42 a.m. OK GNU C++20 (64) TESTS 16 78 4198400
169911205 lite_27 D Aug. 27, 2022, 7:41 p.m. OK GNU C++20 (64) TESTS 16 78 4812800
169930486 koqo D Aug. 28, 2022, 3:27 a.m. OK Go TESTS 16 499 12083200
169899606 pepelats D Aug. 27, 2022, 5:28 p.m. OK Java 11 TESTS 16 514 2048000
169930864 aditya2024 D Aug. 28, 2022, 3:35 a.m. OK Java 11 TESTS 16 1512 15564800
169900012 dunkingdonuts D Aug. 27, 2022, 5:32 p.m. OK Java 11 TESTS 16 2480 73420800
169926791 kkz666 D Aug. 28, 2022, 2:15 a.m. OK Java 17 TESTS 16 514 1331200
169920915 Mamimi D Aug. 27, 2022, 11:28 p.m. OK Java 17 TESTS 16 2433 73011200
169923665 Sussykin D Aug. 28, 2022, 1:04 a.m. OK Java 8 TESTS 16 592 0
169910746 leoncn D Aug. 27, 2022, 7:33 p.m. OK Java 8 TESTS 16 826 6144000
169897266 cftauros D Aug. 27, 2022, 5:10 p.m. OK Java 8 TESTS 16 873 156160000
169931899 anonxx5 D Aug. 28, 2022, 3:58 a.m. OK Java 8 TESTS 16 1294 6860800
169888070 The_terminator D Aug. 27, 2022, 4:31 p.m. OK Java 8 TESTS 16 1513 0
169908212 UniversalAdmin D Aug. 27, 2022, 6:56 p.m. OK Java 8 TESTS 16 1559 43520000
169920318 Kharouba D Aug. 27, 2022, 11:06 p.m. OK Java 8 TESTS 16 1575 157696000
169897893 naitikvarshney D Aug. 27, 2022, 5:14 p.m. OK Java 8 TESTS 16 1606 25702400
169900284 megaspazz D Aug. 27, 2022, 5:34 p.m. OK Java 8 TESTS 16 1793 39424000
169903477 NerfThis D Aug. 27, 2022, 6:04 p.m. OK Java 8 TESTS 16 1903 67584000
169920120 arvindf232 D Aug. 27, 2022, 11 p.m. OK Kotlin 1.6 TESTS 16 2698 4096000
169905466 misaka12435 D Aug. 27, 2022, 6:24 p.m. OK MS C++ 2017 TESTS 16 592 90112000
169913499 gkukanov D Aug. 27, 2022, 8:20 p.m. OK MS C++ 2017 TESTS 16 748 1638400
169899403 ItsNikolor D Aug. 27, 2022, 5:27 p.m. OK MS C++ 2017 TESTS 16 763 8396800
169896720 30SK5 D Aug. 27, 2022, 5:06 p.m. OK MS C++ 2017 TESTS 16 2666 232652800
169895466 1_2_3_4_5_9 D Aug. 27, 2022, 4:57 p.m. OK PyPy 2 TESTS 16 920 25395200
169902207 abhijeet.panihar.cse20 D Aug. 27, 2022, 5:51 p.m. OK PyPy 3 TESTS 16 1231 213811200
169909090 shehebe D Aug. 27, 2022, 7:08 p.m. OK PyPy 3 TESTS 16 1372 57446400
169895368 Beacon D Aug. 27, 2022, 4:57 p.m. OK PyPy 3 TESTS 16 1716 68608000
169912424 HETRAKESHFADIA D Aug. 27, 2022, 8:01 p.m. OK PyPy 3 TESTS 16 2230 114892800
169905877 SoleProprietor D Aug. 27, 2022, 6:28 p.m. OK PyPy 3-64 TESTS 16 327 21913600
169928984 dougn711 D Aug. 28, 2022, 2:58 a.m. OK PyPy 3-64 TESTS 16 639 52736000
169935142 lighterman D Aug. 28, 2022, 5:05 a.m. OK PyPy 3-64 TESTS 16 889 54784000
169892267 Aksnov D Aug. 27, 2022, 4:41 p.m. OK PyPy 3-64 TESTS 16 982 104448000
169897405 SophieHatter D Aug. 27, 2022, 5:10 p.m. OK PyPy 3-64 TESTS 16 1044 29696000
169927521 ikoma D Aug. 28, 2022, 2:30 a.m. OK PyPy 3-64 TESTS 16 1107 115097600
169932180 Matthew0730 D Aug. 28, 2022, 4:04 a.m. OK PyPy 3-64 TESTS 16 1122 23040000
169909637 val04 D Aug. 27, 2022, 7:16 p.m. OK PyPy 3-64 TESTS 16 1138 23244800
169917181 dalgu D Aug. 27, 2022, 9:35 p.m. OK PyPy 3-64 TESTS 16 1138 23756800
169887977 huikang D Aug. 27, 2022, 4:30 p.m. OK PyPy 3-64 TESTS 16 1294 29286400
169929320 yujt123 D Aug. 28, 2022, 3:03 a.m. OK Python 3 TESTS 16 2417 16588800
169910079 r57shell D Aug. 27, 2022, 7:23 p.m. OK Python 3 TESTS 16 2464 10547200
169897703 magnus.hegdahl D Aug. 27, 2022, 5:13 p.m. OK Rust 2021 TESTS 16 62 1228800
169893947 kena0ki D Aug. 27, 2022, 4:49 p.m. OK Rust 2021 TESTS 16 109 5222400
169919375 ArchUser84 D Aug. 27, 2022, 10:37 p.m. OK Rust 2021 TESTS 16 373 33382400
169893132 Niklassanden D Aug. 27, 2022, 4:45 p.m. OK Rust 2021 TESTS 16 373 36352000
169892988 Niklassanden D Aug. 27, 2022, 4:44 p.m. OK Rust 2021 TESTS 16 420 37376000

remove filters

Back to search problems