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 |
|---|---|---|---|---|---|---|
| 1250 | 2019-2020 ICPC, NERC, Southern and Volga Russian Regional Contest (Online Mirror, ICPC Rules, Teams Preferred) | FINISHED | False | 18000 | 204236723 | Oct. 27, 2019, 9:35 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 391 ) | M | SmartGarden | PROGRAMMING | constructive algorithms divide and conquer | 2700 |
Berland Gardeners United Inc. hired you for the project called "SmartGarden". The main feature of this project is automatic garden watering. Formally the garden can be represented as a square of (n \times n) cells with rows numbered (1) to (n) from top to bottom and columns numbered (1) to (n) from left to right. Each cell of the garden contains either a plant or a slab. It's known that slabs are located on the main diagonal of the matrix representing the garden, and in the cells that are below the main diagonal and share a side with at least one cell of the main diagonal. All the remaining cells of the garden are filled with plants. During implementation of the project you created a smart robot that takes a list of commands as an input, which are processed one by one. Each command contains: a list of horizontal lines (rows in the matrix representing the garden); a list of vertical lines (columns in the matrix representing the garden). While executing each command robot waters only cells in the intersection of specified rows and specified columns. So, if you specify (r) rows and (c) columns, then exactly (r \cdot c) cells will be watered. In the demo for the customer you have tuned robot in such a way that it waters all the garden. To do that you prepared a single command containing all (n) rows and all (n) columns. Unfortunately, 5 hours before the demo for your customer it turned out that the CEO of Berland Gardeners United Inc. was going to take part in it. Moreover, most probably he will be standing on a garden slab during the demo! Now you need to create a list of commands for the robot so that it waters all the plants and doesn't water any cell containing a slab. Since it's only a beta version of "SmartGarden", the total number of commands shouldn't exceed (50). Create a program that, for a given size of the garden, will find a list of no more than (50) commands that allow the robot to water all the pla |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 63778997 | lamnhh | M | Oct. 30, 2019, 10:28 a.m. | OK | GNU C++11 | TESTS | 30 | 46 | 1638400 | 2700 | |
| 63559421 | GavinZheng tyf0530 An_Account | M | Oct. 27, 2019, 1:49 p.m. | OK | GNU C++11 | TESTS | 30 | 46 | 1638400 | 2700 | |
| 64079304 | yrz 1234567891 dsvkljd | M | Nov. 2, 2019, 9:41 a.m. | OK | GNU C++11 | TESTS | 30 | 46 | 1740800 | 2700 | |
| 63548952 | panole zx2003 | M | Oct. 27, 2019, 11:12 a.m. | OK | GNU C++11 | TESTS | 30 | 46 | 2048000 | 2700 | |
| 64074537 | 8300590 FrostStar liyang21 | M | Nov. 2, 2019, 8:26 a.m. | OK | GNU C++11 | TESTS | 30 | 46 | 2252800 | 2700 | |
| 63801781 | oipotato Subconscious chenjb | M | Oct. 30, 2019, 1:12 p.m. | OK | GNU C++11 | TESTS | 30 | 46 | 25804800 | 2700 | |
| 63561387 | shanin Mustang98 BigBag | M | Oct. 27, 2019, 2:22 p.m. | OK | GNU C++11 | TESTS | 30 | 46 | 101990400 | 2700 | |
| 64584516 | yah01 hazeone oldjang | M | Nov. 9, 2019, 12:59 p.m. | OK | GNU C++11 | TESTS | 30 | 61 | 2150400 | 2700 | |
| 64460112 | vjudge5 | M | Nov. 7, 2019, 10:03 a.m. | OK | GNU C++11 | TESTS | 30 | 61 | 102400000 | 2700 | |
| 63667153 | _ShadowSong | M | Oct. 28, 2019, 3:43 p.m. | OK | GNU C++11 | TESTS | 30 | 62 | 2457600 | 2700 | |
| 64206123 | NoTeamName | M | Nov. 4, 2019, 12:54 p.m. | OK | GNU C++14 | TESTS | 30 | 46 | 0 | 2700 | |
| 65713587 | Motarack | M | Nov. 25, 2019, 3:28 p.m. | OK | GNU C++14 | TESTS | 30 | 46 | 819200 | 2700 | |
| 65716293 | FelixMP OneStone jcastellvi | M | Nov. 25, 2019, 4:45 p.m. | OK | GNU C++14 | TESTS | 30 | 46 | 921600 | 2700 | |
| 67441954 | DeepThought42 | M | Dec. 22, 2019, 7:44 p.m. | OK | GNU C++14 | TESTS | 30 | 46 | 1024000 | 2700 | |
| 64524813 | ItIsNotForRating | M | Nov. 8, 2019, 1:27 p.m. | OK | GNU C++14 | TESTS | 30 | 46 | 1024000 | 2700 | |
| 64349032 | JHSN | M | Nov. 6, 2019, 7:34 a.m. | OK | GNU C++14 | TESTS | 30 | 46 | 1024000 | 2700 | |
| 64130386 | dhxh | M | Nov. 3, 2019, 6:39 a.m. | OK | GNU C++14 | TESTS | 30 | 46 | 1024000 | 2700 | |
| 63882517 | halfblindprince | M | Oct. 30, 2019, 9:52 p.m. | OK | GNU C++14 | TESTS | 30 | 46 | 1024000 | 2700 | |
| 63785886 | hjc20032003 | M | Oct. 30, 2019, 12:18 p.m. | OK | GNU C++14 | TESTS | 30 | 46 | 1024000 | 2700 | |
| 64056360 | Scut82 | M | Nov. 2, 2019, 1:36 a.m. | OK | GNU C++14 | TESTS | 30 | 46 | 1126400 | 2700 | |
| 65455242 | Glebodin | M | Nov. 20, 2019, 8:10 p.m. | OK | GNU C++17 | TESTS | 30 | 46 | 204800 | 2700 | |
| 68360189 | jiangly | M | Jan. 7, 2020, 1:47 p.m. | OK | GNU C++17 | TESTS | 30 | 46 | 921600 | 2700 | |
| 65498896 | krijgertje | M | Nov. 21, 2019, 5:51 p.m. | OK | GNU C++17 | TESTS | 30 | 46 | 921600 | 2700 | |
| 63556694 | kut_kjb1994 hbi1998 | M | Oct. 27, 2019, 1:04 p.m. | OK | GNU C++17 | TESTS | 30 | 46 | 921600 | 2700 | |
| 63643984 | efficientSnail | M | Oct. 28, 2019, 9:02 a.m. | OK | GNU C++17 | TESTS | 30 | 46 | 1024000 | 2700 | |
| 63562835 | mango_lassi | M | Oct. 27, 2019, 2:49 p.m. | OK | GNU C++17 | TESTS | 30 | 46 | 1024000 | 2700 | |
| 65427924 | austrian_artist Drag_On_Fly | M | Nov. 20, 2019, 11:14 a.m. | OK | GNU C++17 | TESTS | 30 | 46 | 1228800 | 2700 | |
| 64145133 | Maciektoja Grzmot Okrut | M | Nov. 3, 2019, 9:37 a.m. | OK | GNU C++17 | TESTS | 30 | 46 | 1228800 | 2700 | |
| 63625116 | xuanquang1999 | M | Oct. 28, 2019, 3:03 a.m. | OK | GNU C++17 | TESTS | 30 | 46 | 1228800 | 2700 | |
| 65418648 | gepardo kefaa2 ReD_AwHiLe | M | Nov. 20, 2019, 8:03 a.m. | OK | GNU C++17 | TESTS | 30 | 46 | 1331200 | 2700 | |
| 63540233 | M | Oct. 27, 2019, 9:06 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2700 | ||
| 63540163 | M | Oct. 27, 2019, 9:06 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2700 | ||
| 63540100 | M | Oct. 27, 2019, 9:06 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2700 | ||
| 63539705 | M | Oct. 27, 2019, 9:06 a.m. | OK | Unknown | TESTS | 0 | 0 | 0 | 2700 |
Back to search problems