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 |
---|---|---|---|---|---|---|
1840 | Codeforces Round 878 (Div. 3) | FINISHED | False | 8100 | 51204263 | June 6, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1892 ) | F | Railguns | PROGRAMMING | dfs and similar dp graphs implementation |
B"Tema is playing a very interesting computer game. During the next mission, Tema's character found himself on an unfamiliar planet. Unlike Earth, this planet is flat and can be represented as an n x m rectangle. Tema's character is located at the point with coordinates (0, 0) . In order to successfully complete the mission, he needs to reach the point with coordinates (n, m) alive. Let the character of the computer game be located at the coordinate (i, j) . Every second, starting from the first, Tema can: The aliens that inhabit this planet are very dangerous and hostile. Therefore, they will shoot from their railguns r times. Each shot completely penetrates one coordinate vertically or horizontally. If the character is in the line of its impact at the time of the shot (at the end of the second), he dies. Since Tema looked at the game's source code, he knows complete information about each shot -- the time, the penetrated coordinate, and the direction of the shot. What is the minimum time for the character to reach the desired point? If he is doomed to die and cannot reach the point with coordinates (n, m) , output -1 . The first line of the input contains a single integer T ( 1 <= T <= 10^4 ) -- the number of test cases. Then follow the descriptions of the test cases. The first line of each test case contains two integers n and m ( 1 <= n cdot m <= 10^4 ) -- the size of the planet, its height and width. The second line of each test case contains a single integer r ( 1 <= r <= 100 ) -- the number of shots. Then follow r lines, each describing one shot. A shot is described by three integers t , d , coord . Where t is the second at which the shot will be fired ( 1 <= t <= 10^9 ). d is the direction of the shot ( d = 1 denotes a horizontal shot, d = 2 denotes a vertical shot). coord is the size of the penetrated "... |
Codeforces Round #878 (Div.3) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
208850480 | BMan | F | June 7, 2023, 4:09 a.m. | OK | GNU C++14 | TESTS | 28 | 405 | 10444800 | ||
208850257 | Hritik12 | F | June 7, 2023, 4:05 a.m. | OK | GNU C++14 | TESTS | 28 | 467 | 6451200 | ||
208845758 | linlexiao | F | June 7, 2023, 2:45 a.m. | OK | GNU C++14 | TESTS | 28 | 499 | 1536000 | ||
208849975 | shashwat_nayak | F | June 7, 2023, 4 a.m. | OK | GNU C++14 | TESTS | 28 | 529 | 210534400 | ||
208854286 | 1jdsop | F | June 7, 2023, 5:11 a.m. | OK | GNU C++14 | TESTS | 28 | 545 | 3993600 | ||
208849943 | weng_zi | F | June 7, 2023, 4 a.m. | OK | GNU C++14 | TESTS | 28 | 592 | 48947200 | ||
208847608 | qwq7 | F | June 7, 2023, 3:19 a.m. | OK | GNU C++14 | TESTS | 28 | 592 | 71987200 | ||
208845636 | I_love_Kim_Dahyun | F | June 7, 2023, 2:42 a.m. | OK | GNU C++14 | TESTS | 28 | 623 | 16793600 | ||
208838276 | zltzlt | F | June 6, 2023, 10:52 p.m. | OK | GNU C++14 | TESTS | 28 | 763 | 245043200 | ||
208832070 | GraduatedNibo | F | June 6, 2023, 8:07 p.m. | OK | GNU C++14 | TESTS | 16 | 779 | 49561600 | ||
208828266 | Neodoomer | F | June 6, 2023, 7:06 p.m. | OK | GNU C++17 | TESTS | 16 | 31 | 0 | ||
208828234 | Neodoomer | F | June 6, 2023, 7:06 p.m. | OK | GNU C++17 | TESTS | 16 | 31 | 0 | ||
208828882 | AlihoR_H | F | June 6, 2023, 7:16 p.m. | OK | GNU C++17 | TESTS | 16 | 31 | 204800 | ||
208826321 | sahildavcool | F | June 6, 2023, 6:41 p.m. | OK | GNU C++17 | TESTS | 16 | 31 | 204800 | ||
208823657 | MDSPro | F | June 6, 2023, 6:12 p.m. | OK | GNU C++17 | TESTS | 16 | 31 | 204800 | ||
208820623 | pomo_ | F | June 6, 2023, 5:43 p.m. | OK | GNU C++17 | TESTS | 16 | 31 | 204800 | ||
208814618 | fromm | F | June 6, 2023, 5:02 p.m. | OK | GNU C++17 | TESTS | 16 | 31 | 204800 | ||
208812714 | UnBalloon | F | June 6, 2023, 4:53 p.m. | OK | GNU C++17 | TESTS | 16 | 31 | 204800 | ||
208816619 | p_x_j | F | June 6, 2023, 5:13 p.m. | OK | GNU C++17 | TESTS | 16 | 31 | 307200 | ||
208812194 | SamsungGreen | F | June 6, 2023, 4:51 p.m. | OK | GNU C++17 | TESTS | 16 | 31 | 307200 | ||
208822726 | placik | F | June 6, 2023, 6:03 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 31 | 0 | ||
208816710 | G_X_J | F | June 6, 2023, 5:13 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 31 | 204800 | ||
208819942 | YocyCraft | F | June 6, 2023, 5:37 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 46 | 102400 | ||
208831538 | deneribeiro10 | F | June 6, 2023, 7:57 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 46 | 307200 | ||
208826137 | KhoriaNabhya | F | June 6, 2023, 6:39 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 46 | 9216000 | ||
208818404 | MaGnsi0 | F | June 6, 2023, 5:25 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 62 | 921600 | ||
208816653 | jysu2023 | F | June 6, 2023, 5:13 p.m. | OK | GNU C++17 (64) | TESTS | 16 | 249 | 819200 | ||
208856669 | alif_cse_ju | F | June 7, 2023, 5:45 a.m. | OK | GNU C++17 (64) | TESTS | 28 | 296 | 3993600 | ||
208843126 | yiyiyize | F | June 7, 2023, 1:48 a.m. | OK | GNU C++17 (64) | TESTS | 28 | 296 | 3993600 | ||
208848845 | tomato_potato | F | June 7, 2023, 3:41 a.m. | OK | GNU C++17 (64) | TESTS | 28 | 327 | 40755200 | ||
208816514 | phamdinhtrunghieugayvl | F | June 6, 2023, 5:12 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 15 | 2867200 | ||
208821173 | Joler_ | F | June 6, 2023, 5:48 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 30 | 307200 | ||
208833790 | DottedCalculator | F | June 6, 2023, 8:42 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 31 | 0 | ||
208829205 | qwerty2300730 | F | June 6, 2023, 7:21 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 31 | 0 | ||
208830288 | ssshanto | F | June 6, 2023, 7:37 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 31 | 102400 | ||
208817262 | San_Cai | F | June 6, 2023, 5:17 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 31 | 102400 | ||
208825510 | N00BGH0ST | F | June 6, 2023, 6:31 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 31 | 204800 | ||
208823891 | N00BGH0ST | F | June 6, 2023, 6:14 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 31 | 204800 | ||
208820502 | silxi | F | June 6, 2023, 5:42 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 31 | 204800 | ||
208817199 | Yeawer | F | June 6, 2023, 5:17 p.m. | OK | GNU C++20 (64) | TESTS | 16 | 31 | 204800 | ||
208845687 | hungone | F | June 7, 2023, 2:43 a.m. | OK | Java 8 | TESTS | 28 | 717 | 39219200 | ||
208839901 | arvindf232 | F | June 6, 2023, 11:59 p.m. | OK | Kotlin 1.6 | TESTS | 28 | 1044 | 0 | ||
208825632 | arvindf232 | F | June 6, 2023, 6:33 p.m. | OK | Kotlin 1.6 | TESTS | 28 | 1138 | 409600 | ||
208825969 | arvindf232 | F | June 6, 2023, 6:37 p.m. | OK | Kotlin 1.6 | TESTS | 28 | 1263 | 409600 | ||
208857068 | Hakiobo | F | June 7, 2023, 5:51 a.m. | OK | Kotlin 1.7 | TESTS | 28 | 935 | 54681600 | ||
208838975 | arvindf232 | F | June 6, 2023, 11:20 p.m. | OK | Kotlin 1.7 | TESTS | 28 | 951 | 63488000 | ||
208839895 | arvindf232 | F | June 6, 2023, 11:59 p.m. | OK | Kotlin 1.7 | TESTS | 28 | 1013 | 122880000 | ||
208830717 | pedrosorio | F | June 6, 2023, 7:45 p.m. | OK | PyPy 3-64 | TESTS | 16 | 171 | 8499200 | ||
208830855 | pedrosorio | F | June 6, 2023, 7:47 p.m. | OK | PyPy 3-64 | TESTS | 16 | 186 | 8806400 | ||
208830565 | pedrosorio | F | June 6, 2023, 7:42 p.m. | OK | PyPy 3-64 | TESTS | 16 | 187 | 9113600 | ||
208830813 | pedrosorio | F | June 6, 2023, 7:46 p.m. | OK | PyPy 3-64 | TESTS | 16 | 202 | 9113600 | ||
208830446 | pedrosorio | F | June 6, 2023, 7:40 p.m. | OK | PyPy 3-64 | TESTS | 16 | 218 | 9216000 | ||
208831562 | gardengnome | F | June 6, 2023, 7:58 p.m. | OK | PyPy 3-64 | TESTS | 16 | 296 | 10444800 | ||
208831537 | horrlod | F | June 6, 2023, 7:57 p.m. | OK | PyPy 3-64 | TESTS | 16 | 452 | 21401600 | ||
208848713 | brealid | F | June 7, 2023, 3:38 a.m. | OK | PyPy 3-64 | TESTS | 28 | 514 | 22016000 | ||
208843413 | liupengsay | F | June 7, 2023, 1:55 a.m. | OK | PyPy 3-64 | TESTS | 28 | 654 | 43417600 | ||
208838136 | SoleProprietor | F | June 6, 2023, 10:46 p.m. | OK | PyPy 3-64 | TESTS | 28 | 686 | 14848000 | ||
208819012 | magnus.hegdahl | F | June 6, 2023, 5:30 p.m. | OK | Rust 2021 | TESTS | 16 | 15 | 307200 | ||
208815264 | magnus.hegdahl | F | June 6, 2023, 5:05 p.m. | OK | Rust 2021 | TESTS | 16 | 31 | 307200 | ||
208814355 | magnus.hegdahl | F | June 6, 2023, 5 p.m. | OK | Rust 2021 | TESTS | 16 | 62 | 307200 | ||
208842941 | magnus.hegdahl | F | June 7, 2023, 1:43 a.m. | OK | Rust 2021 | TESTS | 28 | 109 | 307200 | ||
208842882 | magnus.hegdahl | F | June 7, 2023, 1:42 a.m. | OK | Rust 2021 | TESTS | 28 | 124 | 307200 |
Back to search problems