Educational Codeforces Round 155 (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
1879 Educational Codeforces Round 155 (Rated for Div. 2) FINISHED False 7200 41613863 Sept. 24, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 23029 ) B Chips on the Board PROGRAMMING constructive algorithms greedy 900

B"You are given a board of size n x n ( n rows and n colums) and two arrays of positive integers a and b of size n . Your task is to place the chips on this board so that the following condition is satisfied for every cell (i, j) : The cost of putting a chip in the cell (i, j) is equal to a_i + b_j . For example, for n=3 , a=[1, 4, 1] and b=[3, 2, 2] . One of the possible chip placements is as follows: The total cost of that placement is (1+3) + (1+2) + (1+2) = 10 . Calculate the minimum possible total cost of putting chips according to the rules above. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The first line of each test case contains a single integer n ( 1 <= n <= 3 cdot 10^5 ). The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^9 ). The third line contains n integers b_1, b_2, ... , b_n ( 1 <= b_i <= 10^9 ). The sum of n over all test cases doesn't exceed 3 cdot 10^5 . For each test case, print a single integer -- the minimum possible total cost of putting chips according to the rules. The first test case of the example is described in the statement. "...

Tutorials

120773

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
224979597 xamperus B Sept. 24, 2023, 4:57 p.m. OK C# 10 TESTS 6 155 62156800 900
225010736 bluemegane B Sept. 24, 2023, 11:07 p.m. OK C# 8 TESTS 10 264 62259200 900
224977781 eastnman B Sept. 24, 2023, 4:49 p.m. OK FPC TESTS 6 186 5017600 900
224980912 pratikr21 B Sept. 24, 2023, 5:04 p.m. OK GNU C11 TESTS 6 139 4812800 900
224987147 prateek1110 B Sept. 24, 2023, 5:46 p.m. OK GNU C11 TESTS 6 140 4812800 900
225021118 ArjoKar11_01 B Sept. 25, 2023, 3:16 a.m. OK GNU C11 TESTS 10 171 0 900
225019920 noob_wang B Sept. 25, 2023, 2:55 a.m. OK GNU C11 TESTS 10 171 4812800 900
224997383 Krypton_Blade B Sept. 24, 2023, 7:19 p.m. OK GNU C11 TESTS 10 171 4812800 900
225022141 ArjoKar11_01 B Sept. 25, 2023, 3:33 a.m. OK GNU C11 TESTS 10 187 4812800 900
225031466 masifk B Sept. 25, 2023, 5:52 a.m. OK GNU C11 TESTS 10 187 4812800 900
225002449 sm-sohel B Sept. 24, 2023, 8:23 p.m. OK GNU C11 TESTS 10 202 4812800 900
224980417 Nakshatra07 B Sept. 24, 2023, 5:01 p.m. OK GNU C11 TESTS 6 249 4812800 900
225013813 Leasier B Sept. 25, 2023, 12:41 a.m. OK GNU C++14 TESTS 10 124 2355200 900
225017435 zzfzzfzzfs B Sept. 25, 2023, 2:07 a.m. OK GNU C++14 TESTS 10 140 2457600 900
225004584 GradZ002 B Sept. 24, 2023, 8:54 p.m. OK GNU C++14 TESTS 10 155 2355200 900
225020944 Iscream01 B Sept. 25, 2023, 3:13 a.m. OK GNU C++14 TESTS 10 156 16076800 900
225013669 huanghongye B Sept. 25, 2023, 12:37 a.m. OK GNU C++14 TESTS 10 171 0 900
225005061 omeganot B Sept. 24, 2023, 9:02 p.m. OK GNU C++14 TESTS 10 171 0 900
224988227 Llop B Sept. 24, 2023, 5:54 p.m. OK GNU C++14 TESTS 6 171 4812800 900
224986888 janvi119 B Sept. 24, 2023, 5:44 p.m. OK GNU C++14 TESTS 6 171 4812800 900
225019688 Keith.6 B Sept. 25, 2023, 2:51 a.m. OK GNU C++14 TESTS 10 171 16076800 900
224977010 cleanup B Sept. 24, 2023, 4:46 p.m. OK GNU C++14 TESTS 6 186 0 900
224985205 CSHwang B Sept. 24, 2023, 5:31 p.m. OK GNU C++17 TESTS 6 155 2457600 900
225018987 HaPpY1213 B Sept. 25, 2023, 2:38 a.m. OK GNU C++17 TESTS 10 156 2457600 900
225014520 lamp_ B Sept. 25, 2023, 1 a.m. OK GNU C++17 TESTS 10 156 4812800 900
225020832 govind9532pandey B Sept. 25, 2023, 3:11 a.m. OK GNU C++17 TESTS 10 156 4915200 900
224982487 jeevanbabu B Sept. 24, 2023, 5:13 p.m. OK GNU C++17 TESTS 6 171 0 900
225025071 15H B Sept. 25, 2023, 4:24 a.m. OK GNU C++17 TESTS 10 171 0 900
224979343 Ismail_Alrifai B Sept. 24, 2023, 4:56 p.m. OK GNU C++17 TESTS 6 171 0 900
224985029 Mradul_22 B Sept. 24, 2023, 5:30 p.m. OK GNU C++17 TESTS 6 171 0 900
225017636 Rainbow_jzy B Sept. 25, 2023, 2:12 a.m. OK GNU C++17 TESTS 10 171 2355200 900
225015392 fakecharlyssj B Sept. 25, 2023, 1:20 a.m. OK GNU C++17 TESTS 10 171 2355200 900
225009034 _Al1bi_ B Sept. 24, 2023, 10:21 p.m. OK GNU C++17 (64) TESTS 10 108 0 900
224981638 12345_23 B Sept. 24, 2023, 5:08 p.m. OK GNU C++17 (64) TESTS 6 108 2355200 900
225016279 Sy_03 B Sept. 25, 2023, 1:42 a.m. OK GNU C++17 (64) TESTS 10 108 2457600 900
224979966 s_h_e_p_l B Sept. 24, 2023, 4:59 p.m. OK GNU C++17 (64) TESTS 6 108 3174400 900
224974751 takeyeldean B Sept. 24, 2023, 4:38 p.m. OK GNU C++17 (64) TESTS 6 108 4812800 900
224989079 1KgChawal B Sept. 24, 2023, 6:01 p.m. OK GNU C++17 (64) TESTS 6 108 4812800 900
224993255 fclvbfm934 B Sept. 24, 2023, 6:36 p.m. OK GNU C++17 (64) TESTS 10 108 4812800 900
224999489 Pepper_yzy B Sept. 24, 2023, 7:45 p.m. OK GNU C++17 (64) TESTS 10 108 4812800 900
225006600 imbacc B Sept. 24, 2023, 9:30 p.m. OK GNU C++17 (64) TESTS 10 108 4812800 900
225021962 KRISH_FOUSC B Sept. 25, 2023, 3:30 a.m. OK GNU C++17 (64) TESTS 10 108 6451200 900
225014192 cmk666 B Sept. 25, 2023, 12:51 a.m. OK GNU C++20 (64) TESTS 10 30 2867200 900
224986062 _srihari_ B Sept. 24, 2023, 5:38 p.m. OK GNU C++20 (64) TESTS 6 77 0 900
224986106 Ber0Silk B Sept. 24, 2023, 5:38 p.m. OK GNU C++20 (64) TESTS 6 77 0 900
224980474 kiranraj.kkb B Sept. 24, 2023, 5:02 p.m. OK GNU C++20 (64) TESTS 6 77 2355200 900
225001291 valavshonok B Sept. 24, 2023, 8:08 p.m. OK GNU C++20 (64) TESTS 10 77 2457600 900
224982662 khadijasheikh008 B Sept. 24, 2023, 5:14 p.m. OK GNU C++20 (64) TESTS 6 77 4812800 900
224980210 AoMas17 B Sept. 24, 2023, 5 p.m. OK GNU C++20 (64) TESTS 6 77 4812800 900
224975943 Nilesh_ B Sept. 24, 2023, 4:42 p.m. OK GNU C++20 (64) TESTS 6 77 4812800 900
224981327 andrewns B Sept. 24, 2023, 5:06 p.m. OK GNU C++20 (64) TESTS 6 77 16076800 900
225028620 CCSU_YZT B Sept. 25, 2023, 5:16 a.m. OK GNU C++20 (64) TESTS 10 78 0 900
224982811 Kashiwa B Sept. 24, 2023, 5:15 p.m. OK Go TESTS 6 295 4710400 900
224980560 Kashiwa B Sept. 24, 2023, 5:02 p.m. OK Go TESTS 6 312 10956800 900
225018322 TCchen B Sept. 25, 2023, 2:26 a.m. OK Java 11 TESTS 10 295 8908800 900
224996316 creativegiant B Sept. 24, 2023, 7:08 p.m. OK Java 11 TESTS 10 483 31436800 900
224999019 yvedryno B Sept. 24, 2023, 7:39 p.m. OK Java 11 TESTS 10 623 61235200 900
224974883 Omar.Asaad B Sept. 24, 2023, 4:38 p.m. OK Java 11 TESTS 6 966 0 900
225012368 man-ray B Sept. 25, 2023, 12:02 a.m. OK Java 11 TESTS 10 1013 0 900
225019200 Uncle_Eddie B Sept. 25, 2023, 2:42 a.m. OK Java 11 TESTS 10 1013 0 900
225015449 TricklingSpring B Sept. 25, 2023, 1:22 a.m. OK Java 11 TESTS 10 1013 0 900
225015014 wdjuruo B Sept. 25, 2023, 1:12 a.m. OK Java 11 TESTS 10 1060 0 900
224993920 Sachin33 B Sept. 24, 2023, 6:42 p.m. OK Java 11 TESTS 10 1060 0 900
224995973 arunnpandey B Sept. 24, 2023, 7:03 p.m. OK Java 11 TESTS 10 1107 0 900
225031791 rajr86642 B Sept. 25, 2023, 5:56 a.m. OK Java 17 TESTS 10 233 10137600 900
224981358 dan00ile B Sept. 24, 2023, 5:06 p.m. OK Java 17 TESTS 6 326 10035200 900
224978256 0kie10 B Sept. 24, 2023, 4:51 p.m. OK Java 17 TESTS 6 343 14848000 900
224987818 Wasilewski B Sept. 24, 2023, 5:51 p.m. OK Java 17 TESTS 6 343 15462400 900
224976652 sajid5ts B Sept. 24, 2023, 4:44 p.m. OK Java 17 TESTS 6 358 10547200 900
224979314 Suraj1607 B Sept. 24, 2023, 4:56 p.m. OK Java 17 TESTS 6 358 19353600 900
225010763 Youssef1Shawky B Sept. 24, 2023, 11:07 p.m. OK Java 17 TESTS 10 389 14950400 900
225005090 TheLastDanceCoder B Sept. 24, 2023, 9:03 p.m. OK Java 17 TESTS 10 389 14950400 900
224979123 0kie10 B Sept. 24, 2023, 4:55 p.m. OK Java 17 TESTS 6 390 14336000 900
224979606 ahmed.elbakly B Sept. 24, 2023, 4:57 p.m. OK Java 17 TESTS 6 390 17203200 900
224977504 ADiTYa1914 B Sept. 24, 2023, 4:48 p.m. OK Java 21 TESTS 6 358 13721600 900
224977678 0kie10 B Sept. 24, 2023, 4:48 p.m. OK Java 21 TESTS 6 358 13824000 900
225023596 goalboy B Sept. 25, 2023, 3:58 a.m. OK Java 21 TESTS 10 1262 0 900
224991112 coding_octopus B Sept. 24, 2023, 6:17 p.m. OK Java 21 TESTS 10 1294 0 900
225013521 r2k B Sept. 25, 2023, 12:33 a.m. OK Java 21 TESTS 10 1310 0 900
224989155 Akarsh2810 B Sept. 24, 2023, 6:02 p.m. OK Java 8 TESTS 6 234 22835200 900
224984511 vrishabshetty B Sept. 24, 2023, 5:26 p.m. OK Java 8 TESTS 6 280 28467200 900
224991450 Koka B Sept. 24, 2023, 6:20 p.m. OK Java 8 TESTS 10 530 38604800 900
225010666 chiragkumar.patel B Sept. 24, 2023, 11:05 p.m. OK Java 8 TESTS 10 779 47411200 900
225010812 chiragkumar.patel B Sept. 24, 2023, 11:10 p.m. OK Java 8 TESTS 10 795 47411200 900
225010894 chiragkumar.patel B Sept. 24, 2023, 11:12 p.m. OK Java 8 TESTS 10 810 47411200 900
224991179 ravi_prakash29 B Sept. 24, 2023, 6:18 p.m. OK Java 8 TESTS 10 935 0 900
224998745 Sumitsingh7 B Sept. 24, 2023, 7:36 p.m. OK Java 8 TESTS 10 998 1536000 900
224984696 Uolken B Sept. 24, 2023, 5:28 p.m. OK Kotlin 1.7 TESTS 6 919 137728000 900
224982353 juustpush1 B Sept. 24, 2023, 5:12 p.m. OK MS C++ 2017 TESTS 6 546 4812800 900
225025570 n.n.n.kz B Sept. 25, 2023, 4:33 a.m. OK PHP TESTS 10 109 75673600 900
224989217 HelloImLearning B Sept. 24, 2023, 6:02 p.m. OK PyPy 3 TESTS 6 623 26521600 900
224976111 Vikas726 B Sept. 24, 2023, 4:42 p.m. OK PyPy 3 TESTS 6 639 29491200 900
224975550 DRDIV B Sept. 24, 2023, 4:40 p.m. OK PyPy 3 TESTS 6 655 29286400 900
224987873 jvatsal0709 B Sept. 24, 2023, 5:52 p.m. OK PyPy 3 TESTS 6 670 28569600 900
224979061 CosecSecCot B Sept. 24, 2023, 4:55 p.m. OK PyPy 3 TESTS 6 670 30310400 900
224976298 iedfa B Sept. 24, 2023, 4:43 p.m. OK PyPy 3 TESTS 6 685 29593600 900
224975720 Vikas726 B Sept. 24, 2023, 4:41 p.m. OK PyPy 3 TESTS 6 748 29593600 900
224974857 Vikas726 B Sept. 24, 2023, 4:38 p.m. OK PyPy 3 TESTS 6 826 29388800 900
224994534 momenelmesady4803 B Sept. 24, 2023, 6:48 p.m. OK PyPy 3 TESTS 10 935 29696000 900
225000615 oneku16 B Sept. 24, 2023, 7:59 p.m. OK PyPy 3-64 TESTS 10 187 49561600 900
224993683 2020A7PS0273H_Sriram_S B Sept. 24, 2023, 6:40 p.m. OK PyPy 3-64 TESTS 10 202 54784000 900
224977247 sleepingonee B Sept. 24, 2023, 4:47 p.m. OK PyPy 3-64 TESTS 6 217 47923200 900
224984894 Exyon75 B Sept. 24, 2023, 5:29 p.m. OK PyPy 3-64 TESTS 6 217 54374400 900
224987366 gardengnome B Sept. 24, 2023, 5:48 p.m. OK PyPy 3-64 TESTS 6 218 53862400 900
224985150 Exyon75 B Sept. 24, 2023, 5:31 p.m. OK PyPy 3-64 TESTS 6 249 54374400 900
225020024 vicious_vile B Sept. 25, 2023, 2:57 a.m. OK PyPy 3-64 TESTS 10 280 52940800 900
225009832 DeepJ B Sept. 24, 2023, 10:41 p.m. OK PyPy 3-64 TESTS 10 296 51507200 900
224981773 npoofSonSon B Sept. 24, 2023, 5:08 p.m. OK PyPy 3-64 TESTS 6 327 50688000 900
224990211 adityajain.211657 B Sept. 24, 2023, 6:10 p.m. OK PyPy 3-64 TESTS 6 358 53862400 900
224984839 Exyon75 B Sept. 24, 2023, 5:29 p.m. OK Python 3 TESTS 6 248 51200000 900
224978370 MdNazmulHossain B Sept. 24, 2023, 4:51 p.m. OK Python 3 TESTS 6 248 51200000 900
224989150 vishnu_sathwik B Sept. 24, 2023, 6:02 p.m. OK Python 3 TESTS 6 249 50892800 900
224980851 maruf_khan96 B Sept. 24, 2023, 5:03 p.m. OK Python 3 TESTS 6 249 50892800 900
225030804 kulwantraj1997 B Sept. 25, 2023, 5:43 a.m. OK Python 3 TESTS 10 249 51404800 900
225009559 aherzallah32 B Sept. 24, 2023, 10:34 p.m. OK Python 3 TESTS 10 249 51404800 900
224991392 IngaleAnkur10 B Sept. 24, 2023, 6:20 p.m. OK Python 3 TESTS 10 249 51404800 900
224977130 daszybak B Sept. 24, 2023, 4:46 p.m. OK Python 3 TESTS 6 249 52019200 900
224984947 DAYS_of_DASH B Sept. 24, 2023, 5:29 p.m. OK Python 3 TESTS 6 249 52633600 900
225005268 aman_cold B Sept. 24, 2023, 9:06 p.m. OK Python 3 TESTS 10 264 51404800 900
224998361 0x81 B Sept. 24, 2023, 7:31 p.m. OK Ruby 3 TESTS 10 950 33587200 900

remove filters

Back to search problems