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 |
|---|---|---|---|---|---|---|
| 2230 | Educational Codeforces Round 190 (Rated for Div. 2) | FINISHED | False | 7200 | 2561102 | May 18, 2026, 2:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 1303 ) | E | Minimum Influence | PROGRAMMING | binary search data structures geometry greedy implementation math sortings two pointers |
Imagine that you are the owner of a news website and want to study how some selected news items affect your users. You have (n) news items, and for each of them, you have already determined two parameters: how much it touches politics (p_i) and how much it touches culture (c_i). You also have (m) users whose reaction to the news you want to study. For each person, you have already determined three parameters: tolerance to political news (tp_j), tolerance to cultural news (tc_j), and the "zone of influence" (d_j). The influence of politics (I_p(i, j)) and culture (I_c(i, j)) in news item (i) on user (j) can be calculated by the following formulas: In other words, while the amount of politics (p_i) is less than the tolerance level (tp_j), it does not affect the user. Otherwise, the topic starts to irritate the user, but not more than up to (tp_j + d_j). The same goes for culture. The total influence of news item (i) on user (j) is (I(i, j) = I_p(i, j) + I_c(i, j)). For each user (j), determine the minimum influence (I(i, j)) among all news items (i). The first line contains one integer (n) ((1 \le n \le 2 \cdot 10^5)) — the number of news items. The second line contains (n) integers (p_1, p_2, \dots, p_n) ((0 \le p_i \le 10^6)) — the amount of political content of each news item. The third line contains (n) integers (c_1, c_2, \dots, c_n) ((0 \le c_i \le 10^6)) — the amount of cultural content of each news item. The fourth line contains one integer (m) ((1 \le m \le 4 \cdot 10^5)) — the number of users. The fifth line contains (m) integers (tp_1, tp_2, \dots, tp_m) ((0 \le tp_j \le 10^6)) — the political tolerance of each user. The sixth line contains (m) integers (tc_1, tc_2, \dots, tc_m) ((0 \le tc_j \le 10^6)) — the cultural tolerance of each user. The seventh line contains (m) integers $$$d_1, d_2, \dots, d_m |
| Educational Codeforces Round 190 — Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 375145960 | ok12 | E | May 18, 2026, 4:27 p.m. | OK | C# 13 | TESTS | 15 | 531 | 32256000 | ||
| 375145116 | BurningBeast | E | May 18, 2026, 4:25 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 437 | 25088000 | ||
| 375149491 | gs17005 | E | May 18, 2026, 4:38 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 437 | 56115200 | ||
| 375145853 | FdHasd | E | May 18, 2026, 4:27 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 484 | 66662400 | ||
| 375189541 | LA611 | E | May 19, 2026, 4:51 a.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 546 | 4608000 | ||
| 375147674 | deadlockdev | E | May 18, 2026, 4:32 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 546 | 49868800 | ||
| 375172403 | antguz | E | May 18, 2026, 9:45 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 562 | 12083200 | ||
| 375137824 | Ijichi_Nijika | E | May 18, 2026, 4:06 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 562 | 46592000 | ||
| 375173700 | kevinyu | E | May 18, 2026, 10:23 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 562 | 227328000 | ||
| 375194543 | Anubhav_Maheshwari | E | May 19, 2026, 6:03 a.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 609 | 7372800 | ||
| 375167066 | vid | E | May 18, 2026, 7:53 p.m. | OK | C++17 (GCC 7-32) | TESTS | 15 | 609 | 18636800 | ||
| 375191525 | lbmzxhb | E | May 19, 2026, 5:21 a.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 203 | 144281600 | ||
| 375177369 | drogbaaaa | E | May 19, 2026, 12:35 a.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 312 | 13824000 | ||
| 375184592 | lrb828281 | E | May 19, 2026, 3:19 a.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 312 | 22528000 | ||
| 375187129 | garap | E | May 19, 2026, 4:07 a.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 343 | 25088000 | ||
| 375152146 | DBND | E | May 18, 2026, 4:59 p.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 343 | 88268800 | ||
| 375138139 | alexlin99 | E | May 18, 2026, 4:07 p.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 359 | 18636800 | ||
| 375139083 | alternn | E | May 18, 2026, 4:10 p.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 359 | 31436800 | ||
| 375139645 | Glac1er | E | May 18, 2026, 4:11 p.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 359 | 112230400 | ||
| 375139847 | krigare | E | May 18, 2026, 4:12 p.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 375 | 66764800 | ||
| 375147136 | aarushisharma16 | E | May 18, 2026, 4:30 p.m. | OK | C++20 (GCC 13-64) | TESTS | 15 | 390 | 24985600 | ||
| 375180836 | 424479543 | E | May 19, 2026, 2:04 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 156 | 8499200 | ||
| 375137045 | kaiboy | E | May 18, 2026, 4:05 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 312 | 12902400 | ||
| 375189272 | clawson19 | E | May 19, 2026, 4:47 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 312 | 22528000 | ||
| 375169398 | I_am_blindfold | E | May 18, 2026, 8:35 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 312 | 26726400 | ||
| 375136601 | nbaotoan | E | May 18, 2026, 4:03 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 328 | 10649600 | ||
| 375181347 | DQ1275 | E | May 19, 2026, 2:17 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 328 | 16281600 | ||
| 375185379 | AiHAn | E | May 19, 2026, 3:34 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 328 | 23756800 | ||
| 375179780 | acmtoohard | E | May 19, 2026, 1:40 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 328 | 36147200 | ||
| 375138066 | osjoon | E | May 18, 2026, 4:07 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 328 | 48128000 | ||
| 375137744 | Nick33 | E | May 18, 2026, 4:06 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 15 | 343 | 20275200 | ||
| 375159217 | loveax | E | May 18, 2026, 6:09 p.m. | OK | GNU C11 | TESTS | 15 | 250 | 24371200 | ||
| 375164001 | vineetiwari | E | May 18, 2026, 7:05 p.m. | OK | Java 21 | TESTS | 15 | 906 | 83558400 | ||
| 375148201 | ACatLastTry | E | May 18, 2026, 4:33 p.m. | OK | Java 21 | TESTS | 15 | 1843 | 216064000 | ||
| 375184252 | kamio-misuzu | E | May 19, 2026, 3:14 a.m. | OK | PyPy 3-64 | TESTS | 15 | 578 | 71372800 | ||
| 375183030 | kamio-misuzu | E | May 19, 2026, 2:52 a.m. | OK | PyPy 3-64 | TESTS | 15 | 609 | 87654400 | ||
| 375184163 | kamio-misuzu | E | May 19, 2026, 3:13 a.m. | OK | PyPy 3-64 | TESTS | 15 | 656 | 71065600 | ||
| 375151899 | titia | E | May 18, 2026, 4:58 p.m. | OK | PyPy 3-64 | TESTS | 15 | 1750 | 158003200 | ||
| 375181882 | kamio-misuzu | E | May 19, 2026, 2:29 a.m. | OK | PyPy 3-64 | TESTS | 15 | 1890 | 101068800 | ||
| 375145964 | lushfeast | E | May 18, 2026, 4:27 p.m. | OK | PyPy 3-64 | TESTS | 15 | 1906 | 75776000 | ||
| 375141633 | GKK26 | E | May 18, 2026, 4:16 p.m. | OK | PyPy 3-64 | TESTS | 15 | 1921 | 192614400 | ||
| 375137901 | ashish15678 | E | May 18, 2026, 4:07 p.m. | OK | Python 3 | TESTS | 15 | 1031 | 203059200 | ||
| 375148795 | Shahat0209 | E | May 18, 2026, 4:34 p.m. | OK | Python 3 | TESTS | 15 | 1765 | 168550400 | ||
| 375190703 | Aizon | E | May 19, 2026, 5:09 a.m. | OK | Rust 2021 | TESTS | 15 | 875 | 47820800 | ||
| 375137487 | cvs-650 | E | May 18, 2026, 4:06 p.m. | OK | Rust 2024 | TESTS | 15 | 156 | 48230400 | ||
| 375149138 | rejwar | E | May 18, 2026, 4:34 p.m. | OK | Rust 2024 | TESTS | 15 | 437 | 94208000 |
Back to search problems