Codeforces Round 800 (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
1693 Codeforces Round 800 (Div. 1) FINISHED False 7200 76433099 June 16, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 852 ) D Decinc Dividing PROGRAMMING brute force data structures divide and conquer dp greedy 2800

B"Let's call an array a of m integers a_1, a_2, ldots, a_m Decinc if a can be made increasing by removing a decreasing subsequence (possibly empty) from it. You are given a permutation p of numbers from 1 to n . Find the number of pairs of integers (l, r) with 1 <= l <= r <= n such that p[l ldots r] (the subarray of p from l to r ) is a Decinc array. The first line contains a single integer n ( 1 <= n <= 2 cdot 10^5 ) -- the size of p . The second line contains n integers p_1, p_2, ldots, p_n ( 1 <= p_i <= n , all p_i are distinct) -- elements of the permutation. Output the number of pairs of integers (l, r) such that p[l ldots r] (the subarray of p from l to r ) is a Decinc array. (1 <= l <= r <= n) In the first sample, all subarrays are Decinc. In the second sample, all subarrays except p[1 ldots 6] and p[2 ldots 6] are Decinc. "...

Tutorials

Codeforces Round #800 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
160893520 rainboy D June 16, 2022, 5:42 p.m. OK GNU C11 TESTS 50 108 7168000 2800
160880935 FutureGadgetLaboratory D June 16, 2022, 4:24 p.m. OK GNU C++14 TESTS 50 62 2560000 2800
160883385 ugly2333 D June 16, 2022, 4:30 p.m. OK GNU C++14 TESTS 50 62 3584000 2800
160902518 meyi D June 16, 2022, 7:42 p.m. OK GNU C++14 TESTS 50 77 3174400 2800
160891272 Drice D June 16, 2022, 5:22 p.m. OK GNU C++14 TESTS 50 78 6758400 2800
160913655 L7-56 D June 17, 2022, 2:13 a.m. OK GNU C++14 TESTS 50 78 8601600 2800
160870318 icfan D June 16, 2022, 3:58 p.m. OK GNU C++14 TESTS 50 78 9625600 2800
160888313 Potassium D June 16, 2022, 5:03 p.m. OK GNU C++14 TESTS 50 93 14848000 2800
160883519 Isonan D June 16, 2022, 4:30 p.m. OK GNU C++14 TESTS 50 93 16179200 2800
160888611 Potassium D June 16, 2022, 5:04 p.m. OK GNU C++14 TESTS 50 108 13209600 2800
160864182 djq_cpp D June 16, 2022, 3:44 p.m. OK GNU C++14 TESTS 50 109 6963200 2800
160890221 Grzmot D June 16, 2022, 5:14 p.m. OK GNU C++17 TESTS 50 62 1638400 2800
160901849 peti1234 D June 16, 2022, 7:31 p.m. OK GNU C++17 TESTS 50 62 1638400 2800
160882810 penguinhacker D June 16, 2022, 4:28 p.m. OK GNU C++17 TESTS 50 78 2764800 2800
160907137 patou D June 16, 2022, 9:33 p.m. OK GNU C++17 TESTS 50 78 3481600 2800
160918209 maomao90 D June 17, 2022, 4:06 a.m. OK GNU C++17 TESTS 51 78 5939200 2800
160884221 bluesky_hope D June 16, 2022, 4:32 p.m. OK GNU C++17 TESTS 50 78 7270400 2800
160862911 izone D June 16, 2022, 3:41 p.m. OK GNU C++17 TESTS 50 140 20582400 2800
160913644 IanDeHaan D June 17, 2022, 2:13 a.m. OK GNU C++17 TESTS 50 156 921600 2800
160848374 Radewoosh D June 16, 2022, 3:10 p.m. OK GNU C++17 TESTS 50 156 52633600 2800
160885120 voidmax D June 16, 2022, 4:33 p.m. OK GNU C++17 TESTS 50 171 6553600 2800
160876864 kal013 D June 16, 2022, 4:14 p.m. OK GNU C++17 (64) TESTS 50 46 3584000 2800
160912951 basic_string D June 17, 2022, 1:50 a.m. OK GNU C++17 (64) TESTS 50 46 10035200 2800
160908031 tsukiko_tsutsukakushi D June 16, 2022, 10:02 p.m. OK GNU C++17 (64) TESTS 50 46 11366400 2800
160879385 dfcmd D June 16, 2022, 4:20 p.m. OK GNU C++17 (64) TESTS 50 62 6451200 2800
160898785 Xellos D June 16, 2022, 6:44 p.m. OK GNU C++17 (64) TESTS 50 77 34304000 2800
160876467 tabr D June 16, 2022, 4:13 p.m. OK GNU C++17 (64) TESTS 50 78 819200 2800
160872216 Nyaan D June 16, 2022, 4:02 p.m. OK GNU C++17 (64) TESTS 50 93 12083200 2800
160889671 Roundgod D June 16, 2022, 5:10 p.m. OK GNU C++17 (64) TESTS 50 140 2457600 2800
160876183 AoLiGei D June 16, 2022, 4:12 p.m. OK GNU C++17 (64) TESTS 50 140 16076800 2800
160863267 noimi D June 16, 2022, 3:41 p.m. OK GNU C++17 (64) TESTS 50 171 10342400 2800
160911665 Tyyyyyy D June 17, 2022, 1:03 a.m. OK GNU C++20 (64) TESTS 50 31 10752000 2800
160851586 Heltion D June 16, 2022, 3:16 p.m. OK GNU C++20 (64) TESTS 50 46 1638400 2800
160917612 czhang2718 D June 17, 2022, 3:53 a.m. OK GNU C++20 (64) TESTS 51 46 2457600 2800
160875853 kevinxiehk D June 16, 2022, 4:11 p.m. OK GNU C++20 (64) TESTS 50 46 3174400 2800
160878704 ynsm D June 16, 2022, 4:19 p.m. OK GNU C++20 (64) TESTS 50 46 6451200 2800
160876564 Deemo D June 16, 2022, 4:13 p.m. OK GNU C++20 (64) TESTS 50 46 6451200 2800
160882188 SomethingNew D June 16, 2022, 4:27 p.m. OK GNU C++20 (64) TESTS 50 46 7987200 2800
160900989 Ripan-Roy D June 16, 2022, 7:17 p.m. OK GNU C++20 (64) TESTS 50 46 10035200 2800
160868923 Petr D June 16, 2022, 3:54 p.m. OK GNU C++20 (64) TESTS 50 46 10444800 2800
160911639 fivefourthreeone D June 17, 2022, 1:02 a.m. OK GNU C++20 (64) TESTS 50 61 9625600 2800
160913701 siganai D June 17, 2022, 2:14 a.m. OK PyPy 3-64 TESTS 50 218 30310400 2800
160882113 qwerty787788 D June 16, 2022, 4:27 p.m. OK Rust 2021 TESTS 50 514 27852800 2800

remove filters

Back to search problems