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 |
|---|---|---|---|---|---|---|
| 2194 | Codeforces Round 1078 (Div. 2) | FINISHED | False | 7200 | 5864123 | Feb. 8, 2026, 9:05 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 2545 ) | E | The Turtle Strikes Back | PROGRAMMING | dp graphs greedy |
After a heavy training session, Michelangelo and Raphael decided to order pizza. Today, on the occasion of the holiday, the pizzeria is preparing rectangular pizzas made of (n) rows and (m) columns of slices. Each slice has its own unique recipe and flavor. Michelangelo was the first to open the box and roughly estimated the pleasure of eating each slice: the pleasure from the slice located in the (i)-th row and (j)-th column is equal to (a_{i,j}). It is guaranteed that there is at least one slice that Michelangelo liked, meaning that among (a_{i, j}) there is at least one non-negative number. The turtles agreed that Michelangelo would eat first. According to an ancient tradition, he must choose a route from the top left corner ((1,1)) to the bottom right corner ((n,m)) and eat all the slices on that route. In one step, he can move either to the adjacent slice on the right or to the adjacent slice below. Michelangelo aims to maximize the total pleasure from the eaten slices. However, Raphael decided to use sauce. Before Michelangelo chooses a route, Raphael decided to choose exactly one slice of pizza and apply his signature sauce to it. But due to the specifics of this sauce, the pleasure from that slice changes to the opposite: if it was previously (a_{i,j}), after applying the sauce it becomes (-a_{i,j}). After that, knowing Raphael's choice, Michelangelo will choose the optimal route for himself and eat all the slices on it. Raphael became curious about what minimum pleasure Michelangelo could achieve. Help him calculate this number. Each test contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 10^4)). The description of the test cases follows. In the first line of each test case, two integers (n, m\, (1 \le n, m \le 10^6, 1 \leq n \cdot m \le 10^6)) are given — the number of rows and columns in the table, respectively. In each of the following (n) line |
| Codeforces Round #1078 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 362055018 | papa_joo | E | Feb. 8, 2026, 8:23 p.m. | OK | C# 13 | TESTS | 52 | 250 | 214835200 | ||
| 361993357 | abcxyz789 | E | Feb. 8, 2026, 10:49 a.m. | OK | C++17 (GCC 7-32) | TESTS | 52 | 125 | 56320000 | ||
| 362066453 | kk1213g | E | Feb. 9, 2026, 1:39 a.m. | OK | C++17 (GCC 7-32) | TESTS | 53 | 265 | 40140800 | ||
| 362037590 | Ayushlaware | E | Feb. 8, 2026, 5:09 p.m. | OK | C++17 (GCC 7-32) | TESTS | 52 | 312 | 36249600 | ||
| 361995066 | ShubhamYadav_27 | E | Feb. 8, 2026, 10:53 a.m. | OK | C++17 (GCC 7-32) | TESTS | 52 | 312 | 44236800 | ||
| 362026385 | kavyanshkrishan | E | Feb. 8, 2026, 3:41 p.m. | OK | C++17 (GCC 7-32) | TESTS | 52 | 312 | 48128000 | ||
| 361993365 | WanderFreeFish | E | Feb. 8, 2026, 10:49 a.m. | OK | C++17 (GCC 7-32) | TESTS | 52 | 328 | 40243200 | ||
| 362033085 | luohui468 | E | Feb. 8, 2026, 4:40 p.m. | OK | C++17 (GCC 7-32) | TESTS | 52 | 328 | 44236800 | ||
| 361999610 | prologue1017 | E | Feb. 8, 2026, 11:04 a.m. | OK | C++17 (GCC 7-32) | TESTS | 52 | 328 | 64204800 | ||
| 362080994 | jiawenzhuo | E | Feb. 9, 2026, 5:50 a.m. | OK | C++17 (GCC 7-32) | TESTS | 53 | 328 | 76185600 | ||
| 362027603 | kaislash | E | Feb. 8, 2026, 3:51 p.m. | OK | C++17 (GCC 7-32) | TESTS | 52 | 328 | 84172800 | ||
| 362064506 | elsantodel90 | E | Feb. 9, 2026, 12:37 a.m. | OK | C++20 (GCC 13-64) | TESTS | 53 | 234 | 16179200 | ||
| 362058723 | jay_1410 | E | Feb. 8, 2026, 9:36 p.m. | OK | C++20 (GCC 13-64) | TESTS | 52 | 234 | 36249600 | ||
| 362055067 | VladiG | E | Feb. 8, 2026, 8:24 p.m. | OK | C++20 (GCC 13-64) | TESTS | 52 | 234 | 36249600 | ||
| 361999570 | hugin2018 | E | Feb. 8, 2026, 11:04 a.m. | OK | C++20 (GCC 13-64) | TESTS | 52 | 234 | 36249600 | ||
| 361999882 | sharif_mahmud | E | Feb. 8, 2026, 11:04 a.m. | OK | C++20 (GCC 13-64) | TESTS | 52 | 234 | 40243200 | ||
| 362040604 | cleanser | E | Feb. 8, 2026, 5:37 p.m. | OK | C++20 (GCC 13-64) | TESTS | 52 | 234 | 44339200 | ||
| 362068750 | WuMin4 | E | Feb. 9, 2026, 2:37 a.m. | OK | C++20 (GCC 13-64) | TESTS | 53 | 234 | 48128000 | ||
| 361993624 | XVIII | E | Feb. 8, 2026, 10:50 a.m. | OK | C++20 (GCC 13-64) | TESTS | 52 | 234 | 48230400 | ||
| 361995119 | olympics.uz | E | Feb. 8, 2026, 10:54 a.m. | OK | C++20 (GCC 13-64) | TESTS | 52 | 234 | 56217600 | ||
| 362062343 | Ra_ist | E | Feb. 8, 2026, 11:24 p.m. | OK | C++20 (GCC 13-64) | TESTS | 53 | 234 | 84377600 | ||
| 361995759 | CarrotMeow | E | Feb. 8, 2026, 10:55 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 52 | 93 | 46387200 | ||
| 362049977 | ColobocCodeforces | E | Feb. 8, 2026, 7:13 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 52 | 218 | 16281600 | ||
| 362069744 | jouker | E | Feb. 9, 2026, 2:56 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 53 | 218 | 32153600 | ||
| 362028510 | PSURI1894 | E | Feb. 8, 2026, 3:59 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 52 | 234 | 36249600 | ||
| 362076464 | AvoHado-_- | E | Feb. 9, 2026, 4:53 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 53 | 234 | 40345600 | ||
| 362021919 | unrealassembler | E | Feb. 8, 2026, 3:07 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 52 | 234 | 52326400 | ||
| 362053362 | huihhuui | E | Feb. 8, 2026, 7:59 p.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 52 | 234 | 60416000 | ||
| 362070271 | _Ming3398 | E | Feb. 9, 2026, 3:06 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 53 | 234 | 144384000 | ||
| 361997708 | _GG_123 | E | Feb. 8, 2026, 11 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 52 | 250 | 36249600 | ||
| 361993402 | Yeager | E | Feb. 8, 2026, 10:49 a.m. | OK | C++23 (GCC 14-64, msys2) | TESTS | 52 | 250 | 40140800 | ||
| 362046303 | hg_2005 | E | Feb. 8, 2026, 6:31 p.m. | OK | Java 21 | TESTS | 52 | 843 | 153292800 | ||
| 361996663 | lohan007 | E | Feb. 8, 2026, 10:57 a.m. | OK | Java 21 | TESTS | 52 | 1281 | 159232000 | ||
| 362061169 | wddd | E | Feb. 8, 2026, 10:43 p.m. | OK | Java 21 | TESTS | 53 | 1593 | 229171200 | ||
| 362056866 | Yousef_Badr | E | Feb. 8, 2026, 8:57 p.m. | OK | Java 21 | TESTS | 52 | 1625 | 175206400 | ||
| 361995123 | yrflxian | E | Feb. 8, 2026, 10:54 a.m. | OK | Java 8 | TESTS | 52 | 1562 | 425267200 | ||
| 361994461 | yg.margo | E | Feb. 8, 2026, 10:52 a.m. | OK | Kotlin 2.2 | TESTS | 52 | 250 | 72806400 | ||
| 362027986 | hugoback01 | E | Feb. 8, 2026, 3:55 p.m. | OK | PyPy 3-64 | TESTS | 52 | 312 | 124723200 | ||
| 362028534 | hugoback01 | E | Feb. 8, 2026, 3:59 p.m. | OK | PyPy 3-64 | TESTS | 52 | 312 | 125030400 | ||
| 362030419 | RUTHVIK0811 | E | Feb. 8, 2026, 4:16 p.m. | OK | PyPy 3-64 | TESTS | 52 | 312 | 128921600 | ||
| 362066618 | smilences | E | Feb. 9, 2026, 1:45 a.m. | OK | PyPy 3-64 | TESTS | 53 | 328 | 116838400 | ||
| 362028179 | hugoback01 | E | Feb. 8, 2026, 3:56 p.m. | OK | PyPy 3-64 | TESTS | 52 | 359 | 125030400 | ||
| 361997302 | luckym_123 | E | Feb. 8, 2026, 10:59 a.m. | OK | PyPy 3-64 | TESTS | 52 | 437 | 120832000 | ||
| 361998309 | knovozhilov | E | Feb. 8, 2026, 11:01 a.m. | OK | PyPy 3-64 | TESTS | 52 | 437 | 143052800 | ||
| 362066576 | smilences | E | Feb. 9, 2026, 1:43 a.m. | OK | PyPy 3-64 | TESTS | 53 | 765 | 157491200 | ||
| 361993452 | Madhavan2003 | E | Feb. 8, 2026, 10:49 a.m. | OK | PyPy 3-64 | TESTS | 52 | 781 | 478822400 | ||
| 361996486 | tyuyu_62 | E | Feb. 8, 2026, 10:57 a.m. | OK | PyPy 3-64 | TESTS | 52 | 796 | 116736000 | ||
| 362079775 | darkkcyan | E | Feb. 9, 2026, 5:36 a.m. | OK | Rust 2024 | TESTS | 53 | 343 | 148684800 | ||
| 361996675 | despair | E | Feb. 8, 2026, 10:57 a.m. | OK | Rust 2024 | TESTS | 52 | 546 | 230809600 |
Back to search problems