Educational Codeforces Round 141 (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
1783 Educational Codeforces Round 141 (Rated for Div. 2) FINISHED False 7200 58634699 Jan. 8, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 30883 ) A Make it Beautiful PROGRAMMING constructive algorithms sortings

B'An array a is called ugly if it contains at least one element which is equal to the sum of all elements before it. If the array is not ugly, it is beautiful. For example: You are given an array a such that 1 <= a_1 <= a_2 <= ... <= a_n <= 100 . You have to reorder the elements of a in such a way that the resulting array is beautiful. Note that you are not allowed to insert new elements or erase existing ones, you can only change the order of elements of a . You are allowed to keep the array a unchanged, if it is beautiful. The first line contains one integer t ( 1 <= t <= 2000 ) -- the number of test cases. Each test case consists of two lines. The first line contains one integer n ( 2 <= n <= 50 ). The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_1 <= a_2 <= ... <= a_n <= 100 ). For each test case, print the answer as follows: '...

Tutorials

Educational Codeforces Round 141 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
188538023 bluemegane A Jan. 9, 2023, 3:39 a.m. OK C# 8 TESTS 3 77 3072000
188530641 Wizard_of_Orz A Jan. 9, 2023, 12:15 a.m. OK Clang++17 Diagnostics TESTS 3 61 0
188541994 mouryanel A Jan. 9, 2023, 4:50 a.m. OK Clang++17 Diagnostics TESTS 3 576 0
188541754 rgoewedky A Jan. 9, 2023, 4:46 a.m. OK Clang++17 Diagnostics TESTS 3 592 0
188543011 bkifhr7 A Jan. 9, 2023, 5:07 a.m. OK Clang++17 Diagnostics TESTS 3 592 0
188513807 harshshashwat18 A Jan. 8, 2023, 6:15 p.m. OK Clang++17 Diagnostics TESTS 3 608 0
188546707 Dullpig A Jan. 9, 2023, 6:01 a.m. OK Clang++20 Diagnostics TESTS 3 374 2048000
188505724 Rithvik_421 A Jan. 8, 2023, 5:05 p.m. OK Clang++20 Diagnostics TESTS 3 655 2150400
188503230 P.rakesh A Jan. 8, 2023, 4:49 p.m. OK GNU C11 TESTS 3 390 0
188513106 SP2003 A Jan. 8, 2023, 6:09 p.m. OK GNU C11 TESTS 3 390 0
188530227 GDTIME A Jan. 8, 2023, 11:58 p.m. OK GNU C11 TESTS 3 405 0
188530466 GDTIME A Jan. 9, 2023, 12:08 a.m. OK GNU C11 TESTS 3 405 0
188503339 Moka50 A Jan. 8, 2023, 4:50 p.m. OK GNU C11 TESTS 3 405 0
188504477 Homar A Jan. 8, 2023, 4:57 p.m. OK GNU C11 TESTS 3 405 0
188519259 Moka50 A Jan. 8, 2023, 7:21 p.m. OK GNU C11 TESTS 3 405 0
188507202 iffatul_anon A Jan. 8, 2023, 5:17 p.m. OK GNU C11 TESTS 3 420 0
188494838 s.mahbub A Jan. 8, 2023, 4:25 p.m. OK GNU C11 TESTS 3 421 0
188530427 GDTIME A Jan. 9, 2023, 12:07 a.m. OK GNU C11 TESTS 3 421 0
188532536 codeforces111672 A Jan. 9, 2023, 1:28 a.m. OK GNU C++14 TESTS 3 0 134451200
188541579 xieliren2021 A Jan. 9, 2023, 4:43 a.m. OK GNU C++14 TESTS 3 15 0
188540145 Exbilar A Jan. 9, 2023, 4:18 a.m. OK GNU C++14 TESTS 3 15 0
188538062 Williamxzh A Jan. 9, 2023, 3:40 a.m. OK GNU C++14 TESTS 3 15 0
188533670 _fengxiaoyi A Jan. 9, 2023, 2 a.m. OK GNU C++14 TESTS 3 15 0
188532435 sz19970719155 A Jan. 9, 2023, 1:25 a.m. OK GNU C++14 TESTS 3 15 0
188531370 Anonyme A Jan. 9, 2023, 12:46 a.m. OK GNU C++14 TESTS 3 15 0
188530743 xpthptcnvg A Jan. 9, 2023, 12:19 a.m. OK GNU C++14 TESTS 3 15 0
188530700 XZC__Bobby A Jan. 9, 2023, 12:18 a.m. OK GNU C++14 TESTS 3 15 0
188517864 ykodwani01 A Jan. 8, 2023, 7:02 p.m. OK GNU C++14 TESTS 3 15 0
188544089 code-N-runnn A Jan. 9, 2023, 5:23 a.m. OK GNU C++17 TESTS 3 15 0
188535311 woyaobianshengle A Jan. 9, 2023, 2:39 a.m. OK GNU C++17 TESTS 3 15 0
188541141 muntaseer_jaheen A Jan. 9, 2023, 4:35 a.m. OK GNU C++17 TESTS 3 15 0
188511082 dUDE0352 A Jan. 8, 2023, 5:50 p.m. OK GNU C++17 TESTS 3 15 0
188512392 aboEl3ela A Jan. 8, 2023, 6:02 p.m. OK GNU C++17 TESTS 3 15 0
188514396 shivam_2400 A Jan. 8, 2023, 6:21 p.m. OK GNU C++17 TESTS 3 15 0
188517649 RayOfLight A Jan. 8, 2023, 6:59 p.m. OK GNU C++17 TESTS 3 15 0
188534802 Falconerd A Jan. 9, 2023, 2:28 a.m. OK GNU C++17 TESTS 3 15 0
188546030 heishot A Jan. 9, 2023, 5:52 a.m. OK GNU C++17 TESTS 3 15 102400
188543150 tikupandit05 A Jan. 9, 2023, 5:09 a.m. OK GNU C++17 TESTS 3 15 102400
188530708 hcywoi A Jan. 9, 2023, 12:18 a.m. OK GNU C++17 (64) TESTS 3 15 0
188538572 steveonalex A Jan. 9, 2023, 3:50 a.m. OK GNU C++17 (64) TESTS 3 15 0
188537412 luogu_bot1 A Jan. 9, 2023, 3:25 a.m. OK GNU C++17 (64) TESTS 3 15 0
188536748 cosinechicken A Jan. 9, 2023, 3:12 a.m. OK GNU C++17 (64) TESTS 3 15 0
188535241 Yra A Jan. 9, 2023, 2:38 a.m. OK GNU C++17 (64) TESTS 3 15 0
188534704 Alex_Wei A Jan. 9, 2023, 2:26 a.m. OK GNU C++17 (64) TESTS 3 15 0
188530682 hcywoi A Jan. 9, 2023, 12:17 a.m. OK GNU C++17 (64) TESTS 3 15 0
188528685 enslaved A Jan. 8, 2023, 10:57 p.m. OK GNU C++17 (64) TESTS 3 15 0
188525897 cbyyx A Jan. 8, 2023, 9:25 p.m. OK GNU C++17 (64) TESTS 3 15 0
188520914 osamaBelal A Jan. 8, 2023, 7:46 p.m. OK GNU C++17 (64) TESTS 3 15 0
188514971 CGemmy A Jan. 8, 2023, 6:27 p.m. OK GNU C++20 (64) TESTS 3 0 0
188516739 78nine A Jan. 8, 2023, 6:47 p.m. OK GNU C++20 (64) TESTS 3 0 0
188527674 Ckcyi A Jan. 8, 2023, 10:20 p.m. OK GNU C++20 (64) TESTS 3 0 0
188529074 anuanuclone A Jan. 8, 2023, 11:13 p.m. OK GNU C++20 (64) TESTS 3 0 0
188529157 Shohan06 A Jan. 8, 2023, 11:16 p.m. OK GNU C++20 (64) TESTS 3 0 0
188534086 xCqlibur_ A Jan. 9, 2023, 2:11 a.m. OK GNU C++20 (64) TESTS 3 0 0
188534864 lifeadventurer A Jan. 9, 2023, 2:30 a.m. OK GNU C++20 (64) TESTS 3 0 0
188535236 shattershade A Jan. 9, 2023, 2:38 a.m. OK GNU C++20 (64) TESTS 3 0 0
188536373 Sherlock114514 A Jan. 9, 2023, 3:03 a.m. OK GNU C++20 (64) TESTS 3 0 0
188539166 AlexHoring A Jan. 9, 2023, 4:01 a.m. OK GNU C++20 (64) TESTS 3 0 0
188544546 rokibulhasan114 A Jan. 9, 2023, 5:30 a.m. OK Go TESTS 3 46 1228800
188526659 ETHANHUNTMI5 A Jan. 8, 2023, 9:47 p.m. OK Java 11 TESTS 3 187 0
188528751 wantu A Jan. 8, 2023, 11 p.m. OK Java 11 TESTS 3 202 0
188516312 vigneshpillutla A Jan. 8, 2023, 6:42 p.m. OK Java 11 TESTS 3 202 0
188515989 lock_infinity A Jan. 8, 2023, 6:38 p.m. OK Java 11 TESTS 3 202 0
188512922 Extradict A Jan. 8, 2023, 6:07 p.m. OK Java 11 TESTS 3 217 921600
188520155 mustankap A Jan. 8, 2023, 7:35 p.m. OK Java 11 TESTS 3 218 0
188503516 wat2 A Jan. 8, 2023, 4:51 p.m. OK Java 11 TESTS 3 233 0
188513154 Extradict A Jan. 8, 2023, 6:09 p.m. OK Java 11 TESTS 3 248 819200
188511423 duped321 A Jan. 8, 2023, 5:53 p.m. OK Java 11 TESTS 3 264 102400
188539073 harini_gurram A Jan. 9, 2023, 3:59 a.m. OK Java 11 TESTS 3 312 307200
188502138 Srisaivamshi A Jan. 8, 2023, 4:43 p.m. OK Java 17 TESTS 3 218 0
188543338 KarMa_ A Jan. 9, 2023, 5:11 a.m. OK Java 17 TESTS 3 218 1126400
188502282 not_just_rr A Jan. 8, 2023, 4:44 p.m. OK Java 17 TESTS 3 249 307200
188536494 im_Yash24 A Jan. 9, 2023, 3:06 a.m. OK Java 17 TESTS 3 311 819200
188519011 StacGnihsihp A Jan. 8, 2023, 7:17 p.m. OK Java 17 TESTS 3 436 0
188494910 JaaackSparoow A Jan. 8, 2023, 4:25 p.m. OK Java 17 TESTS 3 514 0
188521836 harryzhengipsum A Jan. 8, 2023, 8:01 p.m. OK Java 17 TESTS 3 514 204800
188497868 kerimmai A Jan. 8, 2023, 4:31 p.m. OK Java 17 TESTS 3 623 819200
188531318 Tejesh_Silarapu A Jan. 9, 2023, 12:44 a.m. OK Java 17 TESTS 3 639 512000
188511125 max. A Jan. 8, 2023, 5:50 p.m. OK Java 17 TESTS 3 639 1126400
188528582 lpychemistry A Jan. 8, 2023, 10:53 p.m. OK Java 8 TESTS 3 108 0
188520932 Koka A Jan. 8, 2023, 7:46 p.m. OK Java 8 TESTS 3 108 0
188528821 Saeed_AlKtifani A Jan. 8, 2023, 11:03 p.m. OK Java 8 TESTS 3 109 0
188542098 tejasS-27 A Jan. 9, 2023, 4:52 a.m. OK Java 8 TESTS 3 155 0
188516884 imvivekthakur A Jan. 8, 2023, 6:49 p.m. OK Java 8 TESTS 3 295 0
188537114 Ldacon A Jan. 9, 2023, 3:19 a.m. OK Java 8 TESTS 3 420 0
188535746 fightingxjz A Jan. 9, 2023, 2:49 a.m. OK Java 8 TESTS 3 420 0
188523208 EricM08 A Jan. 8, 2023, 8:26 p.m. OK Java 8 TESTS 3 420 0
188519542 __Clouds A Jan. 8, 2023, 7:25 p.m. OK Java 8 TESTS 3 421 39014400
188511455 coding_ninja A Jan. 8, 2023, 5:53 p.m. OK Java 8 TESTS 3 436 0
188520919 craw_fish A Jan. 8, 2023, 7:46 p.m. OK Kotlin 1.7 TESTS 3 514 30310400
188543615 Koo_Pung-Kei A Jan. 9, 2023, 5:16 a.m. OK Kotlin 1.7 TESTS 3 1092 10854400
188509762 ktropin A Jan. 8, 2023, 5:39 p.m. OK Mono C# TESTS 3 124 10752000
188509622 ktropin A Jan. 8, 2023, 5:37 p.m. OK Mono C# TESTS 3 202 9625600
188541107 Promising_muc A Jan. 9, 2023, 4:34 a.m. OK MS C++ 2017 TESTS 3 31 819200
188509701 Spartan3002 A Jan. 8, 2023, 5:38 p.m. OK MS C++ 2017 TESTS 3 108 0
188516142 1001101dfs A Jan. 8, 2023, 6:40 p.m. OK MS C++ 2017 TESTS 3 108 0
188530517 Yychen A Jan. 9, 2023, 12:10 a.m. OK MS C++ 2017 TESTS 3 109 0
188502803 rrtrrt517 A Jan. 8, 2023, 4:47 p.m. OK MS C++ 2017 TESTS 3 109 409600
188532451 cz1137 A Jan. 9, 2023, 1:25 a.m. OK MS C++ 2017 TESTS 3 109 409600
188495896 EtherealMidnight A Jan. 8, 2023, 4:27 p.m. OK MS C++ 2017 TESTS 3 124 0
188545983 blznn A Jan. 9, 2023, 5:51 a.m. OK MS C++ 2017 TESTS 3 139 0
188504836 Yash_Nandwana A Jan. 8, 2023, 4:59 p.m. OK PyPy 3 TESTS 3 171 6246400
188526035 madhav_5 A Jan. 8, 2023, 9:29 p.m. OK PyPy 3 TESTS 3 217 7782400
188498641 rarepally A Jan. 8, 2023, 4:32 p.m. OK PyPy 3 TESTS 3 233 9011200
188509546 Sovi_11 A Jan. 8, 2023, 5:37 p.m. OK PyPy 3 TESTS 3 249 7475200
188512610 heprob A Jan. 8, 2023, 6:04 p.m. OK PyPy 3 TESTS 3 264 6553600
188541659 ankitesh A Jan. 9, 2023, 4:44 a.m. OK PyPy 3 TESTS 3 265 7475200
188506092 Harshvardhan_Acharya A Jan. 8, 2023, 5:08 p.m. OK PyPy 3 TESTS 3 358 10137600
188505132 Cap_shubham_ A Jan. 8, 2023, 5:01 p.m. OK PyPy 3-64 TESTS 3 62 4403200
188510553 KanishkGoel A Jan. 8, 2023, 5:45 p.m. OK PyPy 3-64 TESTS 3 93 9318400
188509840 oneku16 A Jan. 8, 2023, 5:39 p.m. OK PyPy 3-64 TESTS 3 108 6144000
188535258 udayan8 A Jan. 9, 2023, 2:38 a.m. OK PyPy 3-64 TESTS 3 108 8499200
188527903 zhdanovich A Jan. 8, 2023, 10:28 p.m. OK PyPy 3-64 TESTS 3 108 9523200
188530317 crapcode A Jan. 9, 2023, 12:02 a.m. OK PyPy 3-64 TESTS 3 109 9932800
188507039 USYDLDH A Jan. 8, 2023, 5:16 p.m. OK PyPy 3-64 TESTS 3 139 9625600
188541314 blanks_no A Jan. 9, 2023, 4:38 a.m. OK PyPy 3-64 TESTS 3 139 9830400
188531558 zjcccc A Jan. 9, 2023, 12:53 a.m. OK PyPy 3-64 TESTS 3 139 9830400
188530378 nealzane A Jan. 9, 2023, 12:04 a.m. OK PyPy 3-64 TESTS 3 139 10035200
188543917 Priyaranjan_Khan A Jan. 9, 2023, 5:20 a.m. OK Python 3 TESTS 3 93 0
188542790 Priyaranjan_Khan A Jan. 9, 2023, 5:03 a.m. OK Python 3 TESTS 3 93 0
188505952 Vidhate A Jan. 8, 2023, 5:07 p.m. OK Python 3 TESTS 3 108 614400
188508276 eugalt A Jan. 8, 2023, 5:26 p.m. OK Python 3 TESTS 3 124 204800
188497423 ujjwal_uj A Jan. 8, 2023, 4:30 p.m. OK Python 3 TESTS 3 139 0
188500553 M4N15H4 A Jan. 8, 2023, 4:37 p.m. OK Python 3 TESTS 3 139 204800
188533400 violetd A Jan. 9, 2023, 1:53 a.m. OK Python 3 TESTS 3 155 204800
188520686 sw4g A Jan. 8, 2023, 7:42 p.m. OK Python 3 TESTS 3 156 0
188508131 eugalt A Jan. 8, 2023, 5:25 p.m. OK Python 3 TESTS 3 156 204800
188535179 IcyFrost A Jan. 9, 2023, 2:37 a.m. OK Python 3 TESTS 3 170 0
188509703 mdmundo A Jan. 8, 2023, 5:38 p.m. OK Rust 2021 TESTS 3 15 0
188509068 mdmundo A Jan. 8, 2023, 5:33 p.m. OK Rust 2021 TESTS 3 15 0
188497022 mdmundo A Jan. 8, 2023, 4:30 p.m. OK Rust 2021 TESTS 3 15 0
188540395 avnyu A Jan. 9, 2023, 4:22 a.m. OK Rust 2021 TESTS 3 15 1024000
188515956 zeronosu77108_ A Jan. 8, 2023, 6:38 p.m. OK Rust 2021 TESTS 3 61 6963200
188528550 variance A Jan. 8, 2023, 10:51 p.m. OK Rust 2021 TESTS 3 62 0

remove filters

Back to search problems