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 |
|---|---|---|---|---|---|---|
| 2169 | Educational Codeforces Round 184 (Rated for Div. 2) | FINISHED | False | 7200 | 13274723 | Nov. 14, 2025, 2:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 994 ) | E | Points Selection | PROGRAMMING | dp geometry greedy |
Alice and Bob are playing with points on the XY plane. Initially, there are (n) points on the plane: the (i)-th point is located at ((x_i, y_i)) and has a cost of (c_i). The game consists of two stages: First, Alice selects some points (possibly none, but not all) and removes them from the field. Then, Bob draws a rectangle with sides parallel to the coordinate axes, such that all remaining points lie inside or on the boundary of this rectangle. The rectangle can degenerate into a line segment or even a point. After that, the game ends and the total score is calculated. The total score of the game is the sum of the costs of the removed points by Alice and the perimeter of the rectangle drawn by Bob. Alice wants to maximize the score, while Bob wants to minimize it. Determine the total score of the game if both Alice and Bob play optimally. The perimeter of the rectangle is equal to the sum of the lengths of all its four sides. Therefore, even if the rectangle degenerates into a line segment of length (k), its perimeter will be (2k). The perimeter of a rectangle that degenerates into a point is (0). The first line contains a single integer (t) ((1 \le t \le 10^4)) — the number of test cases. The first line of each test case contains a single integer (n) ((1 \le n \le 3 \cdot 10^5)) — the number of points on the plane. The second line of each test case contains (n) integers (x_1, x_2, \dots, x_n) ((0 \le x_i \le 10^{15})) — the (x)-coordinates of the points. The third line contains (n) integers (y_1, y_2, \dots, y_n) ((0 \le y_i \le 10^{15})) — the (y)-coordinates of the points. The fourth line contains (n) integers (c_1, c_2, \dots, c_n) ((0 \le c_i \le 10^9)) — the costs of the points. Additional constraints on the input: in one test case, all points are pairwise distinct; the total number of points across all test cases does not exceed (3 \cdot 10^5). For each test |
| Educational Codeforces Round 184 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 349031643 | -Guts | E | Nov. 15, 2025, 1:35 a.m. | OK | C++17 (GCC 7-32) | TESTS | 27 | 312 | 3276800 | ||
| 349024951 | VaHiX | E | Nov. 14, 2025, 10:15 p.m. | OK | C++17 (GCC 7-32) | TESTS | 27 | 343 | 7270400 | ||
| 348982379 | -Aisaka-Taiga- | E | Nov. 14, 2025, 4:24 p.m. | OK | C++17 (GCC 7-32) | TESTS | 27 | 343 | 7270400 | ||
| 349018530 | tomcr000se | E | Nov. 14, 2025, 8:33 p.m. | OK | C++17 (GCC 7-32) | TESTS | 27 | 358 | 3276800 | ||
| 349003026 | richardl02 | E | Nov. 14, 2025, 6:10 p.m. | OK | C++17 (GCC 7-32) | TESTS | 27 | 358 | 3584000 | ||
| 348987158 | LiangMoon | E | Nov. 14, 2025, 4:32 p.m. | OK | C++17 (GCC 7-32) | TESTS | 27 | 359 | 7270400 | ||
| 348986882 | Lion_2056 | E | Nov. 14, 2025, 4:32 p.m. | OK | C++17 (GCC 7-32) | TESTS | 27 | 390 | 3276800 | ||
| 348981827 | JeffTheGit | E | Nov. 14, 2025, 4:22 p.m. | OK | C++17 (GCC 7-32) | TESTS | 27 | 390 | 3276800 | ||
| 348985355 | ninh69 | E | Nov. 14, 2025, 4:29 p.m. | OK | C++17 (GCC 7-32) | TESTS | 27 | 406 | 24064000 | ||
| 348985759 | ParsaPordastan | E | Nov. 14, 2025, 4:30 p.m. | OK | C++17 (GCC 7-32) | TESTS | 27 | 421 | 3276800 | ||
| 348988342 | ManasaLGM | E | Nov. 14, 2025, 4:34 p.m. | OK | C++20 (GCC 13-64) | TESTS | 27 | 233 | 3276800 | ||
| 348984311 | wuhudsm | E | Nov. 14, 2025, 4:27 p.m. | OK | C++20 (GCC 13-64) | TESTS | 27 | 233 | 24064000 | ||
| 349009223 | ALAov | E | Nov. 14, 2025, 6:59 p.m. | OK | C++20 (GCC 13-64) | TESTS | 27 | 234 | 3276800 | ||
| 348982235 | galinapavlovna | E | Nov. 14, 2025, 4:23 p.m. | OK | C++20 (GCC 13-64) | TESTS | 27 | 234 | 3276800 | ||
| 349047237 | samcpp | E | Nov. 15, 2025, 5:33 a.m. | OK | C++20 (GCC 13-64) | TESTS | 27 | 249 | 3276800 | ||
| 349023073 | YuukiS | E | Nov. 14, 2025, 9:40 p.m. | OK | C++20 (GCC 13-64) | TESTS | 27 | 249 | 3276800 | ||
| 349002489 | higherlow25 | E | Nov. 14, 2025, 6:06 p.m. | OK | C++20 (GCC 13-64) | TESTS | 27 | 249 | 3276800 | ||
| 348985494 | latanchar | E | Nov. 14, 2025, 4:29 p.m. | OK | C++20 (GCC 13-64) | TESTS | 27 | 249 | 3276800 | ||
| 348985803 | Mohammad_Hacker | E | Nov. 14, 2025, 4:30 p.m. | OK | C++20 (GCC 13-64) | TESTS | 27 | 249 | 3379200 | ||
| 349050683 | The_Caspian_Sea | E | Nov. 15, 2025, 6:06 a.m. | OK | C++20 (GCC 13-64) | TESTS | 27 | 249 | 7270400 | ||
| 348995503 | vedantkohad | E | Nov. 14, 2025, 5:13 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 27 | 202 | 3584000 | ||
| 349036498 | enslaved | E | Nov. 15, 2025, 3:11 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 27 | 218 | 2252800 | ||
| 349030831 | Joler_ | E | Nov. 15, 2025, 1:15 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 27 | 218 | 3379200 | ||
| 348992009 | birsnot | E | Nov. 14, 2025, 4:51 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 27 | 218 | 3379200 | ||
| 349040661 | behzinga | E | Nov. 15, 2025, 4:14 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 27 | 233 | 3379200 | ||
| 348986695 | Sunb1m | E | Nov. 14, 2025, 4:31 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 27 | 233 | 3379200 | ||
| 349030062 | Joler_ | E | Nov. 15, 2025, 12:54 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 27 | 234 | 3379200 | ||
| 349001061 | Shoeib | E | Nov. 14, 2025, 5:55 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 27 | 234 | 3379200 | ||
| 348992889 | freeloop2 | E | Nov. 14, 2025, 4:56 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 27 | 234 | 3379200 | ||
| 349019130 | IanISam | E | Nov. 14, 2025, 8:40 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 27 | 249 | 3379200 | ||
| 348991089 | Ab_hoga_real_Cumback | E | Nov. 14, 2025, 4:46 p.m. | OK | Java 21 | TESTS | 27 | 921 | 30310400 | ||
| 349007296 | gua069 | E | Nov. 14, 2025, 6:44 p.m. | OK | Java 8 | TESTS | 27 | 530 | 19046400 | ||
| 348992355 | denilb | E | Nov. 14, 2025, 4:53 p.m. | OK | PyPy 3-64 | TESTS | 27 | 1155 | 55398400 | ||
| 349038859 | Little_Sheep_Yawn | E | Nov. 15, 2025, 3:47 a.m. | OK | PyPy 3-64 | TESTS | 27 | 1296 | 63283200 | ||
| 349029184 | mkawa2 | E | Nov. 15, 2025, 12:25 a.m. | OK | PyPy 3-64 | TESTS | 27 | 1359 | 67891200 | ||
| 349032867 | IcyGirl | E | Nov. 15, 2025, 2:02 a.m. | OK | PyPy 3-64 | TESTS | 27 | 1609 | 94720000 | ||
| 349024765 | VaHiX | E | Nov. 14, 2025, 10:11 p.m. | OK | PyPy 3-64 | TESTS | 27 | 1812 | 97689600 | ||
| 349002370 | Monster027 | E | Nov. 14, 2025, 6:05 p.m. | OK | Rust 2024 | TESTS | 27 | 1217 | 41574400 | ||
| 349001073 | pradeep027 | E | Nov. 14, 2025, 5:55 p.m. | OK | Rust 2024 | TESTS | 27 | 1296 | 41574400 |
Back to search problems