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 |
---|---|---|---|---|---|---|
1819 | Codeforces Round 866 (Div. 1) | FINISHED | False | 7200 | 55630463 | April 15, 2023, 9:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 686 ) | D | Misha and Apples | PROGRAMMING | data structures dp |
B"Schoolboy Misha got tired of doing sports programming, so he decided to quit everything and go to the magical forest to sell magic apples. His friend Danya came to the magical forest to visit Misha. What was his surprise when he found out that Misha found a lot of friends there, the same former sports programmers. And all of them, like Misha, have their own shop where they sell magic apples. To support his friends, who have changed their lives so drastically, he decided to buy up their entire assortment. The buying process works as follows: in total there are n stalls, numbered with integers from 1 to n , and m kinds of magic apples, numbered with integers from 1 to m . Each shop sells some number of kinds of apples. Danya visits all the shops in order of increasing number, starting with the first one. Upon entering the shop he buys one magic apple of each kind sold in that shop and puts them in his backpack. However, magical apples wouldn't be magical if they were all right. The point is that when two apples of the same type end up together in the backpack, all of the apples in it magically disappear. Importantly, the disappearance happens after Danya has put the apples in the backpack and left the shop. Upon returning home, Danya realized that somewhere in the forest he had managed to lose his backpack. Unfortunately, for some shops Danya had forgotten what assortment of apples there was. Remembering only for some shops, what kinds of magical apples were sold in them, he wants to know what is the maximum number of apples he could have in his backpack after all his purchases at best. Each test consists of multiple test cases. The first line contains a single integer t ( 1 <= t <= 2 cdot 10^5 ) --the number of test cases. The description of test cases follows. The first line contains two integers n and m ( 1 <= q n, m <= q 2 cdot 10^5 ) --the number of stalls and kinds of apples. Each of t"... |
Codeforces Round #866 (Div.1, Div.2, based on Lipetsk Team Olympiad) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
202237107 | 20333333333 | D | April 15, 2023, 12:09 p.m. | OK | GNU C++14 | TESTS | 51 | 109 | 26214400 | ||
202312651 | cyh_toby | D | April 16, 2023, 1:14 a.m. | OK | GNU C++14 | TESTS | 51 | 170 | 10649600 | ||
202216978 | grass8sheep | D | April 15, 2023, 10:31 a.m. | OK | GNU C++14 | TESTS | 51 | 171 | 9318400 | ||
202235910 | HailHomura | D | April 15, 2023, 12:02 p.m. | OK | GNU C++14 | TESTS | 51 | 171 | 10752000 | ||
202315002 | use_fft | D | April 16, 2023, 2:03 a.m. | OK | GNU C++14 | TESTS | 51 | 171 | 17920000 | ||
202208889 | huzhaoyang | D | April 15, 2023, 10:11 a.m. | OK | GNU C++14 | TESTS | 51 | 187 | 9011200 | ||
202263757 | who_mius | D | April 15, 2023, 3:49 p.m. | OK | GNU C++14 | TESTS | 51 | 202 | 13004800 | ||
202235990 | HailHomura | D | April 15, 2023, 12:02 p.m. | OK | GNU C++14 | TESTS | 51 | 233 | 10752000 | ||
202221295 | Alex_Wei | D | April 15, 2023, 10:42 a.m. | OK | GNU C++14 | TESTS | 51 | 233 | 12697600 | ||
202220492 | AlternatingCurrent | D | April 15, 2023, 10:40 a.m. | OK | GNU C++14 | TESTS | 51 | 311 | 9011200 | ||
202294409 | rui-de | D | April 15, 2023, 8:09 p.m. | OK | GNU C++17 | TESTS | 51 | 171 | 3993600 | ||
202294938 | rui-de | D | April 15, 2023, 8:15 p.m. | OK | GNU C++17 | TESTS | 51 | 186 | 3993600 | ||
202295330 | rui-de | D | April 15, 2023, 8:20 p.m. | OK | GNU C++17 | TESTS | 51 | 187 | 3174400 | ||
202294877 | rui-de | D | April 15, 2023, 8:15 p.m. | OK | GNU C++17 | TESTS | 51 | 187 | 3993600 | ||
202212141 | Radewoosh | D | April 15, 2023, 10:18 a.m. | OK | GNU C++17 | TESTS | 51 | 187 | 35635200 | ||
202237939 | TadijaSebez | D | April 15, 2023, 12:15 p.m. | OK | GNU C++17 | TESTS | 51 | 202 | 7782400 | ||
202291071 | rui-de | D | April 15, 2023, 7:32 p.m. | OK | GNU C++17 | TESTS | 51 | 202 | 8192000 | ||
202238004 | alireza_kaviani | D | April 15, 2023, 12:16 p.m. | OK | GNU C++17 | TESTS | 51 | 217 | 47513600 | ||
202293746 | rui-de | D | April 15, 2023, 8:02 p.m. | OK | GNU C++17 | TESTS | 51 | 218 | 3993600 | ||
202221982 | Brovko | D | April 15, 2023, 10:45 a.m. | OK | GNU C++17 | TESTS | 51 | 218 | 17510400 | ||
202240294 | platelet | D | April 15, 2023, 12:35 p.m. | OK | GNU C++17 (64) | TESTS | 51 | 108 | 9830400 | ||
202295489 | rui-de | D | April 15, 2023, 8:22 p.m. | OK | GNU C++17 (64) | TESTS | 51 | 109 | 3174400 | ||
202295842 | rui-de | D | April 15, 2023, 8:26 p.m. | OK | GNU C++17 (64) | TESTS | 51 | 124 | 3174400 | ||
202220964 | YamadaRyo | D | April 15, 2023, 10:41 a.m. | OK | GNU C++17 (64) | TESTS | 51 | 124 | 16588800 | ||
202197649 | hehezhoutxdy | D | April 15, 2023, 9:45 a.m. | OK | GNU C++17 (64) | TESTS | 51 | 139 | 6144000 | ||
202220831 | yzc2005 | D | April 15, 2023, 10:41 a.m. | OK | GNU C++17 (64) | TESTS | 51 | 139 | 13107200 | ||
202239090 | fatemetmhr | D | April 15, 2023, 12:25 p.m. | OK | GNU C++17 (64) | TESTS | 51 | 139 | 28364800 | ||
202295906 | rui-de | D | April 15, 2023, 8:26 p.m. | OK | GNU C++17 (64) | TESTS | 51 | 155 | 3174400 | ||
202234860 | torisasami | D | April 15, 2023, 11:56 a.m. | OK | GNU C++17 (64) | TESTS | 51 | 155 | 16896000 | ||
202210822 | orzdevinwang | D | April 15, 2023, 10:15 a.m. | OK | GNU C++17 (64) | TESTS | 51 | 155 | 39321600 | ||
202236463 | jeroenodb | D | April 15, 2023, 12:05 p.m. | OK | GNU C++20 (64) | TESTS | 51 | 108 | 9318400 | ||
202315951 | chengcheng5677 | D | April 16, 2023, 2:24 a.m. | OK | GNU C++20 (64) | TESTS | 51 | 108 | 9728000 | ||
202247932 | xukai | D | April 15, 2023, 1:33 p.m. | OK | GNU C++20 (64) | TESTS | 51 | 108 | 9830400 | ||
202247762 | xukai | D | April 15, 2023, 1:32 p.m. | OK | GNU C++20 (64) | TESTS | 51 | 109 | 9830400 | ||
202323620 | AkaiLemon | D | April 16, 2023, 4:42 a.m. | OK | GNU C++20 (64) | TESTS | 51 | 109 | 20889600 | ||
202238922 | Forza_Ferrari | D | April 15, 2023, 12:24 p.m. | OK | GNU C++20 (64) | TESTS | 51 | 124 | 2969600 | ||
202294063 | jeroenodb | D | April 15, 2023, 8:05 p.m. | OK | GNU C++20 (64) | TESTS | 51 | 124 | 9318400 | ||
202313486 | njwrz | D | April 16, 2023, 1:32 a.m. | OK | GNU C++20 (64) | TESTS | 51 | 124 | 13414400 | ||
202226626 | dl720125 | D | April 15, 2023, 10:58 a.m. | OK | GNU C++20 (64) | TESTS | 51 | 124 | 15257600 | ||
202201631 | aibark | D | April 15, 2023, 9:53 a.m. | OK | GNU C++20 (64) | TESTS | 51 | 124 | 22835200 | ||
202234461 | hiratai | D | April 15, 2023, 11:54 a.m. | OK | Rust 2021 | TESTS | 51 | 218 | 22732800 | ||
202234649 | sansen | D | April 15, 2023, 11:55 a.m. | OK | Rust 2021 | TESTS | 51 | 280 | 49868800 |
Back to search problems