Educational Codeforces Round 148 (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
1832 Educational Codeforces Round 148 (Rated for Div. 2) FINISHED False 7200 47921099 May 12, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1920 ) D2 Red-Blue Operations (Hard Version) PROGRAMMING binary search constructive algorithms greedy implementation math 2400

B"The only difference between easy and hard versions is the maximum values of n and q . You are given an array, consisting of n integers. Initially, all elements are red. You can apply the following operation to the array multiple times. During the i -th operation, you select an element of the array; then: The operations are numbered from 1 , i. xe2 x80 x89e. during the first operation some element is changed by 1 and so on. You are asked q queries of the following form: Note that the operations don't affect the array between queries, all queries are asked on the initial array a . The first line contains two integers n and q ( 1 <= n, q <= 2 cdot 10^5 ) -- the number of elements in the array and the number of queries. The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^9 ). The third line contains q integers k_1, k_2, ... , k_q ( 1 <= k_j <= 10^9 ). For each query, print a single integer -- the largest minimum that the array can have after you apply exactly k operations to it. "...

Tutorials

116454

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
206152483 tahtarovserver D2 May 16, 2023, 8:01 p.m. OK C# 8 TESTS 68 218 55193600 2400
205777057 KanuaK D2 May 14, 2023, 2:31 a.m. OK GNU C++14 TESTS 68 156 2355200 2400
205936295 _anodiebird D2 May 15, 2023, 3:13 a.m. OK GNU C++14 TESTS 68 156 3174400 2400
206072724 2018ljw D2 May 16, 2023, 10:17 a.m. OK GNU C++14 TESTS 68 156 3379200 2400
205928860 KING_OF_TURTLE D2 May 14, 2023, 11:35 p.m. OK GNU C++14 TESTS 68 156 7987200 2400
206053689 Yuki991 D2 May 16, 2023, 6:34 a.m. OK GNU C++14 TESTS 68 171 1638400 2400
206033273 timmyfeng D2 May 15, 2023, 10:29 p.m. OK GNU C++14 TESTS 68 171 1638400 2400
205833613 Shui_Dream D2 May 14, 2023, 12:51 p.m. OK GNU C++14 TESTS 68 171 1638400 2400
205833570 Shui_Dream D2 May 14, 2023, 12:51 p.m. OK GNU C++14 TESTS 68 171 1638400 2400
205783825 Je3ter D2 May 14, 2023, 4:52 a.m. OK GNU C++14 TESTS 68 171 1638400 2400
206322606 sizihan D2 May 18, 2023, 9:53 a.m. OK GNU C++14 TESTS 68 171 3174400 2400
206347563 201716080213 D2 May 18, 2023, 1:47 p.m. OK GNU C++17 TESTS 68 171 1638400 2400
206041886 Lskkkno3 D2 May 16, 2023, 3:14 a.m. OK GNU C++17 TESTS 68 171 1638400 2400
205967839 SoiMae D2 May 15, 2023, 10:26 a.m. OK GNU C++17 TESTS 68 171 1638400 2400
205780686 LRL52 D2 May 14, 2023, 3:54 a.m. OK GNU C++17 TESTS 68 171 1638400 2400
206223193 DenisKarpenko D2 May 17, 2023, 2:31 p.m. OK GNU C++17 TESTS 68 171 3174400 2400
206205970 voidmind D2 May 17, 2023, 11:55 a.m. OK GNU C++17 TESTS 68 171 3379200 2400
205791258 RobeZH D2 May 14, 2023, 6:19 a.m. OK GNU C++17 TESTS 68 171 11776000 2400
205836809 Coding_wqy D2 May 14, 2023, 1:26 p.m. OK GNU C++17 TESTS 68 186 1638400 2400
206361604 walk_alone D2 May 18, 2023, 3:54 p.m. OK GNU C++17 TESTS 68 186 3174400 2400
206346881 201716080213 D2 May 18, 2023, 1:40 p.m. OK GNU C++17 TESTS 68 187 1638400 2400
205899611 UltramanDecker D2 May 14, 2023, 4:28 p.m. OK GNU C++17 (64) TESTS 68 124 1945600 2400
206570115 Aviously D2 May 19, 2023, 9:03 p.m. OK GNU C++17 (64) TESTS 68 124 2457600 2400
206422797 C0md3r D2 May 19, 2023, 8:40 a.m. OK GNU C++17 (64) TESTS 68 124 2457600 2400
206293624 fairy_land D2 May 18, 2023, 3:33 a.m. OK GNU C++17 (64) TESTS 68 124 2457600 2400
206206420 The5threich D2 May 17, 2023, 11:59 a.m. OK GNU C++17 (64) TESTS 68 124 3174400 2400
205953681 ppt1524 D2 May 15, 2023, 7:45 a.m. OK GNU C++17 (64) TESTS 68 124 3174400 2400
205814452 YXH_XianYu D2 May 14, 2023, 9:38 a.m. OK GNU C++17 (64) TESTS 68 124 3174400 2400
205796382 bkifhr10 D2 May 14, 2023, 7:05 a.m. OK GNU C++17 (64) TESTS 68 124 3174400 2400
206203506 trash2026 D2 May 17, 2023, 11:34 a.m. OK GNU C++17 (64) TESTS 68 124 3276800 2400
205773561 Alex_Wei D2 May 14, 2023, 12:32 a.m. OK GNU C++17 (64) TESTS 67 124 3481600 2400
206436684 _Gawd_ D2 May 19, 2023, 10:59 a.m. OK GNU C++20 (64) TESTS 68 93 1638400 2400
206266869 rgnerdplayer D2 May 17, 2023, 6:05 p.m. OK GNU C++20 (64) TESTS 68 93 1638400 2400
206162242 riseacat D2 May 17, 2023, 12:38 a.m. OK GNU C++20 (64) TESTS 68 93 1638400 2400
206063143 OutsiderZz D2 May 16, 2023, 8:36 a.m. OK GNU C++20 (64) TESTS 68 93 1638400 2400
206049083 epoche D2 May 16, 2023, 5:27 a.m. OK GNU C++20 (64) TESTS 68 93 1638400 2400
206048755 epoche D2 May 16, 2023, 5:22 a.m. OK GNU C++20 (64) TESTS 68 93 1638400 2400
205774256 GJ.Ro D2 May 14, 2023, 12:58 a.m. OK GNU C++20 (64) TESTS 67 93 1638400 2400
206025076 overnap D2 May 15, 2023, 7:38 p.m. OK GNU C++20 (64) TESTS 68 93 2457600 2400
206437398 zyy123456 D2 May 19, 2023, 11:07 a.m. OK GNU C++20 (64) TESTS 68 93 3174400 2400
206335941 0-4 D2 May 18, 2023, 11:59 a.m. OK GNU C++20 (64) TESTS 68 93 3174400 2400
206152949 jxin31415 D2 May 16, 2023, 8:09 p.m. OK Java 11 TESTS 68 826 20992000 2400
206313664 Atuer D2 May 18, 2023, 8:24 a.m. OK Java 17 TESTS 68 405 614400 2400
205990140 TCchen D2 May 15, 2023, 1:29 p.m. OK Java 17 TESTS 68 451 9830400 2400
206014672 Aemon D2 May 15, 2023, 5:31 p.m. OK Java 17 TESTS 68 670 23244800 2400
205940895 alexrcoleman D2 May 15, 2023, 4:41 a.m. OK Java 8 TESTS 68 1278 17100800 2400
206170809 Asnkkzk D2 May 17, 2023, 4:37 a.m. OK Java 8 TESTS 68 1357 0 2400
205938559 neerajam D2 May 15, 2023, 3:58 a.m. OK PyPy 3 TESTS 68 732 27136000 2400
205814394 2000031331 D2 May 14, 2023, 9:38 a.m. OK PyPy 3 TESTS 68 733 27136000 2400
206254135 lalith_6055 D2 May 17, 2023, 5:09 p.m. OK PyPy 3 TESTS 68 733 27443200 2400
205959937 maxliang D2 May 15, 2023, 9 a.m. OK PyPy 3 TESTS 68 779 21606400 2400
206429030 varma99 D2 May 19, 2023, 9:38 a.m. OK PyPy 3-64 TESTS 68 249 38707200 2400
205942919 Karthik1106 D2 May 15, 2023, 5:14 a.m. OK PyPy 3-64 TESTS 68 249 38707200 2400
206002282 bkifhr7 D2 May 15, 2023, 3:23 p.m. OK PyPy 3-64 TESTS 68 264 38297600 2400
205812508 Little_Sheep_Yawn D2 May 14, 2023, 9:22 a.m. OK PyPy 3-64 TESTS 68 264 38707200 2400
205788009 Ayush710 D2 May 14, 2023, 5:47 a.m. OK PyPy 3-64 TESTS 68 264 38707200 2400
206377894 manavspg2 D2 May 18, 2023, 6:42 p.m. OK PyPy 3-64 TESTS 68 265 38707200 2400
206317813 ftiasch D2 May 18, 2023, 9:05 a.m. OK PyPy 3-64 TESTS 68 265 38707200 2400
206317616 2000031264 D2 May 18, 2023, 9:03 a.m. OK PyPy 3-64 TESTS 68 280 38297600 2400
206315352 soudhamini_2000031088 D2 May 18, 2023, 8:41 a.m. OK PyPy 3-64 TESTS 68 280 38297600 2400
206130923 2000030958 D2 May 16, 2023, 3:59 p.m. OK PyPy 3-64 TESTS 68 280 38297600 2400
206204795 Chinayz D2 May 17, 2023, 11:45 a.m. OK Python 3 TESTS 68 655 42393600 2400
206075899 y61329697 D2 May 16, 2023, 10:50 a.m. OK Python 3 TESTS 68 655 42393600 2400
205925093 HassanKh2002 D2 May 14, 2023, 9:42 p.m. OK Python 3 TESTS 68 670 42905600 2400
205922993 sheriff1231 D2 May 14, 2023, 8:57 p.m. OK Python 3 TESTS 68 670 42905600 2400
205817552 Tankard D2 May 14, 2023, 10:06 a.m. OK Python 3 TESTS 68 685 42905600 2400
205805729 cred_coder D2 May 14, 2023, 8:25 a.m. OK Python 3 TESTS 68 685 42905600 2400
205842441 pennymagic156 D2 May 14, 2023, 2:30 p.m. OK Python 3 TESTS 68 701 37068800 2400
205994392 nalemy D2 May 15, 2023, 2:10 p.m. OK Python 3 TESTS 68 701 42905600 2400
205902790 sridharsiddi D2 May 14, 2023, 4:50 p.m. OK Python 3 TESTS 68 701 42905600 2400
206442497 2100030666.cseh D2 May 19, 2023, 11:59 a.m. OK Python 3 TESTS 68 732 42905600 2400
205829918 robostac D2 May 14, 2023, 12:12 p.m. OK Rust 2021 TESTS 68 77 10342400 2400

remove filters

Back to search problems