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 |
---|---|---|---|---|---|---|
1469 | Educational Codeforces Round 101 (Rated for Div. 2) | FINISHED | False | 7200 | 128186711 | Dec. 28, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 27915 ) | B | Red and Blue | PROGRAMMING | greedy |
B'Monocarp had a sequence a consisting of n + m integers a_1, a_2, ... , a_{n + m} . He painted the elements into two colors, red and blue; n elements were painted red, all other m elements were painted blue. After painting the elements, he has written two sequences r_1, r_2, ... , r_n and b_1, b_2, ... , b_m . The sequence r consisted of all red elements of a in the order they appeared in a ; similarly, the sequence b consisted of all blue elements of a in the order they appeared in a as well. Unfortunately, the original sequence was lost, and Monocarp only has the sequences r and b . He wants to restore the original sequence. In case there are multiple ways to restore it, he wants to choose a way to restore that maximizes the value of f(a) = max(0, a_1, (a_1 + a_2), (a_1 + a_2 + a_3), ... , (a_1 + a_2 + a_3 + ... + a_{n + m})) Help Monocarp to calculate the maximum possible value of f(a) . The first line contains one integer t ( 1 <= t <= 1000 ) -- the number of test cases. Then the test cases follow. Each test case consists of four lines. The first line of each test case contains one integer n ( 1 <= n <= 100 ). The second line contains n integers r_1, r_2, ... , r_n ( -100 <= r_i <= 100 ). The third line contains one integer m ( 1 <= m <= 100 ). The fourth line contains m integers b_1, b_2, ... , b_m ( -100 <= b_i <= 100 ). For each test case, print one integer -- the maximum possible value of f(a) . In the explanations for the sample test cases, red elements are marked as bold. In the first test case, one of the possible sequences a is [ mathbf{6}, 2, mathbf{-5}, 3, mathbf{7}, mathbf{-3}, -4] . In the second test case, one of the possible sequences a is [10, mathbf{1}, -3, mathbf{1}, 2, 2] . In the third test case, one of the possible seq'... |
Educational Codeforces Round 101 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
102629137 | sngkhiem | B | Dec. 28, 2020, 5:14 p.m. | OK | FPC | TESTS | 6 | 62 | 204800 | ||
102637722 | aditya48 | B | Dec. 28, 2020, 7:04 p.m. | OK | GNU C11 | TESTS | 6 | 31 | 0 | ||
102652761 | gxlois | B | Dec. 29, 2020, 3:05 a.m. | OK | GNU C11 | TESTS | 6 | 46 | 0 | ||
102655090 | ujjwalavishek | B | Dec. 29, 2020, 4:13 a.m. | OK | GNU C11 | TESTS | 6 | 46 | 0 | ||
102634789 | Sk_kr | B | Dec. 28, 2020, 6:22 p.m. | OK | GNU C11 | TESTS | 6 | 46 | 0 | ||
102637714 | Samadeol | B | Dec. 28, 2020, 7:04 p.m. | OK | GNU C11 | TESTS | 6 | 46 | 0 | ||
102630249 | poojitha_11 | B | Dec. 28, 2020, 5:25 p.m. | OK | GNU C11 | TESTS | 6 | 46 | 0 | ||
102630654 | Beku.sh | B | Dec. 28, 2020, 5:30 p.m. | OK | GNU C11 | TESTS | 6 | 46 | 0 | ||
102633266 | topol | B | Dec. 28, 2020, 6:01 p.m. | OK | GNU C11 | TESTS | 6 | 46 | 0 | ||
102652506 | Horizon0206 | B | Dec. 29, 2020, 2:56 a.m. | OK | GNU C11 | TESTS | 6 | 61 | 0 | ||
102638300 | girik5502 | B | Dec. 28, 2020, 7:14 p.m. | OK | GNU C11 | TESTS | 6 | 62 | 0 | ||
102654214 | pyyyyyy | B | Dec. 29, 2020, 3:50 a.m. | OK | GNU C++11 | TESTS | 6 | 30 | 0 | ||
102647517 | zjjws | B | Dec. 28, 2020, 11:16 p.m. | OK | GNU C++11 | TESTS | 6 | 31 | 0 | ||
102654982 | _elgir | B | Dec. 29, 2020, 4:11 a.m. | OK | GNU C++11 | TESTS | 6 | 31 | 0 | ||
102648632 | william555 | B | Dec. 29, 2020, 12:10 a.m. | OK | GNU C++11 | TESTS | 6 | 31 | 102400 | ||
102652089 | wh0816 | B | Dec. 29, 2020, 2:40 a.m. | OK | GNU C++11 | TESTS | 6 | 31 | 409600 | ||
102659732 | ziyuan949 | B | Dec. 29, 2020, 5:47 a.m. | OK | GNU C++11 | TESTS | 6 | 46 | 0 | ||
102653492 | ERUIHNIYHBKBNF | B | Dec. 29, 2020, 3:28 a.m. | OK | GNU C++11 | TESTS | 6 | 46 | 0 | ||
102652699 | Daj1aner | B | Dec. 29, 2020, 3:02 a.m. | OK | GNU C++11 | TESTS | 6 | 46 | 0 | ||
102651038 | forlight | B | Dec. 29, 2020, 1:58 a.m. | OK | GNU C++11 | TESTS | 6 | 46 | 0 | ||
102650552 | 2020gangbazi | B | Dec. 29, 2020, 1:36 a.m. | OK | GNU C++11 | TESTS | 6 | 46 | 0 | ||
102648150 | abdo.ali | B | Dec. 28, 2020, 11:45 p.m. | OK | GNU C++14 | TESTS | 6 | 46 | 0 | ||
102648349 | maddy_4737 | B | Dec. 28, 2020, 11:55 p.m. | OK | GNU C++14 | TESTS | 6 | 46 | 0 | ||
102651902 | AlpacanChicken | B | Dec. 29, 2020, 2:33 a.m. | OK | GNU C++14 | TESTS | 6 | 46 | 0 | ||
102652492 | Mj9244 | B | Dec. 29, 2020, 2:56 a.m. | OK | GNU C++14 | TESTS | 6 | 46 | 0 | ||
102654040 | atulyadav02 | B | Dec. 29, 2020, 3:44 a.m. | OK | GNU C++14 | TESTS | 6 | 46 | 0 | ||
102655629 | t_dog | B | Dec. 29, 2020, 4:28 a.m. | OK | GNU C++14 | TESTS | 6 | 46 | 0 | ||
102656525 | WolverineX | B | Dec. 29, 2020, 4:49 a.m. | OK | GNU C++14 | TESTS | 6 | 46 | 0 | ||
102659578 | shubham_9586 | B | Dec. 29, 2020, 5:45 a.m. | OK | GNU C++14 | TESTS | 6 | 46 | 0 | ||
102660494 | curious_monk | B | Dec. 29, 2020, 6 a.m. | OK | GNU C++14 | TESTS | 6 | 46 | 0 | ||
102646021 | Underdog_eagle | B | Dec. 28, 2020, 10:16 p.m. | OK | GNU C++14 | TESTS | 6 | 46 | 0 | ||
102659909 | bhubam | B | Dec. 29, 2020, 5:50 a.m. | OK | GNU C++17 | TESTS | 6 | 31 | 0 | ||
102657539 | advgr1997 | B | Dec. 29, 2020, 5:09 a.m. | OK | GNU C++17 | TESTS | 6 | 31 | 0 | ||
102654105 | guoxh | B | Dec. 29, 2020, 3:46 a.m. | OK | GNU C++17 | TESTS | 6 | 31 | 0 | ||
102659674 | Doublade | B | Dec. 29, 2020, 5:46 a.m. | OK | GNU C++17 | TESTS | 6 | 46 | 0 | ||
102659610 | crazy_djp | B | Dec. 29, 2020, 5:45 a.m. | OK | GNU C++17 | TESTS | 6 | 46 | 0 | ||
102658516 | rlmn | B | Dec. 29, 2020, 5:27 a.m. | OK | GNU C++17 | TESTS | 6 | 46 | 0 | ||
102657219 | zjx_cc | B | Dec. 29, 2020, 5:03 a.m. | OK | GNU C++17 | TESTS | 6 | 46 | 0 | ||
102656857 | prokotex | B | Dec. 29, 2020, 4:55 a.m. | OK | GNU C++17 | TESTS | 6 | 46 | 0 | ||
102660591 | ashutoshbisht0305 | B | Dec. 29, 2020, 6:01 a.m. | OK | GNU C++17 | TESTS | 6 | 46 | 0 | ||
102660141 | UjjwalPrahladka | B | Dec. 29, 2020, 5:54 a.m. | OK | GNU C++17 | TESTS | 6 | 46 | 0 | ||
102641251 | ar492 | B | Dec. 28, 2020, 8:07 p.m. | OK | GNU C++17 (64) | TESTS | 6 | 30 | 0 | ||
102650192 | franklee1015 | B | Dec. 29, 2020, 1:20 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | ||
102656922 | m.hasan01 | B | Dec. 29, 2020, 4:57 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | ||
102655610 | always_confident | B | Dec. 29, 2020, 4:28 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | ||
102654596 | anil_111 | B | Dec. 29, 2020, 4 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | ||
102652870 | Handsome2004 | B | Dec. 29, 2020, 3:09 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | ||
102652138 | r7665415553 | B | Dec. 29, 2020, 2:41 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | ||
102650208 | franklee1015 | B | Dec. 29, 2020, 1:20 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | ||
102649741 | sameerg2300 | B | Dec. 29, 2020, 12:58 a.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | ||
102643247 | AnandOza | B | Dec. 28, 2020, 8:53 p.m. | OK | GNU C++17 (64) | TESTS | 6 | 31 | 0 | ||
102635901 | bobbilyking | B | Dec. 28, 2020, 6:37 p.m. | OK | Java 11 | TESTS | 6 | 171 | 0 | ||
102659138 | sam_code | B | Dec. 29, 2020, 5:37 a.m. | OK | Java 11 | TESTS | 6 | 186 | 0 | ||
102652378 | DedsecKnight | B | Dec. 29, 2020, 2:51 a.m. | OK | Java 11 | TESTS | 6 | 186 | 0 | ||
102643173 | nietzschewalrus779 | B | Dec. 28, 2020, 8:51 p.m. | OK | Java 11 | TESTS | 6 | 186 | 0 | ||
102640290 | aCitizen | B | Dec. 28, 2020, 7:49 p.m. | OK | Java 11 | TESTS | 6 | 187 | 0 | ||
102652871 | Oopsimbad | B | Dec. 29, 2020, 3:09 a.m. | OK | Java 11 | TESTS | 6 | 187 | 0 | ||
102637849 | jethaji | B | Dec. 28, 2020, 7:06 p.m. | OK | Java 11 | TESTS | 6 | 187 | 0 | ||
102656120 | mrprince88 | B | Dec. 29, 2020, 4:40 a.m. | OK | Java 11 | TESTS | 6 | 202 | 0 | ||
102655309 | anshum_it_is | B | Dec. 29, 2020, 4:20 a.m. | OK | Java 11 | TESTS | 6 | 202 | 0 | ||
102652321 | DedsecKnight | B | Dec. 29, 2020, 2:49 a.m. | OK | Java 11 | TESTS | 6 | 202 | 0 | ||
102639210 | Pranay2516 | B | Dec. 28, 2020, 7:30 p.m. | OK | Java 8 | TESTS | 6 | 108 | 0 | ||
102633276 | nandit | B | Dec. 28, 2020, 6:01 p.m. | OK | Java 8 | TESTS | 6 | 108 | 0 | ||
102652265 | MagentaCobra | B | Dec. 29, 2020, 2:46 a.m. | OK | Java 8 | TESTS | 6 | 109 | 0 | ||
102629596 | Pranay2516 | B | Dec. 28, 2020, 5:18 p.m. | OK | Java 8 | TESTS | 6 | 109 | 0 | ||
102652037 | O-infinity | B | Dec. 29, 2020, 2:38 a.m. | OK | Java 8 | TESTS | 6 | 124 | 0 | ||
102647873 | qlf9 | B | Dec. 28, 2020, 11:32 p.m. | OK | Java 8 | TESTS | 6 | 124 | 0 | ||
102639169 | kareem3id | B | Dec. 28, 2020, 7:29 p.m. | OK | Java 8 | TESTS | 6 | 124 | 0 | ||
102627238 | ashraybharambe | B | Dec. 28, 2020, 4:58 p.m. | OK | Java 8 | TESTS | 6 | 124 | 0 | ||
102623485 | rachitpts.2454 | B | Dec. 28, 2020, 4:38 p.m. | OK | Java 8 | TESTS | 6 | 124 | 0 | ||
102657882 | Dhananjay.07 | B | Dec. 29, 2020, 5:15 a.m. | OK | Java 8 | TESTS | 6 | 139 | 0 | ||
102651237 | Spheniscine | B | Dec. 29, 2020, 2:06 a.m. | OK | Kotlin | TESTS | 6 | 155 | 1638400 | ||
102631495 | CepGamer | B | Dec. 28, 2020, 5:40 p.m. | OK | Kotlin | TESTS | 6 | 358 | 204800 | ||
102620318 | hcldpaozi | B | Dec. 28, 2020, 4:30 p.m. | OK | MS C++ | TESTS | 6 | 124 | 0 | ||
102644787 | mragab | B | Dec. 28, 2020, 9:36 p.m. | OK | MS C++ 2017 | TESTS | 6 | 109 | 921600 | ||
102644711 | mragab | B | Dec. 28, 2020, 9:34 p.m. | OK | MS C++ 2017 | TESTS | 6 | 124 | 0 | ||
102644584 | mragab | B | Dec. 28, 2020, 9:30 p.m. | OK | MS C++ 2017 | TESTS | 6 | 124 | 0 | ||
102657846 | Bhawak_Civ | B | Dec. 29, 2020, 5:14 a.m. | OK | MS C++ 2017 | TESTS | 6 | 140 | 0 | ||
102653150 | Liniou | B | Dec. 29, 2020, 3:17 a.m. | OK | MS C++ 2017 | TESTS | 6 | 140 | 0 | ||
102642100 | AntonKozhevnikov | B | Dec. 28, 2020, 8:25 p.m. | OK | MS C++ 2017 | TESTS | 6 | 140 | 0 | ||
102639559 | poulaatef | B | Dec. 28, 2020, 7:35 p.m. | OK | MS C++ 2017 | TESTS | 6 | 140 | 0 | ||
102620261 | sskhynix | B | Dec. 28, 2020, 4:30 p.m. | OK | MS C++ 2017 | TESTS | 6 | 140 | 0 | ||
102644505 | gever_gever | B | Dec. 28, 2020, 9:28 p.m. | OK | MS C++ 2017 | TESTS | 6 | 140 | 921600 | ||
102632621 | -Tarantula | B | Dec. 28, 2020, 5:53 p.m. | OK | MS C++ 2017 | TESTS | 6 | 140 | 1638400 | ||
102625981 | manasec | B | Dec. 28, 2020, 4:50 p.m. | OK | PyPy 2 | TESTS | 6 | 155 | 2867200 | ||
102640163 | Amr_elmowaled | B | Dec. 28, 2020, 7:47 p.m. | OK | PyPy 2 | TESTS | 6 | 249 | 4710400 | ||
102640062 | Amr_elmowaled | B | Dec. 28, 2020, 7:44 p.m. | OK | PyPy 2 | TESTS | 6 | 264 | 4915200 | ||
102631759 | -M1ke_Zulu- | B | Dec. 28, 2020, 5:43 p.m. | OK | PyPy 3 | TESTS | 6 | 202 | 4710400 | ||
102660590 | manish.17 | B | Dec. 29, 2020, 6:01 a.m. | OK | PyPy 3 | TESTS | 6 | 202 | 5120000 | ||
102626911 | gokufan1769 | B | Dec. 28, 2020, 4:56 p.m. | OK | PyPy 3 | TESTS | 6 | 217 | 4505600 | ||
102630014 | jabhi_18 | B | Dec. 28, 2020, 5:23 p.m. | OK | PyPy 3 | TESTS | 6 | 218 | 4403200 | ||
102627314 | DarkOverlord999 | B | Dec. 28, 2020, 4:58 p.m. | OK | PyPy 3 | TESTS | 6 | 218 | 4505600 | ||
102654931 | akshitm16 | B | Dec. 29, 2020, 4:09 a.m. | OK | PyPy 3 | TESTS | 6 | 218 | 4710400 | ||
102636644 | KevinyWu | B | Dec. 28, 2020, 6:48 p.m. | OK | PyPy 3 | TESTS | 6 | 248 | 5120000 | ||
102633029 | uttharapally.chandra | B | Dec. 28, 2020, 5:58 p.m. | OK | PyPy 3 | TESTS | 6 | 249 | 4915200 | ||
102628887 | Scopula | B | Dec. 28, 2020, 5:11 p.m. | OK | PyPy 3 | TESTS | 6 | 264 | 5427200 | ||
102619060 | Sultan308 | B | Dec. 28, 2020, 4:28 p.m. | OK | PyPy 3 | TESTS | 6 | 264 | 5632000 | ||
102629127 | elistark | B | Dec. 28, 2020, 5:14 p.m. | OK | Python 2 | TESTS | 6 | 249 | 102400 | ||
102637328 | _DontGiveUp_ | B | Dec. 28, 2020, 6:58 p.m. | OK | Python 2 | TESTS | 6 | 296 | 102400 | ||
102648471 | ComptineDunAutreEte | B | Dec. 29, 2020, 12:02 a.m. | OK | Python 2 | TESTS | 6 | 327 | 102400 | ||
102628325 | NikolaySchepalov | B | Dec. 28, 2020, 5:06 p.m. | OK | Python 3 | TESTS | 6 | 171 | 307200 | ||
102658354 | KanhuKeNanu | B | Dec. 29, 2020, 5:24 a.m. | OK | Python 3 | TESTS | 6 | 186 | 307200 | ||
102619298 | eugalt | B | Dec. 28, 2020, 4:28 p.m. | OK | Python 3 | TESTS | 6 | 186 | 6656000 | ||
102641420 | HETRAKESHFADIA | B | Dec. 28, 2020, 8:11 p.m. | OK | Python 3 | TESTS | 6 | 187 | 307200 | ||
102656634 | gouravtiwari237 | B | Dec. 29, 2020, 4:51 a.m. | OK | Python 3 | TESTS | 6 | 202 | 307200 | ||
102656599 | shiviDON | B | Dec. 29, 2020, 4:50 a.m. | OK | Python 3 | TESTS | 6 | 202 | 307200 | ||
102654855 | Bakugantoros | B | Dec. 29, 2020, 4:07 a.m. | OK | Python 3 | TESTS | 6 | 202 | 307200 | ||
102649981 | yum | B | Dec. 29, 2020, 1:09 a.m. | OK | Python 3 | TESTS | 6 | 202 | 307200 | ||
102649594 | miketh | B | Dec. 29, 2020, 12:52 a.m. | OK | Python 3 | TESTS | 6 | 202 | 307200 | ||
102645685 | yinuowang | B | Dec. 28, 2020, 10:03 p.m. | OK | Python 3 | TESTS | 6 | 202 | 307200 | ||
102629339 | optozorax | B | Dec. 28, 2020, 5:16 p.m. | OK | Rust | TESTS | 6 | 46 | 0 | ||
102655781 | satylogin | B | Dec. 29, 2020, 4:32 a.m. | OK | Rust | TESTS | 6 | 46 | 102400 |
Back to search problems