Codeforces Round 873 (Div. 1)

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
1827 Codeforces Round 873 (Div. 1) FINISHED False 7200 53105063 May 14, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3993 ) B1 Range Sorting (Easy Version) PROGRAMMING binary search dp ds greedy trees two pointers 2000

B'The only difference between this problem and the hard version is the constraints on t and n . You are given an array a , consisting of n distinct integers a_1, a_2, ldots, a_n . Define the beauty of an array p_1, p_2, ldots p_k as the minimum amount of time needed to sort this array using an arbitrary number of range-sort operations. In each range-sort operation, you will do the following: Please calculate the sum of beauty over all subarrays of array a . A subarray of an array is defined as a sequence of consecutive elements of the array. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 5 cdot 10^3 ). The description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= n <= 5 cdot 10^3 ) -- the length of the array a . The second line of each test case consists of n integers a_1,a_2, ldots, a_n ( 1 <= a_i <= 10^9 ). It is guaranteed that all elements of a are pairwise distinct. It is guaranteed that the sum of n over all test cases does not exceed 5 cdot 10^3 . For each test case, output the sum of beauty over all subarrays of array a . In the first test case: In the second test case: '...

Tutorials

Codeforces Round #873 (Div. 1 & 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
205923235 rainboy B1 May 14, 2023, 9 p.m. OK GNU C11 TESTS 24 31 9011200 2000
205878810 omeganot B1 May 14, 2023, 3:25 p.m. OK GNU C++14 TESTS 24 15 716800 2000
205910164 rfpermen B1 May 14, 2023, 6:26 p.m. OK GNU C++14 TESTS 24 15 4198400 2000
205868127 al3xstr33t B1 May 14, 2023, 3:04 p.m. OK GNU C++14 TESTS 24 15 4812800 2000
205888254 Rita_Ross B1 May 14, 2023, 3:50 p.m. OK GNU C++14 TESTS 24 15 6656000 2000
205966620 ValenciaTravis B1 May 15, 2023, 10:12 a.m. OK GNU C++14 TESTS 24 15 8499200 2000
205881238 Kaitokid B1 May 14, 2023, 3:30 p.m. OK GNU C++14 TESTS 24 15 11161600 2000
205897588 prokulijander B1 May 14, 2023, 4:21 p.m. OK GNU C++14 TESTS 24 15 13721600 2000
205958199 afuafu B1 May 15, 2023, 8:40 a.m. OK GNU C++14 TESTS 24 15 16076800 2000
205883006 Xtale_cross B1 May 14, 2023, 3:35 p.m. OK GNU C++14 TESTS 24 15 29081600 2000
205939846 E-ray B1 May 15, 2023, 4:22 a.m. OK GNU C++14 TESTS 24 15 30208000 2000
206188889 ns7407346 B1 May 17, 2023, 9:04 a.m. OK GNU C++17 TESTS 24 15 0 2000
206282890 ERROR_74 B1 May 17, 2023, 9:53 p.m. OK GNU C++17 TESTS 24 15 204800 2000
206403907 dmga44 B1 May 19, 2023, 4:46 a.m. OK GNU C++17 TESTS 24 15 512000 2000
205899653 hypeboy B1 May 14, 2023, 4:28 p.m. OK GNU C++17 TESTS 24 15 1536000 2000
205931919 A_Wallaby B1 May 15, 2023, 1:24 a.m. OK GNU C++17 TESTS 24 15 2969600 2000
205901248 nishkarsh B1 May 14, 2023, 4:33 p.m. OK GNU C++17 TESTS 24 15 5120000 2000
205877453 chen_zexing B1 May 14, 2023, 3:21 p.m. OK GNU C++17 TESTS 24 15 6041600 2000
205879043 El3ageed_Abu_Shehab B1 May 14, 2023, 3:25 p.m. OK GNU C++17 TESTS 24 15 8601600 2000
206205505 taintedsilk B1 May 17, 2023, 11:51 a.m. OK GNU C++17 TESTS 24 15 9932800 2000
205898219 aki167yuuki B1 May 14, 2023, 4:24 p.m. OK GNU C++17 TESTS 24 15 16793600 2000
205964603 foreverlasting B1 May 15, 2023, 9:50 a.m. OK GNU C++17 (64) TESTS 24 15 307200 2000
205929271 MattTheNub B1 May 14, 2023, 11:52 p.m. OK GNU C++17 (64) TESTS 24 15 409600 2000
205885324 YeongTree B1 May 14, 2023, 3:41 p.m. OK GNU C++17 (64) TESTS 24 15 409600 2000
205947090 idoproblems B1 May 15, 2023, 6:20 a.m. OK GNU C++17 (64) TESTS 24 15 409600 2000
205868945 GRT_2018 B1 May 14, 2023, 3:05 p.m. OK GNU C++17 (64) TESTS 24 15 2662400 2000
205874754 Lawali B1 May 14, 2023, 3:16 p.m. OK GNU C++17 (64) TESTS 24 15 2662400 2000
206072858 michao B1 May 16, 2023, 10:19 a.m. OK GNU C++17 (64) TESTS 24 15 2764800 2000
205973010 ALILILILILI-KHAN B1 May 15, 2023, 11:22 a.m. OK GNU C++17 (64) TESTS 24 15 3686400 2000
205960405 luanmenglei B1 May 15, 2023, 9:05 a.m. OK GNU C++17 (64) TESTS 24 15 4812800 2000
205930115 Alex_Wei B1 May 15, 2023, 12:24 a.m. OK GNU C++17 (64) TESTS 24 15 17203200 2000
206098696 OutsiderZz B1 May 16, 2023, 2:19 p.m. OK GNU C++20 (64) TESTS 24 0 102400 2000
205994281 yeminghan B1 May 15, 2023, 2:09 p.m. OK GNU C++20 (64) TESTS 24 0 307200 2000
206346056 banter_block B1 May 18, 2023, 1:33 p.m. OK GNU C++20 (64) TESTS 24 0 42188800 2000
206051552 harshbutani01 B1 May 16, 2023, 6:05 a.m. OK GNU C++20 (64) TESTS 24 15 0 2000
206007864 sirazeev B1 May 15, 2023, 4:20 p.m. OK GNU C++20 (64) TESTS 24 15 0 2000
205856355 hos.lyric B1 May 14, 2023, 2:49 p.m. OK GNU C++20 (64) TESTS 24 15 0 2000
206024849 CIXTEEN B1 May 15, 2023, 7:35 p.m. OK GNU C++20 (64) TESTS 24 15 102400 2000
206051419 harshbutani01 B1 May 16, 2023, 6:03 a.m. OK GNU C++20 (64) TESTS 24 15 102400 2000
205869052 Estinka B1 May 14, 2023, 3:05 p.m. OK GNU C++20 (64) TESTS 24 15 102400 2000
206443924 potato167 B1 May 19, 2023, 12:14 p.m. OK GNU C++20 (64) TESTS 24 15 204800 2000
205888128 rlblaster B1 May 14, 2023, 3:49 p.m. OK Go TESTS 24 62 204800 2000
205869258 0x3F B1 May 14, 2023, 3:06 p.m. OK Go TESTS 24 109 5427200 2000
205884909 knightL B1 May 14, 2023, 3:40 p.m. OK Java 11 TESTS 24 202 0 2000
205909009 The_terminator B1 May 14, 2023, 6:12 p.m. OK Java 11 TESTS 24 218 0 2000
205875511 insert_cool_handle B1 May 14, 2023, 3:17 p.m. OK Java 11 TESTS 24 249 0 2000
205961272 kasiru_69 B1 May 15, 2023, 9:14 a.m. OK Java 11 TESTS 24 265 0 2000
205883417 profchi B1 May 14, 2023, 3:36 p.m. OK Java 11 TESTS 24 608 143360000 2000
206051420 jxin31415 B1 May 16, 2023, 6:03 a.m. OK Java 11 TESTS 24 670 0 2000
205928942 kamranm B1 May 14, 2023, 11:38 p.m. OK Java 17 TESTS 24 249 104755200 2000
205907380 ajxu2 B1 May 14, 2023, 5:52 p.m. OK Java 17 TESTS 24 374 307200 2000
205870330 golions B1 May 14, 2023, 3:07 p.m. OK Java 8 TESTS 24 280 136294400 2000
206250971 vankamamidi_dheeraj B1 May 17, 2023, 4:32 p.m. OK Java 8 TESTS 24 327 38195200 2000
205873493 SecondThread B1 May 14, 2023, 3:13 p.m. OK Java 8 TESTS 24 342 38195200 2000
205869631 FastFreeTask B1 May 14, 2023, 3:06 p.m. OK Kotlin 1.6 TESTS 24 217 409600 2000
205928952 Tlatoani B1 May 14, 2023, 11:39 p.m. OK Kotlin 1.6 TESTS 24 421 0 2000
205940094 neerajam B1 May 15, 2023, 4:27 a.m. OK PyPy 3 TESTS 24 358 13107200 2000
205906170 EpicChadGamer B1 May 14, 2023, 5:38 p.m. OK PyPy 3 TESTS 24 608 11059200 2000
205998863 bronze_coder B1 May 15, 2023, 2:50 p.m. OK PyPy 3-64 TESTS 24 140 7680000 2000
206281777 titia B1 May 17, 2023, 9:19 p.m. OK PyPy 3-64 TESTS 24 140 9625600 2000
205904416 minhnguyen13082003 B1 May 14, 2023, 5:18 p.m. OK PyPy 3-64 TESTS 24 171 9625600 2000
206444282 2100030666.cseh B1 May 19, 2023, 12:17 p.m. OK PyPy 3-64 TESTS 24 218 10342400 2000
206379936 manavspg2 B1 May 18, 2023, 7:09 p.m. OK PyPy 3-64 TESTS 24 218 10444800 2000
206326432 2000030958 B1 May 18, 2023, 10:33 a.m. OK PyPy 3-64 TESTS 24 233 10342400 2000
205909154 sushmanth.dampur8780 B1 May 14, 2023, 6:14 p.m. OK PyPy 3-64 TESTS 24 280 9728000 2000
205868638 Shirotsume B1 May 14, 2023, 3:05 p.m. OK PyPy 3-64 TESTS 24 280 10240000 2000
205930817 bronze_coder B1 May 15, 2023, 12:49 a.m. OK PyPy 3-64 TESTS 24 296 11264000 2000
205872675 dyppp B1 May 14, 2023, 3:12 p.m. OK PyPy 3-64 TESTS 24 343 10752000 2000
206035578 Spheniscine B1 May 16, 2023, 12:04 a.m. OK Rust 2021 TESTS 24 15 307200 2000
205906234 cpchenpi B1 May 14, 2023, 5:38 p.m. OK Rust 2021 TESTS 24 15 1228800 2000
205906045 RustIsBestLang B1 May 14, 2023, 5:36 p.m. OK Rust 2021 TESTS 24 15 1228800 2000
205875455 sansen B1 May 14, 2023, 3:17 p.m. OK Rust 2021 TESTS 24 62 716800 2000
205895013 titia B1 May 14, 2023, 4:12 p.m. OK Rust 2021 TESTS 24 171 409600 2000
205904885 liut B1 May 14, 2023, 5:22 p.m. OK Rust 2021 TESTS 24 187 1024000 2000

remove filters

Back to search problems