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 |
---|---|---|---|---|---|---|
1603 | Codeforces Round 752 (Div. 1) | FINISHED | False | 7200 | 101575463 | Oct. 30, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2086 ) | C | Extreme Extension | PROGRAMMING | dp greedy math number theory | 2300 |
B"For an array b of n integers, the extreme value of this array is the minimum number of times (possibly, zero) the following operation has to be performed to make b non-decreasing: For example, if b = [2, 4, 3] and index 2 gets selected, then the possible arrays after this operation are [2, underline{1}, underline{3}, 3] , [2, underline{2}, underline{2}, 3] , or [2, underline{3}, underline{1}, 3] . And consequently, for this array, this single operation is enough to make it non-decreasing: [2, 4, 3] rightarrow [2, underline{2}, underline{2}, 3] . It's easy to see that every array of positive integers can be made non-decreasing this way. YouKn0wWho has an array a of n integers. Help him find the sum of extreme values of all nonempty subarrays of a modulo 998 ,244 ,353 . If a subarray appears in a multiple times, its extreme value should be counted the number of times it appears. An array d is a subarray of an array c if d can be obtained from c by deletion of several (possibly, zero or all) elements from the beginning and several (possibly, zero or all) elements from the end. The first line contains a single integer t ( 1 <= t <= 10 ,000 ) -- the number of test cases. The first line of each test case contains a single integer n ( 1 <= n <= 10^5 ). The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 10^5 ). It is guaranteed that the sum of n over all test cases doesn't exceed 10^5 . For each test case, print a single integer -- the sum of extreme values of all subarrays of a modulo 998 ,244 ,353 . Let f(l, r) denote the extreme value of [a_l, a_{l+1}, ldots, a_r] . In the first test case, [5, 4, 3] rightarrow [ underline{3}, underline{2}, 4, 3] rightarrow [3, 2, underline{2}, underline{2}, 3] rightarrow [ underline{1}, u"... |
Editorial of Codeforces Round #752 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
133668323 | Gassa | C | Oct. 30, 2021, 3:58 p.m. | OK | D | TESTS | 59 | 1263 | 9420800 | 2300 | |
133703454 | God_think_un | C | Oct. 30, 2021, 8:41 p.m. | OK | GNU C++14 | TESTS | 59 | 592 | 2252800 | 2300 | |
133715183 | using233 | C | Oct. 31, 2021, 3:12 a.m. | OK | GNU C++14 | TESTS | 59 | 748 | 3072000 | 2300 | |
133664044 | Krystallos | C | Oct. 30, 2021, 3:48 p.m. | OK | GNU C++14 | TESTS | 59 | 826 | 1536000 | 2300 | |
133672844 | SuperCGK | C | Oct. 30, 2021, 4:09 p.m. | OK | GNU C++14 | TESTS | 59 | 826 | 2252800 | 2300 | |
133711459 | little_rain | C | Oct. 31, 2021, 1:34 a.m. | OK | GNU C++14 | TESTS | 59 | 842 | 2662400 | 2300 | |
133637105 | Itst_boyfriend | C | Oct. 30, 2021, 2:59 p.m. | OK | GNU C++14 | TESTS | 59 | 857 | 1843200 | 2300 | |
133678767 | OguriCap | C | Oct. 30, 2021, 4:23 p.m. | OK | GNU C++14 | TESTS | 59 | 858 | 13926400 | 2300 | |
133682004 | meaningIess | C | Oct. 30, 2021, 4:30 p.m. | OK | GNU C++14 | TESTS | 59 | 888 | 2662400 | 2300 | |
133663038 | jiufeng | C | Oct. 30, 2021, 3:46 p.m. | OK | GNU C++14 | TESTS | 59 | 889 | 21196800 | 2300 | |
133661015 | ugly2333 | C | Oct. 30, 2021, 3:41 p.m. | OK | GNU C++14 | TESTS | 59 | 904 | 2150400 | 2300 | |
133690831 | abc864197532 | C | Oct. 30, 2021, 5:51 p.m. | OK | GNU C++17 | TESTS | 59 | 624 | 2252800 | 2300 | |
133662651 | hydd | C | Oct. 30, 2021, 3:45 p.m. | OK | GNU C++17 | TESTS | 59 | 639 | 5324800 | 2300 | |
133675636 | quanshr | C | Oct. 30, 2021, 4:16 p.m. | OK | GNU C++17 | TESTS | 59 | 702 | 3891200 | 2300 | |
133665305 | cerberus97 | C | Oct. 30, 2021, 3:51 p.m. | OK | GNU C++17 | TESTS | 59 | 717 | 1945600 | 2300 | |
133654076 | djq_cpp | C | Oct. 30, 2021, 3:27 p.m. | OK | GNU C++17 | TESTS | 59 | 732 | 1536000 | 2300 | |
133706493 | AlexanderL | C | Oct. 30, 2021, 9:59 p.m. | OK | GNU C++17 | TESTS | 59 | 826 | 1638400 | 2300 | |
133667072 | -Armageddon- | C | Oct. 30, 2021, 3:55 p.m. | OK | GNU C++17 | TESTS | 59 | 842 | 1433600 | 2300 | |
133668818 | icecuber | C | Oct. 30, 2021, 3:59 p.m. | OK | GNU C++17 | TESTS | 59 | 842 | 2252800 | 2300 | |
133721463 | shivangtiwari | C | Oct. 31, 2021, 5:14 a.m. | OK | GNU C++17 | TESTS | 59 | 904 | 2560000 | 2300 | |
133671359 | Volkov_Ivan | C | Oct. 30, 2021, 4:05 p.m. | OK | GNU C++17 | TESTS | 59 | 919 | 1843200 | 2300 | |
133671643 | Iftekhar_Hakim_K | C | Oct. 30, 2021, 4:06 p.m. | OK | GNU C++17 (64) | TESTS | 59 | 405 | 8806400 | 2300 | |
133655183 | KostasKostil | C | Oct. 30, 2021, 3:29 p.m. | OK | GNU C++17 (64) | TESTS | 59 | 436 | 3276800 | 2300 | |
133687536 | antguz | C | Oct. 30, 2021, 5:27 p.m. | OK | GNU C++17 (64) | TESTS | 59 | 451 | 1638400 | 2300 | |
133660919 | maxplus | C | Oct. 30, 2021, 3:41 p.m. | OK | GNU C++17 (64) | TESTS | 59 | 467 | 2457600 | 2300 | |
133646227 | never_giveup | C | Oct. 30, 2021, 3:13 p.m. | OK | GNU C++17 (64) | TESTS | 59 | 468 | 1638400 | 2300 | |
133662475 | Suika_predator | C | Oct. 30, 2021, 3:44 p.m. | OK | GNU C++17 (64) | TESTS | 59 | 498 | 2252800 | 2300 | |
133649312 | heno239 | C | Oct. 30, 2021, 3:18 p.m. | OK | GNU C++17 (64) | TESTS | 59 | 499 | 1638400 | 2300 | |
133664818 | 2sozx | C | Oct. 30, 2021, 3:49 p.m. | OK | GNU C++17 (64) | TESTS | 59 | 514 | 1638400 | 2300 | |
133653860 | dl720125 | C | Oct. 30, 2021, 3:27 p.m. | OK | GNU C++17 (64) | TESTS | 59 | 514 | 2355200 | 2300 | |
133649092 | hitonanode | C | Oct. 30, 2021, 3:18 p.m. | OK | GNU C++17 (64) | TESTS | 59 | 545 | 2867200 | 2300 | |
133711796 | RiverHamster | C | Oct. 31, 2021, 1:46 a.m. | OK | GNU C++20 (64) | TESTS | 59 | 468 | 1740800 | 2300 | |
133705969 | Bench0310 | C | Oct. 30, 2021, 9:45 p.m. | OK | GNU C++20 (64) | TESTS | 59 | 546 | 2355200 | 2300 | |
133695547 | flashmt | C | Oct. 30, 2021, 6:43 p.m. | OK | GNU C++20 (64) | TESTS | 59 | 561 | 2252800 | 2300 | |
133689388 | Denisov | C | Oct. 30, 2021, 5:39 p.m. | OK | GNU C++20 (64) | TESTS | 59 | 577 | 2252800 | 2300 | |
133657544 | AndreySergunin | C | Oct. 30, 2021, 3:34 p.m. | OK | GNU C++20 (64) | TESTS | 59 | 592 | 2252800 | 2300 | |
133640664 | xtqqwq | C | Oct. 30, 2021, 3:04 p.m. | OK | GNU C++20 (64) | TESTS | 59 | 592 | 266956800 | 2300 | |
133714412 | juju527 | C | Oct. 31, 2021, 2:55 a.m. | OK | GNU C++20 (64) | TESTS | 59 | 624 | 2457600 | 2300 | |
133687592 | Alphagocc | C | Oct. 30, 2021, 5:27 p.m. | OK | GNU C++20 (64) | TESTS | 59 | 624 | 3788800 | 2300 | |
133671774 | fishcathu. | C | Oct. 30, 2021, 4:06 p.m. | OK | GNU C++20 (64) | TESTS | 59 | 639 | 3276800 | 2300 | |
133691858 | akshaykhandelwal | C | Oct. 30, 2021, 6:01 p.m. | OK | GNU C++20 (64) | TESTS | 59 | 655 | 1740800 | 2300 | |
133678058 | plusplus6408 | C | Oct. 30, 2021, 4:22 p.m. | OK | Java 8 | TESTS | 59 | 2152 | 19660800 | 2300 | |
133681563 | arvindf232 | C | Oct. 30, 2021, 4:29 p.m. | OK | Kotlin 1.4 | TESTS | 59 | 3634 | 21811200 | 2300 | |
133699410 | darnley | C | Oct. 30, 2021, 7:33 p.m. | OK | Kotlin 1.5 | TESTS | 59 | 1325 | 30720000 | 2300 | |
133691998 | darnley | C | Oct. 30, 2021, 6:02 p.m. | OK | Kotlin 1.5 | TESTS | 59 | 1340 | 30720000 | 2300 | |
133695258 | r57shell | C | Oct. 30, 2021, 6:39 p.m. | OK | MS C++ 2017 | TESTS | 59 | 1981 | 3481600 | 2300 | |
133691155 | forest | C | Oct. 30, 2021, 5:54 p.m. | OK | MS C++ 2017 | TESTS | 59 | 2152 | 171008000 | 2300 | |
133654074 | ComPhyPark | C | Oct. 30, 2021, 3:27 p.m. | OK | MS C++ 2017 | TESTS | 59 | 3166 | 1945600 | 2300 | |
133651387 | Yupiteru | C | Oct. 30, 2021, 3:22 p.m. | OK | .NET Core C# | TESTS | 59 | 2744 | 14028800 | 2300 | |
133706078 | temprunner | C | Oct. 30, 2021, 9:48 p.m. | OK | PyPy 3-64 | TESTS | 59 | 3463 | 42291200 | 2300 | |
133706108 | temprunner | C | Oct. 30, 2021, 9:49 p.m. | OK | PyPy 3-64 | TESTS | 59 | 3493 | 42496000 | 2300 | |
133687417 | asdsasd | C | Oct. 30, 2021, 5:26 p.m. | OK | PyPy 3-64 | TESTS | 59 | 3603 | 43622400 | 2300 | |
133661913 | sansen | C | Oct. 30, 2021, 3:43 p.m. | OK | Rust | TESTS | 59 | 936 | 2867200 | 2300 | |
133652277 | qwerty787788 | C | Oct. 30, 2021, 3:24 p.m. | OK | Rust | TESTS | 59 | 2074 | 5836800 | 2300 |
Back to search problems