Codeforces Round 1021 (Div. 1)

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
2097 Codeforces Round 1021 (Div. 1) FINISHED False 10800 30749123 April 26, 2025, 8:35 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 183 ) F Lost Luggage PROGRAMMING dp

As is known, the airline "Trouble" often loses luggage, and concerned journalists decided to calculate the maximum number of luggage pieces that may not return to travelers. The airline "Trouble" operates flights between (n) airports, numbered from (1) to (n). The journalists' experiment will last for (m) days. It is known that at midnight before the first day of the experiment, there were (s_j) lost pieces of luggage in the (j)-th airport. On the (i)-th day, the following occurs: In the morning , (2n) flights take off simultaneously, including (n) flights of the first type and (n) flights of the second type . The (j)-th flight of the first type flies from airport (j) to airport ((((j-2) \bmod n )+ 1)) (the previous airport, with the first airport being the last), and it can carry no more than (a_{i,j}) lost pieces of luggage. The (j)-th flight of the second type flies from airport (j) to airport (((j \bmod n) + 1)) (the next airport, with the last airport being the first), and it can carry no more than (c_{i,j}) lost pieces of luggage. The (j)-th flight of the first type flies from airport (j) to airport ((((j-2) \bmod n )+ 1)) (the previous airport, with the first airport being the last), and it can carry no more than (a_{i,j}) lost pieces of luggage. The (j)-th flight of the second type flies from airport (j) to airport (((j \bmod n) + 1)) (the next airport, with the last airport being the first), and it can carry no more than (c_{i,j}) lost pieces of luggage. In the afternoon , a check of lost luggage is conducted at the airports. If after the flights have departed on that day, there are (x) pieces of luggage remaining in the (j)-th airport and (x \ge b_{i, j}), then at least (x - b_{i, j}) pieces of luggage are found, and they cease to be lost . In the evening , all (2n) flights conclude, and the lost luggage transported that day

Tutorials

142316

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
317312383 orzdevinwang F April 26, 2025, 10:29 a.m. OK C++17 (GCC 7-32) TESTS 36 1577 40140800
317307318 tourist F April 26, 2025, 10:07 a.m. OK C++20 (GCC 13-64) TESTS 36 921 102400
317364108 jeroenodb F April 26, 2025, 5:05 p.m. OK C++20 (GCC 13-64) TESTS 36 1061 102400
317402728 NKheyuxiang F April 27, 2025, 1:33 a.m. OK C++20 (GCC 13-64) TESTS 36 1281 2150400
317390906 Ormlis F April 26, 2025, 9 p.m. OK C++20 (GCC 13-64) TESTS 36 1874 102400
317399057 Radewoosh F April 26, 2025, 11:46 p.m. OK C++20 (GCC 13-64) TESTS 36 1953 409600
317363643 jeroenodb F April 26, 2025, 5 p.m. OK C++20 (GCC 13-64) TESTS 36 1983 102400
317326012 isaf27 F April 26, 2025, 11:31 a.m. OK C++23 (GCC 14-64, msys2) TESTS 36 936 204800
317316279 hos.lyric F April 26, 2025, 10:47 a.m. OK C++23 (GCC 14-64, msys2) TESTS 36 1077 3584000
317309525 maspy F April 26, 2025, 10:16 a.m. OK C++23 (GCC 14-64, msys2) TESTS 36 1280 307200
317325883 244mhq F April 26, 2025, 11:31 a.m. OK C++23 (GCC 14-64, msys2) TESTS 36 1703 263884800
317309102 jiangly F April 26, 2025, 10:14 a.m. OK C++23 (GCC 14-64, msys2) TESTS 36 1843 102400
317367201 ahmedafeef F April 26, 2025, 5:32 p.m. OK GNU C11 TESTS 36 842 204800
317365809 ahmedafeef F April 26, 2025, 5:20 p.m. OK GNU C11 TESTS 36 843 204800
317413724 2manas1 F April 27, 2025, 5:44 a.m. OK Java 21 TESTS 36 1514 45772800
317304638 sansen F April 26, 2025, 9:56 a.m. OK Rust 2021 TESTS 36 1437 102400

remove filters

Back to search problems