European Championship 2024 - Online Mirror (Unrated, ICPC Rules, Teams Preferred)

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
1949 European Championship 2024 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) FINISHED False 18000 25905563 March 24, 2024, 10 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 120 ) A Grove PROGRAMMING dp dp dp geometry

B'You want to plant trees in a square lawn of size n x n whose corners have Cartesian coordinates (0, 0) , (n, 0) , (0, n) , and (n, n) . Trees can only be planted at locations with integer coordinates. Every tree will grow roots within a disk of radius r centered at the location where the tree was planted; such disks must be fully contained in the lawn (possibly touching the boundary of the lawn) and can only intersect each other on their boundaries. Find a configuration that maximizes the number of trees. The first and only line contains an integer n ( 1 <= q n <= q 20 ) and a real number r ( 0 < r <= q n/2 ) -- the length of the sides of the lawn, and the radius of the disks where each tree will grow roots. The real number r is given in decimal notation with at least 1 and at most 3 digits after the decimal point. In the first line, print the maximum number m of trees that can be planted. In the next m lines, print a configuration that maximizes the number of trees. Specifically, in the (i+1) -th line, print two integers x and y -- the coordinates of the location where the i -th tree should be planted. You can print the trees in any order. If there are multiple solutions, print any of them. For the first sample, the sample output is shown in the following figure. Note that this is not the only configuration that maximizes the number of trees. For the second sample, the sample output is shown in the following figure. Note that this is not the only configuration that maximizes the number of trees. '...

Tutorials

European Championship 2024 (EUC) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
253084155 crazy_sea A_zjzj 275307894a A March 24, 2024, 12:46 p.m. OK C++17 (GCC 7-32) TESTS 75 202 2764800
253148137 N_z__ A March 25, 2024, 12:40 a.m. OK C++17 (GCC 7-32) TESTS 75 280 5120000
253088171 PubabaOnO orzdevinwang jqdai0815 A March 24, 2024, 1:15 p.m. OK C++17 (GCC 7-32) TESTS 75 1684 409600
253153284 ustinian6 A March 25, 2024, 2:54 a.m. OK C++17 (GCC 7-32) TESTS 75 2074 168038400
253151721 ustinian6 A March 25, 2024, 2:17 a.m. OK C++17 (GCC 7-32) TESTS 75 2230 167833600
253106387 ustinian6 A March 24, 2024, 3:35 p.m. OK C++17 (GCC 7-32) TESTS 75 2277 167833600
253151876 ustinian6 A March 25, 2024, 2:22 a.m. OK C++17 (GCC 7-32) TESTS 75 2308 168038400
253153328 ustinian6 A March 25, 2024, 2:55 a.m. OK C++17 (GCC 7-32) TESTS 75 2323 168038400
253106192 ustinian6 A March 24, 2024, 3:33 p.m. OK C++17 (GCC 7-32) TESTS 75 2417 167833600
253114737 0wuming0 A March 24, 2024, 4:55 p.m. OK C++17 (GCC 7-32) TESTS 75 2620 60211200
253105690 Tikhon228 A March 24, 2024, 3:28 p.m. OK C++20 (GCC 13-64) TESTS 75 15 512000
253089750 mo_onrabbit2 Worteltje Retro3014 A March 24, 2024, 1:27 p.m. OK C++20 (GCC 13-64) TESTS 75 46 102400
253083041 ship2077 User_Carrot N_z__ A March 24, 2024, 12:38 p.m. OK C++20 (GCC 13-64) TESTS 75 296 5120000
253146288 ship2077 A March 24, 2024, 11:50 p.m. OK C++20 (GCC 13-64) TESTS 75 468 819200
253133779 teapotd A March 24, 2024, 8:13 p.m. OK C++20 (GCC 13-64) TESTS 75 2698 204595200
253141931 MarcosK A March 24, 2024, 10:07 p.m. OK C++20 (GCC 13-64) TESTS 75 2745 254771200
253141897 MarcosK A March 24, 2024, 10:07 p.m. OK C++20 (GCC 13-64) TESTS 75 2792 252825600
253074340 tourist ecnerwala A March 24, 2024, 11:30 a.m. OK C++20 (GCC 13-64) TESTS 75 3306 12288000
253114688 Thienu A March 24, 2024, 4:54 p.m. OK C++20 (GCC 13-64) TESTS 75 3775 204800
253133006 teapotd A March 24, 2024, 8:05 p.m. OK C++20 (GCC 13-64) TESTS 75 3962 204595200

remove filters

Back to search problems