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 |
---|---|---|---|---|---|---|
1304 | Codeforces Round 620 (Div. 2) | FINISHED | False | 7200 | 150051299 | Feb. 15, 2020, 1:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1551 ) | F2 | Animal Observation (hard version) | PROGRAMMING | data structures dp greedy | 2600 |
B"The only difference between easy and hard versions is the constraint on k . Gildong loves observing animals, so he bought two cameras to take videos of wild animals in a forest. The color of one camera is red, and the other one's color is blue. Gildong is going to take videos for n days, starting from day 1 to day n . The forest can be divided into m areas, numbered from 1 to m . He'll use the cameras in the following way: Each camera can observe k consecutive areas of the forest. For example, if m=5 and k=3 , he can put a camera to observe one of these three ranges of areas for two days: [1,3] , [2,4] , and [3,5] . Gildong got information about how many animals will be seen in each area on each day. Since he would like to observe as many animals as possible, he wants you to find the best way to place the two cameras for n days. Note that if the two cameras are observing the same area on the same day, the animals observed in that area are counted only once. The first line contains three integers n , m , and k ( 1 <= n <= 50 , 1 <= m <= 2 cdot 10^4 , 1 <= k <= m ) xe2 x80 x93 the number of days Gildong is going to record, the number of areas of the forest, and the range of the cameras, respectively. Next n lines contain m integers each. The j -th integer in the i+1 -st line is the number of animals that can be seen on the i -th day in the j -th area. Each number of animals is between 0 and 1000 , inclusive. Print one integer xe2 x80 x93 the maximum number of animals that can be observed. The optimal way to observe animals in the four examples are as follows: Example 1: Example 2: Example 3: Example 4: "... |
Codeforces Round #620 (Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
71162845 | ddytxdy | F2 | Feb. 15, 2020, 2:53 p.m. | OK | GNU C++11 | TESTS | 187 | 62 | 5120000 | 2600 | |
71195112 | YJJ_Konnyaku | F2 | Feb. 16, 2020, 4:16 a.m. | OK | GNU C++11 | TESTS | 187 | 62 | 13516800 | 2600 | |
71194588 | Sneakoscope | F2 | Feb. 16, 2020, 4 a.m. | OK | GNU C++11 | TESTS | 187 | 62 | 13516800 | 2600 | |
71192071 | kkktl01 | F2 | Feb. 16, 2020, 2:28 a.m. | OK | GNU C++11 | TESTS | 187 | 62 | 21913600 | 2600 | |
71187880 | sxyss | F2 | Feb. 15, 2020, 10:53 p.m. | OK | GNU C++11 | TESTS | 187 | 62 | 33484800 | 2600 | |
71196090 | AutumnKite | F2 | Feb. 16, 2020, 4:43 a.m. | OK | GNU C++11 | TESTS | 187 | 77 | 25497600 | 2600 | |
71166279 | dfcmd | F2 | Feb. 15, 2020, 3:04 p.m. | OK | GNU C++11 | TESTS | 187 | 77 | 25497600 | 2600 | |
71408006 | wyt-ycyz2019 | F2 | Feb. 19, 2020, 12:15 a.m. | OK | GNU C++11 | TESTS | 187 | 77 | 39936000 | 2600 | |
71407975 | wyt-ycyz2019 | F2 | Feb. 19, 2020, 12:13 a.m. | OK | GNU C++11 | TESTS | 187 | 77 | 39936000 | 2600 | |
71275441 | shuashuawan | F2 | Feb. 17, 2020, 11:57 a.m. | OK | GNU C++11 | TESTS | 187 | 78 | 3686400 | 2600 | |
71220959 | FastestFinger | F2 | Feb. 16, 2020, 12:13 p.m. | OK | GNU C++14 | TESTS | 187 | 187 | 11673600 | 2600 | |
71220523 | FastestFinger | F2 | Feb. 16, 2020, 12:04 p.m. | OK | GNU C++14 | TESTS | 187 | 202 | 11571200 | 2600 | |
71254286 | heyuhhh | F2 | Feb. 17, 2020, 3:28 a.m. | OK | GNU C++14 | TESTS | 187 | 202 | 17920000 | 2600 | |
71165377 | SidneyUranus | F2 | Feb. 15, 2020, 3:01 p.m. | OK | GNU C++14 | TESTS | 187 | 218 | 14438400 | 2600 | |
71170270 | FastestFinger | F2 | Feb. 15, 2020, 4:48 p.m. | OK | GNU C++14 | TESTS | 187 | 233 | 11468800 | 2600 | |
71215141 | dgklr | F2 | Feb. 16, 2020, 10:19 a.m. | OK | GNU C++14 | TESTS | 187 | 233 | 44441600 | 2600 | |
71233102 | NNewbie | F2 | Feb. 16, 2020, 3:53 p.m. | OK | GNU C++14 | TESTS | 187 | 234 | 14233600 | 2600 | |
71208424 | dsyhy | F2 | Feb. 16, 2020, 8:27 a.m. | OK | GNU C++14 | TESTS | 187 | 248 | 13619200 | 2600 | |
71566460 | Restinpeace | F2 | Feb. 21, 2020, 5:29 p.m. | OK | GNU C++14 | TESTS | 187 | 249 | 14028800 | 2600 | |
71280221 | Potassium_ | F2 | Feb. 17, 2020, 1:32 p.m. | OK | GNU C++14 | TESTS | 187 | 249 | 14438400 | 2600 | |
71201385 | RiverHamster | F2 | Feb. 16, 2020, 6:27 a.m. | OK | GNU C++17 | TESTS | 187 | 78 | 22016000 | 2600 | |
71245049 | neal | F2 | Feb. 16, 2020, 8:27 p.m. | OK | GNU C++17 | TESTS | 187 | 109 | 5734400 | 2600 | |
71243032 | neal | F2 | Feb. 16, 2020, 7:32 p.m. | OK | GNU C++17 | TESTS | 187 | 124 | 5734400 | 2600 | |
71200326 | jiangly | F2 | Feb. 16, 2020, 6:09 a.m. | OK | GNU C++17 | TESTS | 187 | 187 | 8396800 | 2600 | |
71147458 | jiangly | F2 | Feb. 15, 2020, 1:57 p.m. | OK | GNU C++17 | TESTS | 187 | 202 | 8396800 | 2600 | |
71387402 | idsigma | F2 | Feb. 18, 2020, 3:16 p.m. | OK | GNU C++17 | TESTS | 187 | 202 | 29081600 | 2600 | |
71317873 | Mygod | F2 | Feb. 17, 2020, 4:55 p.m. | OK | GNU C++17 | TESTS | 187 | 218 | 44441600 | 2600 | |
71243021 | neal | F2 | Feb. 16, 2020, 7:32 p.m. | OK | GNU C++17 | TESTS | 187 | 234 | 5734400 | 2600 | |
71492747 | WGree | F2 | Feb. 20, 2020, 12:35 p.m. | OK | GNU C++17 | TESTS | 187 | 234 | 8601600 | 2600 | |
71286590 | just_soso | F2 | Feb. 17, 2020, 3:24 p.m. | OK | GNU C++17 | TESTS | 187 | 234 | 9728000 | 2600 | |
71180371 | Jughead | F2 | Feb. 15, 2020, 7:20 p.m. | OK | Go | TESTS | 187 | 1076 | 4608000 | 2600 | |
71149301 | uwi | F2 | Feb. 15, 2020, 2:03 p.m. | OK | Java 11 | TESTS | 187 | 389 | 17305600 | 2600 | |
71514189 | Ahmad | F2 | Feb. 20, 2020, 7:18 p.m. | OK | Java 8 | TESTS | 187 | 951 | 10649600 | 2600 | |
71162838 | barakraganosungam | F2 | Feb. 15, 2020, 2:53 p.m. | OK | Java 8 | TESTS | 187 | 1216 | 16896000 | 2600 | |
71161686 | Harpae | F2 | Feb. 15, 2020, 2:48 p.m. | OK | Java 8 | TESTS | 187 | 1232 | 33280000 | 2600 | |
71561787 | gouh9qn | F2 | Feb. 21, 2020, 4:05 p.m. | OK | Java 8 | TESTS | 187 | 1294 | 18739200 | 2600 | |
71163250 | spar5h | F2 | Feb. 15, 2020, 2:54 p.m. | OK | Java 8 | TESTS | 187 | 2011 | 37478400 | 2600 | |
71235014 | Spheniscine | F2 | Feb. 16, 2020, 4:35 p.m. | OK | Kotlin | TESTS | 187 | 514 | 4096000 | 2600 | |
71223261 | Spheniscine | F2 | Feb. 16, 2020, 12:57 p.m. | OK | Kotlin | TESTS | 187 | 795 | 4300800 | 2600 | |
71210904 | Spheniscine | F2 | Feb. 16, 2020, 9:07 a.m. | OK | Kotlin | TESTS | 187 | 842 | 4300800 | 2600 | |
71532994 | sansen | F2 | Feb. 21, 2020, 7 a.m. | OK | Rust | TESTS | 187 | 109 | 20992000 | 2600 |
Back to search problems