Educational Codeforces Round 146 (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
1814 Educational Codeforces Round 146 (Rated for Div. 2) FINISHED False 8100 56474663 April 6, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11223 ) C Search in Parallel PROGRAMMING greedy math sortings

B"Suppose you have n boxes. The i -th box contains infinitely many balls of color i . Sometimes you need to get a ball with some specific color; but you're too lazy to do it yourself. You have bought two robots to retrieve the balls for you. Now you have to program them. In order to program the robots, you have to construct two lists [a_1, a_2, ... , a_k] and [b_1, b_2, ... , b_{n-k}] , where the list a represents the boxes assigned to the first robot, and the list b represents the boxes assigned to the second robot. Every integer from 1 to n must be present in exactly one of these lists. When you request a ball with color x , the robots work as follows. Each robot looks through the boxes that were assigned to that robot, in the order they appear in the list. The first robot spends s_1 seconds analyzing the contents of a box; the second robot spends s_2 . As soon as one of the robots finds the box with balls of color x (and analyzes its contents), the search ends. The search time is the number of seconds from the beginning of the search until one of the robots finishes analyzing the contents of the x -th box. If a robot analyzes the contents of all boxes assigned to it, it stops searching. For example, suppose s_1 = 2 , s_2 = 3 , a = [4, 1, 5, 3, 7] , b = [2, 6] . If you request a ball with color 3 , the following happens: You know that you are going to request a ball of color 1 r_1 times, a ball of color 2 r_2 times, and so on. You want to construct the lists a and b for the robots in such a way that the total search time over all requests is the minimum possible. The first line contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Each test case consists of two lines: Additional constraint on the input: the sum of n over all test cases does not exceed 2 cdot 10^5 . For each t"...

Tutorials

