Educational Codeforces Round 125 (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
1657 Educational Codeforces Round 125 (Rated for Div. 2) FINISHED False 7200 83862899 March 22, 2022, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 22890 ) B XY Sequence PROGRAMMING greedy

B"You are given four integers n , B , x and y . You should build a sequence a_0, a_1, a_2, ... , a_n where a_0 = 0 and for each i ge 1 you can choose: Your goal is to build such a sequence a that a_i <= B for all i and sum limits_{i=0}^{n}{a_i} is maximum possible. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Next t cases follow. The first and only line of each test case contains four integers n , B , x and y ( 1 <= n <= 2 cdot 10^5 ; 1 <= B, x, y <= 10^9 ). It's guaranteed that the total sum of n doesn't exceed 2 cdot 10^5 . For each test case, print one integer -- the maximum possible sum limits_{i=0}^{n}{a_i} . In the first test case, the optimal sequence a is [0, 1, 2, 3, 4, 5] . In the second test case, the optimal sequence a is [0, 10^9, 0, 10^9, 0, 10^9, 0, 10^9] . In the third test case, the optimal sequence a is [0, -3, -6, 1, -2] . "...

Tutorials

101161

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
150607037 onlyoldpig B March 23, 2022, 12:22 p.m. OK Clang++17 Diagnostics TESTS 25 31 0
150581055 1918472049 B March 23, 2022, 7:23 a.m. OK Clang++17 Diagnostics TESTS 25 46 0
150540664 msairamreddy13 B March 22, 2022, 6:28 p.m. OK Clang++17 Diagnostics TESTS 25 217 1638400
150570439 1287971889 B March 23, 2022, 5:03 a.m. OK Clang++17 Diagnostics TESTS 25 592 3788800
150540539 Dipressible B March 22, 2022, 6:27 p.m. OK GNU C11 TESTS 25 31 0
150585522 123ERG B March 23, 2022, 8:21 a.m. OK GNU C11 TESTS 25 31 0
150550361 GTrigger B March 22, 2022, 8:51 p.m. OK GNU C11 TESTS 25 46 0
150563880 lazychen B March 23, 2022, 2:51 a.m. OK GNU C11 TESTS 25 46 0
150567750 huangzengyao B March 23, 2022, 4:15 a.m. OK GNU C11 TESTS 25 46 0
150570933 loki_7 B March 23, 2022, 5:09 a.m. OK GNU C11 TESTS 25 46 0
150584807 keutoi B March 23, 2022, 8:12 a.m. OK GNU C11 TESTS 25 46 0
150591383 Lao_Nan_Ren B March 23, 2022, 9:29 a.m. OK GNU C11 TESTS 25 46 0
150546298 yashmusk321 B March 22, 2022, 7:46 p.m. OK GNU C11 TESTS 25 46 0
150629524 SaiPranu B March 23, 2022, 4:07 p.m. OK GNU C11 TESTS 25 46 307200
150654356 Ganesh_aggarwal B March 23, 2022, 10:20 p.m. OK GNU C++14 TESTS 25 15 0
150654485 HariCharan_1010 B March 23, 2022, 10:24 p.m. OK GNU C++14 TESTS 25 15 0
150660770 MiTuA B March 24, 2022, 1:53 a.m. OK GNU C++14 TESTS 25 15 0
150661088 wxg_Jay B March 24, 2022, 2:03 a.m. OK GNU C++14 TESTS 25 15 0
150665587 xing4c B March 24, 2022, 4:05 a.m. OK GNU C++14 TESTS 25 15 0
150666328 underrated__coder B March 24, 2022, 4:22 a.m. OK GNU C++14 TESTS 25 15 0
150669734 yunic710 B March 24, 2022, 5:30 a.m. OK GNU C++14 TESTS 25 15 0
150669727 prashant_pks B March 24, 2022, 5:30 a.m. OK GNU C++14 TESTS 25 15 0
150668745 __iwtacm__ B March 24, 2022, 5:12 a.m. OK GNU C++14 TESTS 25 15 0
150659625 vestedpolecat54 B March 24, 2022, 1:18 a.m. OK GNU C++14 TESTS 25 15 0
150577288 kk19212 B March 23, 2022, 6:39 a.m. OK GNU C++17 TESTS 25 0 0
150540131 Subhrajit123 B March 22, 2022, 6:22 p.m. OK GNU C++17 TESTS 25 0 0
150571993 JerryBlack B March 23, 2022, 5:24 a.m. OK GNU C++17 TESTS 25 0 0
150588033 pjs21703 B March 23, 2022, 8:50 a.m. OK GNU C++17 TESTS 25 0 0
150669371 momai B March 24, 2022, 5:23 a.m. OK GNU C++17 TESTS 25 15 0
150670002 SK_49 B March 24, 2022, 5:35 a.m. OK GNU C++17 TESTS 25 15 0
150669308 kartikPant23 B March 24, 2022, 5:22 a.m. OK GNU C++17 TESTS 25 15 0
150671510 shivamsood16 B March 24, 2022, 6:02 a.m. OK GNU C++17 TESTS 25 15 0
150671006 sumitverma B March 24, 2022, 5:52 a.m. OK GNU C++17 TESTS 25 15 0
150670038 Ji_Kuai B March 24, 2022, 5:35 a.m. OK GNU C++17 TESTS 25 15 0
150537860 tushar2805 B March 22, 2022, 5:57 p.m. OK GNU C++17 (64) TESTS 25 0 0
150561826 Asnoway B March 23, 2022, 1:59 a.m. OK GNU C++17 (64) TESTS 25 0 0
150651129 neolith B March 23, 2022, 9:09 p.m. OK GNU C++17 (64) TESTS 25 15 0
150670777 Prashant94157 B March 24, 2022, 5:48 a.m. OK GNU C++17 (64) TESTS 25 15 0
150670115 MrSkullduggery B March 24, 2022, 5:37 a.m. OK GNU C++17 (64) TESTS 25 15 0
150641416 TAM B March 23, 2022, 6:34 p.m. OK GNU C++17 (64) TESTS 25 15 0
150627429 startrek4 B March 23, 2022, 3:41 p.m. OK GNU C++17 (64) TESTS 25 15 0
150625995 NoiseLess B March 23, 2022, 3:25 p.m. OK GNU C++17 (64) TESTS 25 15 0
150625327 spartanes B March 23, 2022, 3:17 p.m. OK GNU C++17 (64) TESTS 25 15 0
150623933 zlc1114 B March 23, 2022, 3:03 p.m. OK GNU C++17 (64) TESTS 25 15 0
150542506 iron_nicko B March 22, 2022, 6:53 p.m. OK GNU C++20 (64) TESTS 25 0 0
150544903 ajaykN017 B March 22, 2022, 7:26 p.m. OK GNU C++20 (64) TESTS 25 0 0
150563884 cephian B March 23, 2022, 2:52 a.m. OK GNU C++20 (64) TESTS 25 0 0
150632192 CyberCow B March 23, 2022, 4:41 p.m. OK GNU C++20 (64) TESTS 25 0 0
150668289 pratham_bansal B March 24, 2022, 5:03 a.m. OK GNU C++20 (64) TESTS 25 15 0
150671187 cupvis B March 24, 2022, 5:56 a.m. OK GNU C++20 (64) TESTS 25 15 0
150662158 xdm_1 B March 24, 2022, 2:34 a.m. OK GNU C++20 (64) TESTS 25 15 0
150663254 wumbus B March 24, 2022, 3:05 a.m. OK GNU C++20 (64) TESTS 25 15 0
150665877 I_Love_My_Sherniii B March 24, 2022, 4:12 a.m. OK GNU C++20 (64) TESTS 25 15 0
150666407 ap_2089 B March 24, 2022, 4:23 a.m. OK GNU C++20 (64) TESTS 25 15 0
150564316 QianciJun B March 23, 2022, 3:03 a.m. OK Go TESTS 25 30 102400
150561842 quanjun B March 23, 2022, 2 a.m. OK Go TESTS 25 327 307200
150659698 gsi34 B March 24, 2022, 1:19 a.m. OK Java 11 TESTS 25 155 0
150634151 g0dzilla B March 23, 2022, 5:07 p.m. OK Java 11 TESTS 25 170 0
150567575 SaberXpro B March 23, 2022, 4:12 a.m. OK Java 11 TESTS 25 171 0
150588821 naman5811 B March 23, 2022, 8:59 a.m. OK Java 11 TESTS 25 171 0
150579379 akashkumarkly B March 23, 2022, 7:03 a.m. OK Java 11 TESTS 25 171 0
150538780 procrastinate7 B March 22, 2022, 6:07 p.m. OK Java 11 TESTS 25 171 0
150567443 aditya2024 B March 23, 2022, 4:09 a.m. OK Java 11 TESTS 25 186 0
150616307 kartheek542 B March 23, 2022, 1:55 p.m. OK Java 11 TESTS 25 186 0
150576706 the_unseen B March 23, 2022, 6:32 a.m. OK Java 11 TESTS 25 186 0
150563938 ytripathi891 B March 23, 2022, 2:53 a.m. OK Java 11 TESTS 25 186 0
150577557 mbhupendra46 B March 23, 2022, 6:42 a.m. OK Java 8 TESTS 25 93 0
150551924 abdelrahmanfekri B March 22, 2022, 9:22 p.m. OK Java 8 TESTS 25 108 0
150590815 ShivamMehta B March 23, 2022, 9:22 a.m. OK Java 8 TESTS 25 108 5734400
150571235 DEMO23 B March 23, 2022, 5:13 a.m. OK Java 8 TESTS 25 109 0
150643782 CrinklyGolem B March 23, 2022, 7:08 p.m. OK Java 8 TESTS 25 109 0
150611129 Yehia8 B March 23, 2022, 1:09 p.m. OK Java 8 TESTS 25 109 0
150606393 headshot1703 B March 23, 2022, 12:16 p.m. OK Java 8 TESTS 25 109 0
150557971 adeon B March 23, 2022, 12:04 a.m. OK Java 8 TESTS 25 109 0
150670503 P_Key26dec B March 24, 2022, 5:44 a.m. OK Java 8 TESTS 25 109 17817600
150669385 HemantSood B March 24, 2022, 5:23 a.m. OK Java 8 TESTS 25 139 0
150577832 _Astron B March 23, 2022, 6:45 a.m. OK Kotlin 1.4 TESTS 25 139 102400
150541926 qsqnk B March 22, 2022, 6:46 p.m. OK Kotlin 1.5 TESTS 25 264 0
150586903 _w_z B March 23, 2022, 8:38 a.m. OK MS C++ 2017 TESTS 25 15 0
150611364 Damirca B March 23, 2022, 1:12 p.m. OK MS C++ 2017 TESTS 25 15 0
150571014 CaiNiao666 B March 23, 2022, 5:10 a.m. OK MS C++ 2017 TESTS 25 15 0
150593451 huangjuanjuan B March 23, 2022, 9:55 a.m. OK MS C++ 2017 TESTS 25 30 0
150624088 Shishira B March 23, 2022, 3:05 p.m. OK MS C++ 2017 TESTS 25 30 1638400
150590261 Levi__Ackerman B March 23, 2022, 9:16 a.m. OK MS C++ 2017 TESTS 25 46 0
150615850 shuitishashou B March 23, 2022, 1:51 p.m. OK MS C++ 2017 TESTS 25 46 0
150582043 XQB B March 23, 2022, 7:35 a.m. OK MS C++ 2017 TESTS 25 46 0
150599186 mikasamikoto B March 23, 2022, 11:04 a.m. OK MS C++ 2017 TESTS 25 46 1638400
150561029 Levi__Ackerman B March 23, 2022, 1:35 a.m. OK MS C++ 2017 TESTS 25 46 1638400
150555458 Matumba B March 22, 2022, 10:46 p.m. OK .NET Core C# TESTS 25 109 2560000
150554406 toxahak B March 22, 2022, 10:17 p.m. OK Node.js TESTS 25 186 5324800
150570093 TwoMeals B March 23, 2022, 4:57 a.m. OK PyPy 2 TESTS 25 248 3072000
150626536 vaibhav_india B March 23, 2022, 3:31 p.m. OK PyPy 3 TESTS 25 109 3788800
150575478 kwin B March 23, 2022, 6:18 a.m. OK PyPy 3 TESTS 25 124 3993600
150546013 hxu10 B March 22, 2022, 7:42 p.m. OK PyPy 3 TESTS 25 124 5632000
150658401 toam B March 24, 2022, 12:35 a.m. OK PyPy 3 TESTS 25 140 5324800
150670004 hjkim B March 24, 2022, 5:35 a.m. OK PyPy 3 TESTS 25 140 8601600
150642648 Aestroix B March 23, 2022, 6:52 p.m. OK PyPy 3 TESTS 25 171 8806400
150566205 rutz12 B March 23, 2022, 3:45 a.m. OK PyPy 3 TESTS 25 233 5427200
150538909 pranthoR B March 22, 2022, 6:09 p.m. OK PyPy 3 TESTS 25 234 6451200
150575149 MohammadsadraSedighin B March 23, 2022, 6:14 a.m. OK PyPy 3 TESTS 25 249 4915200
150642922 bhupat2000 B March 23, 2022, 6:56 p.m. OK PyPy 3 TESTS 25 249 5324800
150570940 viraldoshi B March 23, 2022, 5:09 a.m. OK PyPy 3-64 TESTS 25 77 6246400
150630830 nitish420 B March 23, 2022, 4:22 p.m. OK PyPy 3-64 TESTS 25 93 5017600
150576992 notTehlka B March 23, 2022, 6:35 a.m. OK PyPy 3-64 TESTS 25 93 5017600
150662349 Lhohelhohehmm B March 24, 2022, 2:39 a.m. OK PyPy 3-64 TESTS 25 93 5222400
150583656 raushnn B March 23, 2022, 7:57 a.m. OK PyPy 3-64 TESTS 25 93 9420800
150649143 wolfram_ B March 23, 2022, 8:34 p.m. OK PyPy 3-64 TESTS 25 108 7987200
150641420 xenonide B March 23, 2022, 6:34 p.m. OK PyPy 3-64 TESTS 25 108 8396800
150556313 MistaAsh B March 22, 2022, 11:10 p.m. OK PyPy 3-64 TESTS 25 108 8704000
150548755 Liberator187 B March 22, 2022, 8:24 p.m. OK PyPy 3-64 TESTS 25 108 9523200
150668971 Pandeyjiii8250 B March 24, 2022, 5:16 a.m. OK PyPy 3-64 TESTS 25 108 10137600
150642245 elistark B March 23, 2022, 6:46 p.m. OK Python 2 TESTS 25 78 0
150537445 Bishwanath B March 22, 2022, 5:53 p.m. OK Python 3 TESTS 25 77 0
150607703 2019286 B March 23, 2022, 12:30 p.m. OK Python 3 TESTS 25 109 0
150641364 pushkar_j B March 23, 2022, 6:33 p.m. OK Python 3 TESTS 25 109 512000
150622502 190330257h B March 23, 2022, 2:50 p.m. OK Python 3 TESTS 25 124 0
150609829 1Demiurg B March 23, 2022, 12:52 p.m. OK Python 3 TESTS 25 124 0
150609173 1Demiurg B March 23, 2022, 12:46 p.m. OK Python 3 TESTS 25 124 0
150595893 woodsman B March 23, 2022, 10:26 a.m. OK Python 3 TESTS 25 124 0
150589237 PENDYALA_AKHILENDRA B March 23, 2022, 9:04 a.m. OK Python 3 TESTS 25 124 0
150558255 BitmasKing B March 23, 2022, 12:12 a.m. OK Python 3 TESTS 25 124 0
150541955 sagamantus B March 22, 2022, 6:46 p.m. OK Python 3 TESTS 25 124 0
150587912 Spheniscine B March 23, 2022, 8:49 a.m. OK Rust 2021 TESTS 25 15 102400

remove filters

Back to search problems