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 |
|---|---|---|---|---|---|---|
| 2180 | Codeforces Global Round 31 (Div. 1 + Div. 2) | FINISHED | False | 9000 | 10250722 | Dec. 19, 2025, 2:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 401 ) | F1 | Control Car (Easy Version) | PROGRAMMING | combinatorics dp probabilities |
The two versions differ in the limits, including variable bounds, as well as time and memory constraints. You can hack only if you solve both versions of this problem. Note that a correct solution for the hard version is not necessarily a valid solution for the easy version. We have a control car that behaves like a random variable. As a random variable is neither truly random nor truly variable, our control car is neither a car nor controllable! Anyhow, we are given a grid of size (n \times m) formed by the intersections of (n+1) horizontal lines and (m+1) vertical lines. The grid contains ((n+1)(m+1)) intersection points, which are the corners surrounding the cells. An orientation is an assignment of one of the four cardinal directions (up, down, left, right) to each of these ((n+1)(m+1)) intersection points. Therefore, there are (4^{(n+1)(m+1)}) possible orientations. Consider the process below for an orientation: For each point in the grid, we draw a wall extending in the direction it is oriented with length one unit. Walls may overlap or extend beyond the grid boundary. Place the control car at the top-left corner cell ((1, 1)). Then, as long as the car has not stopped, it moves according to these rules: If it can move down (i.e., no wall blocks the path to the cell directly below), it moves down because of gravity. If it cannot move down but can move right (i.e., no wall blocks the path to the cell directly to its right), it moves right. If the car exits the grid or cannot move, it stops. If it can move down (i.e., no wall blocks the path to the cell directly below), it moves down because of gravity. If it cannot move down but can move right (i.e., no wall blocks the path to the cell directly to its right), it moves right. If the car exits the grid or cannot move, it stops. The orientation is valid if the control car stops inside the grid. Count the number of valid orientations. As the number of valid orientations can be h |
| Codeforces Global Round 31 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 354217957 | b80462685 | F1 | Dec. 19, 2025, 5:04 p.m. | OK | C++17 (GCC 7-32) | TESTS | 6 | 875 | 104652800 | ||
| 354249908 | doreen2011 | F1 | Dec. 20, 2025, 1:55 a.m. | OK | C++17 (GCC 7-32) | TESTS | 6 | 890 | 512000 | ||
| 354230700 | luoxueac | F1 | Dec. 19, 2025, 6:59 p.m. | OK | C++17 (GCC 7-32) | TESTS | 6 | 937 | 512000 | ||
| 354211502 | ArturSmolenski | F1 | Dec. 19, 2025, 4:53 p.m. | OK | C++17 (GCC 7-32) | TESTS | 6 | 1390 | 408985600 | ||
| 354232261 | Pranav_SSS | F1 | Dec. 19, 2025, 7:18 p.m. | OK | C++17 (GCC 7-32) | TESTS | 6 | 1875 | 409600 | ||
| 354244984 | wangzha | F1 | Dec. 19, 2025, 11:10 p.m. | OK | C++17 (GCC 7-32) | TESTS | 6 | 2187 | 323276800 | ||
| 354211819 | b06180339 | F1 | Dec. 19, 2025, 4:53 p.m. | OK | C++17 (GCC 7-32) | TESTS | 6 | 3593 | 502988800 | ||
| 354215077 | Rainbow_qwq | F1 | Dec. 19, 2025, 5 p.m. | OK | C++17 (GCC 7-32) | TESTS | 6 | 3640 | 104857600 | ||
| 354216581 | zyc212139 | F1 | Dec. 19, 2025, 5:03 p.m. | OK | C++17 (GCC 7-32) | TESTS | 6 | 4281 | 401408000 | ||
| 354207829 | mickeyjung | F1 | Dec. 19, 2025, 4:44 p.m. | OK | C++17 (GCC 7-32) | TESTS | 6 | 4781 | 305971200 | ||
| 354250962 | liujiaxi123456 | F1 | Dec. 20, 2025, 2:20 a.m. | OK | C++20 (GCC 13-64) | TESTS | 6 | 484 | 201113600 | ||
| 354244675 | Xerxes | F1 | Dec. 19, 2025, 10:59 p.m. | OK | C++20 (GCC 13-64) | TESTS | 6 | 531 | 196710400 | ||
| 354207408 | DSCS2009 | F1 | Dec. 19, 2025, 4:43 p.m. | OK | C++20 (GCC 13-64) | TESTS | 6 | 546 | 96563200 | ||
| 354215596 | mtsd | F1 | Dec. 19, 2025, 5:01 p.m. | OK | C++20 (GCC 13-64) | TESTS | 6 | 828 | 403353600 | ||
| 354248461 | qiuzx | F1 | Dec. 20, 2025, 1:16 a.m. | OK | C++20 (GCC 13-64) | TESTS | 6 | 890 | 501350400 | ||
| 354211130 | yeminghan | F1 | Dec. 19, 2025, 4:52 p.m. | OK | C++20 (GCC 13-64) | TESTS | 6 | 1031 | 405606400 | ||
| 354208407 | EnofTaiPeople | F1 | Dec. 19, 2025, 4:46 p.m. | OK | C++20 (GCC 13-64) | TESTS | 6 | 1109 | 341708800 | ||
| 354221694 | TKT_YI | F1 | Dec. 19, 2025, 5:45 p.m. | OK | C++20 (GCC 13-64) | TESTS | 6 | 1265 | 197427200 | ||
| 354221482 | KroosTheKeenGlint | F1 | Dec. 19, 2025, 5:44 p.m. | OK | C++20 (GCC 13-64) | TESTS | 6 | 1328 | 501964800 | ||
| 354209526 | Hamed_Ghaffari | F1 | Dec. 19, 2025, 4:48 p.m. | OK | C++20 (GCC 13-64) | TESTS | 6 | 1500 | 505446400 |
Back to search problems