Educational Codeforces Round 146 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
201090902 High_Score C April 7, 2023, 2:53 a.m. OK GNU C++14 TESTS 6 62 4198400
201085599 MAlexxiT C April 7, 2023, 12:34 a.m. OK GNU C++14 TESTS 6 78 3686400
201075419 Wassim221e C April 6, 2023, 8:46 p.m. OK GNU C++14 TESTS 6 92 3276800
201061884 Kenji000 C April 6, 2023, 6:05 p.m. OK GNU C++14 TESTS 6 93 3072000
201060682 ayush_n C April 6, 2023, 5:52 p.m. OK GNU C++14 TESTS 6 93 3072000
201049832 Homura_jar C April 6, 2023, 4:37 p.m. OK GNU C++14 TESTS 6 93 3072000
201044791 sars2811 C April 6, 2023, 4:17 p.m. OK GNU C++14 TESTS 6 93 3072000
201052209 t98slider C April 6, 2023, 4:47 p.m. OK GNU C++14 TESTS 6 93 3174400
201048311 vector_3 C April 6, 2023, 4:31 p.m. OK GNU C++14 TESTS 6 93 3174400
201044756 PEPPAPIGRAN C April 6, 2023, 4:17 p.m. OK GNU C++14 TESTS 6 93 3174400
201054062 Nada_A7med C April 6, 2023, 4:55 p.m. OK GNU C++17 TESTS 6 77 3072000
201061433 neo11235 C April 6, 2023, 6 p.m. OK GNU C++17 TESTS 6 77 4710400
201091289 raj715426aditya C April 7, 2023, 3 a.m. OK GNU C++17 TESTS 6 78 3072000
201069063 ryuzakiDis C April 6, 2023, 7:26 p.m. OK GNU C++17 TESTS 6 78 3276800
201081178 ahmedmiz C April 6, 2023, 10:51 p.m. OK GNU C++17 TESTS 6 78 3686400
201096515 ventusliberum C April 7, 2023, 4:46 a.m. OK GNU C++17 TESTS 6 92 3072000
201099057 JRCoder C April 7, 2023, 5:22 a.m. OK GNU C++17 TESTS 6 93 3072000
201076552 Periaraperi C April 6, 2023, 8:59 p.m. OK GNU C++17 TESTS 6 93 3072000
201074278 dev_radadia C April 6, 2023, 8:33 p.m. OK GNU C++17 TESTS 6 93 3072000
201073043 KenZu C April 6, 2023, 8:16 p.m. OK GNU C++17 TESTS 6 93 3072000
201091211 linxd C April 7, 2023, 2:59 a.m. OK GNU C++17 (64) TESTS 6 61 3072000
201044893 SyruLoveNewTechnology C April 6, 2023, 4:18 p.m. OK GNU C++17 (64) TESTS 6 62 3072000
201077604 ljuba C April 6, 2023, 9:14 p.m. OK GNU C++17 (64) TESTS 6 62 3276800
201097730 Posion C April 7, 2023, 5:04 a.m. OK GNU C++17 (64) TESTS 6 77 3072000
201069100 HitmanX97 C April 6, 2023, 7:26 p.m. OK GNU C++17 (64) TESTS 6 77 3072000
201055115 leo25 C April 6, 2023, 5:03 p.m. OK GNU C++17 (64) TESTS 6 77 3072000
201054509 mykhail0 C April 6, 2023, 4:58 p.m. OK GNU C++17 (64) TESTS 6 77 3072000
201048697 yh11 C April 6, 2023, 4:32 p.m. OK GNU C++17 (64) TESTS 6 77 3072000
201046844 wakaranai C April 6, 2023, 4:25 p.m. OK GNU C++17 (64) TESTS 6 77 3072000
201072301 nksrivastava18 C April 6, 2023, 8:07 p.m. OK GNU C++17 (64) TESTS 6 77 3481600
201095103 coldwind9029 C April 7, 2023, 4:21 a.m. OK GNU C++20 (64) TESTS 6 46 2560000
201046521 Bellman_Bored C April 6, 2023, 4:23 p.m. OK GNU C++20 (64) TESTS 6 46 3072000
201090386 Alaa_Eldeen C April 7, 2023, 2:42 a.m. OK GNU C++20 (64) TESTS 6 46 3174400
201086355 Awesome3.14 C April 7, 2023, 12:53 a.m. OK GNU C++20 (64) TESTS 6 46 3174400
201072426 notcryan C April 6, 2023, 8:08 p.m. OK GNU C++20 (64) TESTS 6 46 3174400
201063793 yergeldi C April 6, 2023, 6:24 p.m. OK GNU C++20 (64) TESTS 6 46 3174400
201045459 cocoadel C April 6, 2023, 4:20 p.m. OK GNU C++20 (64) TESTS 6 46 3584000
201050925 CCSU_Wine C April 6, 2023, 4:41 p.m. OK GNU C++20 (64) TESTS 6 46 4198400
201067617 YassineBenYounes C April 6, 2023, 7:08 p.m. OK GNU C++20 (64) TESTS 6 46 5017600
201060674 abhiofficial1729 C April 6, 2023, 5:52 p.m. OK GNU C++20 (64) TESTS 6 46 6758400
201099370 sk_arman C April 7, 2023, 5:27 a.m. OK Go TESTS 6 171 10137600
201062652 liangjiahui11 C April 6, 2023, 6:12 p.m. OK Go TESTS 6 171 10342400
201098572 sk_arman C April 7, 2023, 5:16 a.m. OK Go TESTS 6 795 10240000
201072898 aydv_ C April 6, 2023, 8:14 p.m. OK Java 11 TESTS 6 358 7372800
201056083 dzhi C April 6, 2023, 5:10 p.m. OK Java 11 TESTS 6 358 14438400
201047006 rajgupta77540 C April 6, 2023, 4:25 p.m. OK Java 11 TESTS 6 358 16076800
201088723 cpcdevar C April 7, 2023, 1:57 a.m. OK Java 11 TESTS 6 373 9523200
201074827 Kempachi C April 6, 2023, 8:39 p.m. OK Java 11 TESTS 6 373 9932800
201051786 lak_pnd C April 6, 2023, 4:45 p.m. OK Java 11 TESTS 6 421 23142400
201054001 Ramez__ C April 6, 2023, 4:55 p.m. OK Java 11 TESTS 6 482 13926400
201049199 2sssg C April 6, 2023, 4:34 p.m. OK Java 11 TESTS 6 498 16896000
201049480 erasmas C April 6, 2023, 4:36 p.m. OK Java 11 TESTS 6 654 22016000
201068416 BabyBlue0514 C April 6, 2023, 7:17 p.m. OK Java 11 TESTS 6 1060 12595200
201079474 azure- C April 6, 2023, 10:13 p.m. OK Java 17 TESTS 6 343 11980800
201075512 azure- C April 6, 2023, 8:47 p.m. OK Java 17 TESTS 6 358 11366400
201096069 this_dp C April 7, 2023, 4:38 a.m. OK Java 17 TESTS 6 389 11059200
201048570 leoxiao2015 C April 6, 2023, 4:32 p.m. OK Java 17 TESTS 6 405 8499200
201045379 kingsharma1718 C April 6, 2023, 4:19 p.m. OK Java 17 TESTS 6 405 27648000
201097713 Suraj1607 C April 7, 2023, 5:04 a.m. OK Java 17 TESTS 6 420 9113600
201090183 TCchen C April 7, 2023, 2:36 a.m. OK Java 17 TESTS 6 436 8601600
201053545 wintersoldier2004 C April 6, 2023, 4:52 p.m. OK Java 17 TESTS 6 467 7372800
201060365 Yuh_03 C April 6, 2023, 5:49 p.m. OK Java 17 TESTS 6 1076 11571200
201055500 adarsh_code_01 C April 6, 2023, 5:05 p.m. OK Java 17 TESTS 6 1107 25497600
201053784 aditya888 C April 6, 2023, 4:54 p.m. OK Java 8 TESTS 6 295 6246400
201085274 yadavDipesh C April 7, 2023, 12:26 a.m. OK Java 8 TESTS 6 296 6041600
201045760 GlockGod C April 6, 2023, 4:21 p.m. OK Java 8 TESTS 6 296 7577600
201047103 1091857051 C April 6, 2023, 4:26 p.m. OK Java 8 TESTS 6 327 6963200
201055911 -crazy_coder- C April 6, 2023, 5:08 p.m. OK Java 8 TESTS 6 343 21196800
201045948 rish1896 C April 6, 2023, 4:21 p.m. OK Java 8 TESTS 6 405 20480000
201047022 riyadas.200208 C April 6, 2023, 4:25 p.m. OK Java 8 TESTS 6 498 14643200
201068515 elgamel C April 6, 2023, 7:18 p.m. OK Java 8 TESTS 6 966 3481600
201046968 Saurabh-Sharma C April 6, 2023, 4:25 p.m. OK Java 8 TESTS 6 1138 18944000
201101830 nomadicjuggrnaut C April 7, 2023, 6:01 a.m. OK Java 8 TESTS 6 1216 5529600
201051346 winglok C April 6, 2023, 4:43 p.m. OK MS C++ 2017 TESTS 6 249 4812800
201056616 1pq029 C April 6, 2023, 5:14 p.m. OK MS C++ 2017 TESTS 6 312 3584000
201045860 Nanami123 C April 6, 2023, 4:21 p.m. OK MS C++ 2017 TESTS 6 389 3174400
201048613 ahtoh_ C April 6, 2023, 4:32 p.m. OK Node.js TESTS 6 389 38809600
201086525 NonprincipalUltrafilter C April 7, 2023, 12:56 a.m. OK PyPy 3 TESTS 6 826 20480000
201049891 u1602016 C April 6, 2023, 4:37 p.m. OK PyPy 3 TESTS 6 841 36249600
201047207 pranay_28 C April 6, 2023, 4:26 p.m. OK PyPy 3 TESTS 6 889 27750400
201049836 RoBoy1729 C April 6, 2023, 4:37 p.m. OK PyPy 3 TESTS 6 1029 23347200
201056123 utkp007 C April 6, 2023, 5:10 p.m. OK PyPy 3 TESTS 6 1075 24678400
201089208 kdypr C April 7, 2023, 2:10 a.m. OK PyPy 3 TESTS 6 1372 31539200
201094338 jvatsal0709 C April 7, 2023, 4:05 a.m. OK PyPy 3 TESTS 6 1403 25804800
201066622 SoleProprietor C April 6, 2023, 6:57 p.m. OK PyPy 3-64 TESTS 6 436 29798400
201078008 rmr C April 6, 2023, 9:20 p.m. OK PyPy 3-64 TESTS 6 482 32256000
201078063 rmr C April 6, 2023, 9:21 p.m. OK PyPy 3-64 TESTS 6 499 32563200
201090835 Mohamed_Hamed C April 7, 2023, 2:51 a.m. OK PyPy 3-64 TESTS 6 530 30208000
201071039 2momo2 C April 6, 2023, 7:51 p.m. OK PyPy 3-64 TESTS 6 545 30617600
201063273 SophieHatter C April 6, 2023, 6:19 p.m. OK PyPy 3-64 TESTS 6 545 34099200
201046433 lemiao12 C April 6, 2023, 4:23 p.m. OK PyPy 3-64 TESTS 6 592 34508800
201051833 satyajeetdas045 C April 6, 2023, 4:45 p.m. OK PyPy 3-64 TESTS 6 623 65331200
201049741 novellep C April 6, 2023, 4:37 p.m. OK PyPy 3-64 TESTS 6 670 28569600
201058353 vecxtor C April 6, 2023, 5:30 p.m. OK PyPy 3-64 TESTS 6 685 45875200
201046546 rennancl C April 6, 2023, 4:24 p.m. OK Python 3 TESTS 6 685 25088000
201086413 MohmadZaid._. C April 7, 2023, 12:54 a.m. OK Python 3 TESTS 6 686 20684800
201053807 thadakaabhinay C April 6, 2023, 4:54 p.m. OK Python 3 TESTS 6 702 17203200
201054940 rwp90 C April 6, 2023, 5:01 p.m. OK Python 3 TESTS 6 717 18636800
201080695 Angelawqy C April 6, 2023, 10:40 p.m. OK Python 3 TESTS 6 733 17408000
201053951 kalerab C April 6, 2023, 4:55 p.m. OK Python 3 TESTS 6 763 19251200
201077648 NTPhuongThao C April 6, 2023, 9:14 p.m. OK Python 3 TESTS 6 842 20070400
201059318 modestsb C April 6, 2023, 5:38 p.m. OK Python 3 TESTS 6 842 22835200
201053761 Hrithika_Actual C April 6, 2023, 4:53 p.m. OK Python 3 TESTS 6 857 18739200
201051741 I_am_Naruto C April 6, 2023, 4:45 p.m. OK Python 3 TESTS 6 951 20275200

remove filters

Back to search problems