Educational Codeforces Round 51 (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
1051 Educational Codeforces Round 51 (Rated for Div. 2) FINISHED False 7200 199725263 Sept. 20, 2018, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9364 ) C Vasya and Multisets PROGRAMMING brute force dp greedy implementation math 1400

B'Vasya has a multiset s consisting of n integer numbers. Vasya calls some number x nice if it appears in the multiset exactly once. For example, multiset {1, 1, 2, 3, 3, 3, 4 } contains nice numbers 2 and 4 . Vasya wants to split multiset s into two multisets a and b (one of which may be empty) in such a way that the quantity of nice numbers in multiset a would be the same as the quantity of nice numbers in multiset b (the quantity of numbers to appear exactly once in multiset a and the quantity of numbers to appear exactly once in multiset b ). The first line contains a single integer n~(2 <= n <= 100) . The second line contains n integers s_1, s_2, ... s_n~(1 <= s_i <= 100) -- the multiset s . If there exists no split of s to satisfy the given requirements, then print "NO" in the first line. Otherwise print "YES" in the first line. The second line should contain a string, consisting of n characters. i -th character should be equal to 'A ' if the i -th element of multiset s goes to multiset a and 'B ' if if the i -th element of multiset s goes to multiset b . Elements are numbered from 1 to n in the order they are given in the input. If there exist multiple solutions, then print any of them. '...

Tutorials

