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 |
---|---|---|---|---|---|---|
1439 | Codeforces Round 684 (Div. 1) | FINISHED | False | 8100 | 126199499 | Nov. 17, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1929 ) | C | Greedy Shopping | PROGRAMMING | binary search data structures greedy |
B"You are given an array a_1, a_2, ldots, a_n of integers. This array is non-increasing. Let's consider a line with n shops. The shops are numbered with integers from 1 to n from left to right. The cost of a meal in the i -th shop is equal to a_i . You should process q queries of two types: The first line contains two integers n , q ( 1 <= q n, q <= q 2 cdot 10^5 ). The second line contains n integers a_{1},a_{2}, ldots, a_{n} (1 <= q a_{i} <= q 10^9) -- the costs of the meals. It is guaranteed, that a_1 geq a_2 geq ldots geq a_n . Each of the next q lines contains three integers t , x , y ( 1 <= q t <= q 2 , 1 <= q x <= q n , 1 <= q y <= q 10^9 ), each describing the next query. It is guaranteed that there exists at least one query of type 2 . For each query of type 2 output the answer on the new line. In the first query a hungry man will buy meals in all shops from 3 to 10 . In the second query a hungry man will buy meals in shops 4 , 9 , and 10 . After the third query the array a_1, a_2, ldots, a_n of costs won't change and will be {10, 10, 10, 6, 6, 5, 5, 5, 3, 1 } . In the fourth query a hungry man will buy meals in shops 2 , 3 , 4 , 5 , 9 , and 10 . After the fifth query the array a of costs will be {10, 10, 10, 7, 6, 5, 5, 5, 3, 1 } . In the sixth query a hungry man will buy meals in shops 2 and 4 . "... |
Codeforces Round #684[Div1 and Div2] Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
98733259 | dengyipeng | C | Nov. 17, 2020, 4:25 p.m. | OK | GNU C++11 | TESTS | 97 | 389 | 7065600 | ||
98752723 | fanache99 | C | Nov. 17, 2020, 6:22 p.m. | OK | GNU C++11 | TESTS | 97 | 390 | 16998400 | ||
98718974 | jz_597 | C | Nov. 17, 2020, 3:46 p.m. | OK | GNU C++11 | TESTS | 97 | 405 | 13414400 | ||
98722601 | algo.code | C | Nov. 17, 2020, 3:56 p.m. | OK | GNU C++11 | TESTS | 97 | 405 | 13619200 | ||
98706473 | ynsm | C | Nov. 17, 2020, 3:14 p.m. | OK | GNU C++11 | TESTS | 97 | 405 | 16896000 | ||
98725665 | hkxadpall | C | Nov. 17, 2020, 4:04 p.m. | OK | GNU C++11 | TESTS | 97 | 405 | 20070400 | ||
98731174 | BigBag | C | Nov. 17, 2020, 4:19 p.m. | OK | GNU C++11 | TESTS | 97 | 420 | 13619200 | ||
98769532 | emofunc | C | Nov. 18, 2020, 3:02 a.m. | OK | GNU C++11 | TESTS | 97 | 420 | 20070400 | ||
98715466 | mocania | C | Nov. 17, 2020, 3:37 p.m. | OK | GNU C++11 | TESTS | 97 | 436 | 64102400 | ||
98769562 | emofunc | C | Nov. 18, 2020, 3:03 a.m. | OK | GNU C++11 | TESTS | 97 | 451 | 20070400 | ||
98698561 | Erim.K | C | Nov. 17, 2020, 2:57 p.m. | OK | GNU C++14 | TESTS | 97 | 483 | 16793600 | ||
98740174 | orz | C | Nov. 17, 2020, 4:42 p.m. | OK | GNU C++14 | TESTS | 97 | 514 | 14438400 | ||
98726734 | TheBlackDog | C | Nov. 17, 2020, 4:07 p.m. | OK | GNU C++14 | TESTS | 97 | 545 | 26419200 | ||
98768974 | HynDuf | C | Nov. 18, 2020, 2:48 a.m. | OK | GNU C++14 | TESTS | 97 | 561 | 13619200 | ||
98769873 | HynDuf | C | Nov. 18, 2020, 3:12 a.m. | OK | GNU C++14 | TESTS | 97 | 561 | 13619200 | ||
98749377 | nhho | C | Nov. 17, 2020, 5:44 p.m. | OK | GNU C++14 | TESTS | 97 | 561 | 20070400 | ||
98767732 | xwd456 | C | Nov. 18, 2020, 2:13 a.m. | OK | GNU C++14 | TESTS | 97 | 576 | 54476800 | ||
98729092 | fengyecong | C | Nov. 17, 2020, 4:13 p.m. | OK | GNU C++14 | TESTS | 97 | 577 | 13619200 | ||
98768378 | xwd456 | C | Nov. 18, 2020, 2:33 a.m. | OK | GNU C++14 | TESTS | 97 | 592 | 54476800 | ||
98752502 | marcOS | C | Nov. 17, 2020, 6:19 p.m. | OK | GNU C++14 | TESTS | 97 | 701 | 12083200 | ||
98763203 | SirShokoladina | C | Nov. 17, 2020, 10:42 p.m. | OK | GNU C++17 | TESTS | 97 | 405 | 20070400 | ||
98759205 | lukkka | C | Nov. 17, 2020, 8:21 p.m. | OK | GNU C++17 | TESTS | 97 | 436 | 23244800 | ||
98769853 | Elo | C | Nov. 18, 2020, 3:11 a.m. | OK | GNU C++17 | TESTS | 97 | 467 | 33689600 | ||
98752428 | pikel_rik | C | Nov. 17, 2020, 6:18 p.m. | OK | GNU C++17 | TESTS | 97 | 483 | 16896000 | ||
98717733 | ainta | C | Nov. 17, 2020, 3:43 p.m. | OK | GNU C++17 | TESTS | 97 | 483 | 17612800 | ||
98746450 | hackVerly | C | Nov. 17, 2020, 5:23 p.m. | OK | GNU C++17 | TESTS | 97 | 545 | 26521600 | ||
98772002 | kimoyami | C | Nov. 18, 2020, 4:02 a.m. | OK | GNU C++17 | TESTS | 97 | 546 | 16896000 | ||
98710378 | Lgq_3de5 | C | Nov. 17, 2020, 3:24 p.m. | OK | GNU C++17 | TESTS | 97 | 546 | 20070400 | ||
98754909 | IIeJlMeHb | C | Nov. 17, 2020, 6:56 p.m. | OK | GNU C++17 | TESTS | 97 | 561 | 19251200 | ||
98770199 | ORZZZQTXDY | C | Nov. 18, 2020, 3:20 a.m. | OK | GNU C++17 | TESTS | 97 | 576 | 23244800 | ||
98733012 | RiverHamster | C | Nov. 17, 2020, 4:24 p.m. | OK | GNU C++17 (64) | TESTS | 97 | 358 | 13619200 | ||
98732743 | wrinx | C | Nov. 17, 2020, 4:23 p.m. | OK | GNU C++17 (64) | TESTS | 97 | 358 | 20889600 | ||
98756310 | Eureka17 | C | Nov. 17, 2020, 7:22 p.m. | OK | GNU C++17 (64) | TESTS | 97 | 374 | 25702400 | ||
98717653 | ecnerwala | C | Nov. 17, 2020, 3:43 p.m. | OK | GNU C++17 (64) | TESTS | 97 | 389 | 7987200 | ||
98712683 | jiangly | C | Nov. 17, 2020, 3:30 p.m. | OK | GNU C++17 (64) | TESTS | 97 | 389 | 13619200 | ||
98761851 | 12tqian | C | Nov. 17, 2020, 9:43 p.m. | OK | GNU C++17 (64) | TESTS | 97 | 420 | 13619200 | ||
98717635 | heno239 | C | Nov. 17, 2020, 3:43 p.m. | OK | GNU C++17 (64) | TESTS | 97 | 436 | 22630400 | ||
98730640 | Diegogrc | C | Nov. 17, 2020, 4:18 p.m. | OK | GNU C++17 (64) | TESTS | 97 | 436 | 79360000 | ||
98759548 | Nson | C | Nov. 17, 2020, 8:31 p.m. | OK | GNU C++17 (64) | TESTS | 97 | 451 | 10444800 | ||
98775833 | Ernestico | C | Nov. 18, 2020, 5:22 a.m. | OK | GNU C++17 (64) | TESTS | 97 | 451 | 20070400 | ||
98732964 | iakovlev.zakhar | C | Nov. 17, 2020, 4:24 p.m. | OK | Java 11 | TESTS | 97 | 966 | 23859200 | ||
98747432 | uwi | C | Nov. 17, 2020, 5:28 p.m. | OK | Java 11 | TESTS | 97 | 1263 | 14950400 | ||
98728763 | cwise | C | Nov. 17, 2020, 4:13 p.m. | OK | Java 8 | TESTS | 97 | 670 | 19251200 | ||
98727166 | fetetriste | C | Nov. 17, 2020, 4:08 p.m. | OK | Java 8 | TESTS | 97 | 1731 | 2867200 | ||
98738099 | Yupiteru | C | Nov. 17, 2020, 4:37 p.m. | OK | .NET Core C# | TESTS | 97 | 1918 | 35020800 | ||
98734074 | sansen | C | Nov. 17, 2020, 4:27 p.m. | OK | Rust | TESTS | 97 | 483 | 30003200 | ||
98733144 | kobae964 | C | Nov. 17, 2020, 4:24 p.m. | OK | Rust | TESTS | 97 | 1731 | 21913600 |
Back to search problems