Educational Codeforces Round 51 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
43146953 ia7ck C Sept. 20, 2018, 4:38 p.m. OK D TESTS 113 31 307200 1400
43416184 minhcool C Sept. 25, 2018, 3:38 p.m. OK FPC TESTS 113 31 0 1400
45268292 vjudge5 C Nov. 4, 2018, 7:10 a.m. OK FPC TESTS 113 31 0 1400
43149057 AHTOH._. C Sept. 20, 2018, 4:50 p.m. OK FPC TESTS 113 46 0 1400
45379328 Jousero C Nov. 6, 2018, 1:53 p.m. OK GNU C11 TESTS 113 31 0 1400
43628359 kishansairam9 C Oct. 1, 2018, 2:30 a.m. OK GNU C11 TESTS 113 31 0 1400
64140079 MHHasan C Nov. 3, 2019, 8:17 a.m. OK GNU C11 TESTS 113 31 0 1400
62649170 kaiboy C Oct. 15, 2019, 8:46 p.m. OK GNU C11 TESTS 113 31 0 1400
49954471 rainboy C Feb. 15, 2019, 3:25 p.m. OK GNU C11 TESTS 113 31 0 1400
45467761 noob77777 C Nov. 9, 2018, 7:20 a.m. OK GNU C11 TESTS 113 31 0 1400
43219152 hsam92632 C Sept. 21, 2018, 6:27 p.m. OK GNU C11 TESTS 113 31 0 1400
43224076 Satnam_412 C Sept. 21, 2018, 8:03 p.m. OK GNU C11 TESTS 113 31 0 1400
43374962 likcoras C Sept. 24, 2018, 4:07 p.m. OK GNU C11 TESTS 113 31 0 1400
43615656 freyes C Sept. 30, 2018, 4:17 p.m. OK GNU C11 TESTS 113 31 0 1400
67131186 Complexity_Cutter C Dec. 18, 2019, 12:25 a.m. OK GNU C++11 TESTS 113 31 0 1400
68494149 xtd C Jan. 10, 2020, 12:47 p.m. OK GNU C++11 TESTS 113 31 0 1400
68608198 wolflegend99 C Jan. 11, 2020, 2:45 p.m. OK GNU C++11 TESTS 113 31 0 1400
68850455 jessenicholasjn C Jan. 15, 2020, 8:48 a.m. OK GNU C++11 TESTS 113 31 0 1400
68868214 Overstars C Jan. 15, 2020, 2:15 p.m. OK GNU C++11 TESTS 113 31 0 1400
69809882 manuel30 C Jan. 30, 2020, 3:52 a.m. OK GNU C++11 TESTS 113 31 0 1400
69069914 faisalxn C Jan. 18, 2020, 8:56 p.m. OK GNU C++11 TESTS 113 31 0 1400
67628640 Its_Easy C Dec. 26, 2019, 1:07 a.m. OK GNU C++11 TESTS 113 31 0 1400
67171354 vectorishere C Dec. 18, 2019, 5:25 p.m. OK GNU C++11 TESTS 113 31 0 1400
67154652 Ankit003 C Dec. 18, 2019, 12:04 p.m. OK GNU C++11 TESTS 113 31 0 1400
67691151 loser_coder C Dec. 27, 2019, 11:11 a.m. OK GNU C++14 TESTS 113 30 0 1400
57643941 Crabby_Maskiv C July 24, 2019, 1:34 p.m. OK GNU C++14 TESTS 113 30 0 1400
56630292 codeboy5 C July 6, 2019, 3:54 p.m. OK GNU C++14 TESTS 113 30 0 1400
55527728 sarthak1220 C June 13, 2019, noon OK GNU C++14 TESTS 113 30 0 1400
52642584 Learnerxy C April 12, 2019, 1:07 p.m. OK GNU C++14 TESTS 113 30 0 1400
49127980 Hope_amasser C Jan. 29, 2019, 1:22 a.m. OK GNU C++14 TESTS 113 30 0 1400
45567252 Chi C Nov. 11, 2018, 3:19 p.m. OK GNU C++14 TESTS 113 30 0 1400
43671702 greenTick C Oct. 2, 2018, 5:05 a.m. OK GNU C++14 TESTS 113 30 0 1400
43643796 bhavuk22 C Oct. 1, 2018, 12:47 p.m. OK GNU C++14 TESTS 113 30 0 1400
55324658 shashanks367 C June 9, 2019, 7:15 a.m. OK GNU C++14 TESTS 113 30 102400 1400
58357089 Glory_Illuminates C Aug. 5, 2019, 8:17 p.m. OK GNU C++17 TESTS 113 30 0 1400
56231361 BruteForce C June 28, 2019, 2:22 p.m. OK GNU C++17 TESTS 113 30 0 1400
55549620 Kaushal_Patel C June 14, 2019, 6:11 a.m. OK GNU C++17 TESTS 113 30 0 1400
51486273 wangsili C March 19, 2019, 1:40 p.m. OK GNU C++17 TESTS 113 30 0 1400
51085722 amnesiac_dusk C March 9, 2019, 12:55 p.m. OK GNU C++17 TESTS 113 30 0 1400
50891209 vjudge1 C March 6, 2019, 1:15 p.m. OK GNU C++17 TESTS 113 30 0 1400
49026554 Ghotfall C Jan. 26, 2019, 7:18 p.m. OK GNU C++17 TESTS 113 30 102400 1400
43169315 BMW_X5M1 C Sept. 21, 2018, 7:20 a.m. OK GNU C++17 TESTS 113 30 307200 1400
48374634 Sem_1337 C Jan. 14, 2019, 6:53 a.m. OK GNU C++17 TESTS 113 30 307200 1400
43162572 HandsomeZeng C Sept. 21, 2018, 2:32 a.m. OK GNU C++17 TESTS 113 30 307200 1400
44977607 davidguandev C Oct. 28, 2018, 6:43 a.m. OK Go TESTS 113 31 0 1400
47659326 satya26 C Dec. 28, 2018, 6:07 p.m. OK Java 8 TESTS 113 109 0 1400
46034496 chafi C Nov. 21, 2018, 3:32 p.m. OK Java 8 TESTS 113 109 0 1400
45974239 younesbmz C Nov. 19, 2018, 5:32 p.m. OK Java 8 TESTS 113 109 0 1400
44159882 Abdelrahman22 C Oct. 11, 2018, 8:46 p.m. OK Java 8 TESTS 113 109 0 1400
45385285 xyz_000 C Nov. 6, 2018, 5:13 p.m. OK Java 8 TESTS 113 109 0 1400
67657848 arsh1598 C Dec. 26, 2019, 2:35 p.m. OK Java 8 TESTS 113 109 0 1400
57782960 Ikari_stream C July 26, 2019, 6:41 a.m. OK Java 8 TESTS 113 109 0 1400
56009521 ragpatel8742 C June 24, 2019, 5:22 p.m. OK Java 8 TESTS 113 109 0 1400
50631979 ramez C March 1, 2019, 9:36 a.m. OK Java 8 TESTS 113 109 0 1400
69068776 MahmoudJobeel C Jan. 18, 2020, 8:06 p.m. OK Java 8 TESTS 113 124 0 1400
44279265 LazyFabric C Oct. 14, 2018, 2:30 a.m. OK JavaScript TESTS 113 46 0 1400
59263978 Knight-errant C Aug. 22, 2019, 9:53 a.m. OK Kotlin TESTS 113 140 0 1400
53378976 Farwent C April 26, 2019, 9:03 p.m. OK Kotlin TESTS 113 140 0 1400
45681180 jedikni C Nov. 13, 2018, 3:28 p.m. OK Kotlin TESTS 113 155 204800 1400
45896945 ervin5 C Nov. 17, 2018, 11:47 p.m. OK Kotlin TESTS 113 171 1126400 1400
45236543 nordiccat C Nov. 3, 2018, 9:31 a.m. OK Kotlin TESTS 113 171 1126400 1400
43145166 erenerisken C Sept. 20, 2018, 4:28 p.m. OK Kotlin TESTS 113 218 0 1400
43143080 eki C Sept. 20, 2018, 4:16 p.m. OK Mono C# TESTS 113 62 0 1400
43511273 chelogrek C Sept. 27, 2018, 11:47 p.m. OK Mono C# TESTS 113 62 3584000 1400
43143109 vivek17geek C Sept. 20, 2018, 4:16 p.m. OK Mono C# TESTS 113 77 3686400 1400
55600419 og.kostya C June 15, 2019, 5:57 p.m. OK Mono C# TESTS 113 77 3686400 1400
51239808 nemars C March 12, 2019, 8:52 p.m. OK Mono C# TESTS 113 78 3686400 1400
59266261 alexagapov C Aug. 22, 2019, 10:53 a.m. OK Mono C# TESTS 113 92 4096000 1400
52153437 vjudge2 C April 1, 2019, 12:31 p.m. OK MS C++ TESTS 113 31 0 1400
52149835 vjudge4 C April 1, 2019, 11:11 a.m. OK MS C++ TESTS 113 31 0 1400
52142396 vjudge3 C April 1, 2019, 7:32 a.m. OK MS C++ TESTS 113 31 0 1400
52139659 vjudge4 C April 1, 2019, 5:58 a.m. OK MS C++ TESTS 113 31 0 1400
52292431 vjudge3 C April 4, 2019, 3:20 a.m. OK MS C++ TESTS 113 31 0 1400
52291983 vjudge3 C April 4, 2019, 2:49 a.m. OK MS C++ TESTS 113 31 0 1400
58640390 vjudge3 C Aug. 12, 2019, 3:06 a.m. OK MS C++ TESTS 113 31 0 1400
58640739 vjudge2 C Aug. 12, 2019, 3:23 a.m. OK MS C++ TESTS 113 31 0 1400
52545899 bool_everything_zero C April 9, 2019, 9:29 p.m. OK MS C++ TESTS 113 31 0 1400
62250859 vjudge1 C Oct. 10, 2019, 9:13 a.m. OK MS C++ TESTS 113 31 0 1400
57592776 CtrlAlt C July 23, 2019, 12:50 p.m. OK MS C++ 2017 TESTS 113 31 0 1400
61547227 Mad112233 C Sept. 30, 2019, 10:58 a.m. OK MS C++ 2017 TESTS 113 31 0 1400
59389421 116c C Aug. 24, 2019, 7:50 a.m. OK MS C++ 2017 TESTS 113 31 2764800 1400
66500683 YaMi506 C Dec. 8, 2019, 12:25 p.m. OK MS C++ 2017 TESTS 113 46 0 1400
56986321 sladkayaKlubnichka C July 13, 2019, 3:58 p.m. OK MS C++ 2017 TESTS 113 46 0 1400
43141697 sk0 C Sept. 20, 2018, 4:08 p.m. OK Ocaml TESTS 113 15 0 1400
48290555 mateuszdanowski C Jan. 12, 2019, 12:35 p.m. OK Ocaml TESTS 113 31 0 1400
45109254 cube-R C Oct. 30, 2018, 5:38 p.m. OK PascalABC.NET TESTS 113 62 102400 1400
43181664 rsFalse C Sept. 21, 2018, 1:37 p.m. OK Perl TESTS 113 31 0 1400
43241371 anon01 C Sept. 22, 2018, 10:12 a.m. OK Perl TESTS 113 46 0 1400
43141638 rsFalse C Sept. 20, 2018, 4:08 p.m. OK Perl TESTS 113 46 0 1400
43155458 mayakin C Sept. 20, 2018, 7:37 p.m. OK PHP TESTS 113 46 716800 1400
54869838 kaif_7 C May 31, 2019, 8:35 a.m. OK PyPy 2 TESTS 113 124 0 1400
44721181 test616.cpp C Oct. 23, 2018, 5:13 a.m. OK PyPy 2 TESTS 113 124 0 1400
43614009 soumyasarkar1998 C Sept. 30, 2018, 3:25 p.m. OK PyPy 2 TESTS 113 139 0 1400
55729165 shafwanur010 C June 18, 2019, 7:42 p.m. OK PyPy 2 TESTS 113 155 921600 1400
54452226 Mukundan314 C May 21, 2019, 2:05 p.m. OK PyPy 2 TESTS 113 155 1228800 1400
43287890 Onesh0t C Sept. 23, 2018, 9:10 a.m. OK PyPy 2 TESTS 113 170 921600 1400
43144943 c1729 C Sept. 20, 2018, 4:26 p.m. OK PyPy 2 TESTS 113 170 1331200 1400
66090053 lIn_nIl C Dec. 1, 2019, 6:58 a.m. OK PyPy 3 TESTS 113 140 0 1400
55687252 Awa149 C June 17, 2019, 4:08 p.m. OK PyPy 3 TESTS 113 140 0 1400
54889212 chaudhary_19 C May 31, 2019, 7:14 p.m. OK PyPy 3 TESTS 113 140 0 1400
54729231 Aidos C May 27, 2019, 9:42 p.m. OK PyPy 3 TESTS 113 140 0 1400
47514875 H4Wk3ye C Dec. 26, 2018, 9:10 a.m. OK PyPy 3 TESTS 113 140 0 1400
47302986 yellowflash C Dec. 20, 2018, 3:11 p.m. OK PyPy 3 TESTS 113 140 0 1400
46621833 ZakoylovIlya C Dec. 4, 2018, 6:31 p.m. OK PyPy 3 TESTS 113 140 0 1400
55829844 Olerinskiy C June 20, 2019, 12:38 p.m. OK PyPy 3 TESTS 113 140 102400 1400
69476497 WA-----Me-----AC C Jan. 24, 2020, 4:21 p.m. OK PyPy 3 TESTS 113 155 0 1400
67975670 lowoncode C Dec. 30, 2019, 4:48 p.m. OK PyPy 3 TESTS 113 155 0 1400
44471603 mukeremali C Oct. 18, 2018, 6:39 a.m. OK Python 2 TESTS 113 171 0 1400
43228593 yell0wfl4sh C Sept. 21, 2018, 11:20 p.m. OK Python 2 TESTS 113 171 0 1400
43223778 wangkan2001 C Sept. 21, 2018, 7:55 p.m. OK Python 2 TESTS 113 171 0 1400
51811175 gaidash C March 25, 2019, 5:47 a.m. OK Python 2 TESTS 113 187 0 1400
43372920 aeternalis1 C Sept. 24, 2018, 3:19 p.m. OK Python 2 TESTS 113 187 0 1400
43343473 nealzane C Sept. 23, 2018, 6:57 p.m. OK Python 2 TESTS 113 187 0 1400
43225789 wunder9l C Sept. 21, 2018, 8:55 p.m. OK Python 2 TESTS 113 187 0 1400
44493335 raven_47 C Oct. 18, 2018, 3:34 p.m. OK Python 2 TESTS 113 202 102400 1400
43402412 franckmy C Sept. 25, 2018, 9:33 a.m. OK Python 2 TESTS 113 202 102400 1400
44018290 vjudge3 C Oct. 9, 2018, 12:42 a.m. OK Python 2 TESTS 113 217 0 1400
55070356 shivammishra C June 4, 2019, 6 a.m. OK Python 3 TESTS 113 109 0 1400
50596349 saku7 C Feb. 28, 2019, 10:29 a.m. OK Python 3 TESTS 113 109 0 1400
49072728 amarjeet_singh C Jan. 27, 2019, 10:34 p.m. OK Python 3 TESTS 113 109 0 1400
54889190 chaudhary_19 C May 31, 2019, 7:13 p.m. OK Python 3 TESTS 113 109 307200 1400
52231732 nosok_dikobraza C April 2, 2019, 12:09 p.m. OK Python 3 TESTS 113 109 307200 1400
51812337 Maklarenov C March 25, 2019, 6:49 a.m. OK Python 3 TESTS 113 109 307200 1400
51812149 echikawa C March 25, 2019, 6:41 a.m. OK Python 3 TESTS 113 109 307200 1400
50590562 pixc C Feb. 28, 2019, 7:11 a.m. OK Python 3 TESTS 113 109 307200 1400
50096657 UmangVallurie C Feb. 18, 2019, 1:03 p.m. OK Python 3 TESTS 113 109 307200 1400
49920305 fooman2828 C Feb. 14, 2019, 6:29 p.m. OK Python 3 TESTS 113 109 307200 1400
44269356 grihabor C Oct. 13, 2018, 6:13 p.m. OK Rust TESTS 113 31 0 1400

remove filters

Back to search problems