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 |
---|---|---|---|---|---|---|
1419 | Codeforces Round 671 (Div. 2) | FINISHED | False | 7200 | 136740263 | Sept. 19, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 499 ) | F | Rain of Fire | PROGRAMMING | binary search dfs and similar ds graphs implementation sortings |
B"There are n detachments on the surface, numbered from 1 to n , the i -th detachment is placed in a point with coordinates (x_i, y_i) . All detachments are placed in different points. Brimstone should visit each detachment at least once. You can choose the detachment where Brimstone starts. To move from one detachment to another he should first choose one of four directions of movement (up, right, left or down) and then start moving with the constant speed of one unit interval in a second until he comes to a detachment. After he reaches an arbitrary detachment, he can repeat the same process. Each t seconds an orbital strike covers the whole surface, so at that moment Brimstone should be in a point where some detachment is located. He can stay with any detachment as long as needed. Brimstone is a good commander, that's why he can create at most one detachment and place it in any empty point with integer coordinates he wants before his trip. Keep in mind that Brimstone will need to visit this detachment, too. Help Brimstone and find such minimal t that it is possible to check each detachment. If there is no such t report about it. The first line contains a single integer n (2 <= n <= 1000) -- the number of detachments. In each of the next n lines there is a pair of integers x_i , y_i (|x_i|, |y_i| <= 10^9) -- the coordinates of i -th detachment. It is guaranteed that all points are different. Output such minimal integer t that it is possible to check all the detachments adding at most one new detachment. If there is no such t , print -1 . In the first test it is possible to place a detachment in (0, 0) , so that it is possible to check all the detachments for t = 100 . It can be proven that it is impossible to check all detachments for t < 100 ; thus the answer is 100 . In the second test, there is no such t that it is possibl"... |
Codeforces Round #671 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
93272065 | rainboy | F | Sept. 19, 2020, 6:26 p.m. | OK | GNU C11 | TESTS | 200 | 1091 | 28057600 | ||
93272502 | nwi | F | Sept. 19, 2020, 6:27 p.m. | OK | GNU C++11 | TESTS | 200 | 156 | 8294400 | ||
93298191 | AquaMoon | F | Sept. 20, 2020, 3:52 a.m. | OK | GNU C++11 | TESTS | 200 | 156 | 44134400 | ||
93295088 | Warriors_fsy | F | Sept. 20, 2020, 2:39 a.m. | OK | GNU C++11 | TESTS | 200 | 670 | 102400 | ||
93292327 | He_Ren | F | Sept. 20, 2020, 1:14 a.m. | OK | GNU C++11 | TESTS | 200 | 1076 | 81100800 | ||
93295033 | Wallbreaker4th | F | Sept. 20, 2020, 2:37 a.m. | OK | GNU C++11 | TESTS | 200 | 1185 | 409600 | ||
93298460 | YLWang | F | Sept. 20, 2020, 3:58 a.m. | OK | GNU C++11 | TESTS | 200 | 1185 | 409600 | ||
93296415 | vipghn2 | F | Sept. 20, 2020, 3:13 a.m. | OK | GNU C++14 | TESTS | 200 | 31 | 512000 | ||
93293641 | clyring | F | Sept. 20, 2020, 1:57 a.m. | OK | GNU C++14 | TESTS | 200 | 62 | 3891200 | ||
93272608 | Kirill22 | F | Sept. 19, 2020, 6:28 p.m. | OK | GNU C++14 | TESTS | 200 | 171 | 20275200 | ||
93273928 | stevenkplus | F | Sept. 19, 2020, 6:34 p.m. | OK | GNU C++14 | TESTS | 200 | 202 | 12902400 | ||
93285546 | 4qqqq | F | Sept. 19, 2020, 9:09 p.m. | OK | GNU C++14 | TESTS | 200 | 1216 | 1228800 | ||
93296425 | vipghn2003 | F | Sept. 20, 2020, 3:14 a.m. | OK | GNU C++17 | TESTS | 200 | 46 | 204800 | ||
93298971 | Guty | F | Sept. 20, 2020, 4:08 a.m. | OK | GNU C++17 | TESTS | 200 | 46 | 512000 | ||
93298842 | Guty | F | Sept. 20, 2020, 4:06 a.m. | OK | GNU C++17 | TESTS | 200 | 46 | 512000 | ||
93294043 | DD_BOND | F | Sept. 20, 2020, 2:10 a.m. | OK | GNU C++17 | TESTS | 200 | 46 | 28057600 | ||
93282898 | nauynix | F | Sept. 19, 2020, 8:13 p.m. | OK | GNU C++17 | TESTS | 200 | 108 | 307200 | ||
93274961 | wiwitrifai | F | Sept. 19, 2020, 6:40 p.m. | OK | GNU C++17 | TESTS | 200 | 217 | 15155200 | ||
93277069 | whd | F | Sept. 19, 2020, 6:57 p.m. | OK | GNU C++17 | TESTS | 200 | 234 | 16588800 | ||
93273138 | hank55663 | F | Sept. 19, 2020, 6:30 p.m. | OK | GNU C++17 | TESTS | 200 | 249 | 16486400 | ||
93273952 | hank55663 | F | Sept. 19, 2020, 6:34 p.m. | OK | GNU C++17 | TESTS | 200 | 312 | 16486400 | ||
93273467 | rdd6584 | F | Sept. 19, 2020, 6:31 p.m. | OK | GNU C++17 | TESTS | 200 | 374 | 204800 | ||
93298108 | lsantire | F | Sept. 20, 2020, 3:50 a.m. | OK | GNU C++17 (64) | TESTS | 200 | 31 | 204800 | ||
93297812 | lsantire | F | Sept. 20, 2020, 3:45 a.m. | OK | GNU C++17 (64) | TESTS | 200 | 46 | 204800 | ||
93276740 | Ari | F | Sept. 19, 2020, 6:54 p.m. | OK | GNU C++17 (64) | TESTS | 200 | 124 | 32563200 | ||
93276114 | Ari | F | Sept. 19, 2020, 6:49 p.m. | OK | GNU C++17 (64) | TESTS | 200 | 124 | 32563200 | ||
93286980 | David_Garcia | F | Sept. 19, 2020, 9:41 p.m. | OK | GNU C++17 (64) | TESTS | 200 | 140 | 15769600 | ||
93288600 | xsc | F | Sept. 19, 2020, 10:29 p.m. | OK | GNU C++17 (64) | TESTS | 200 | 171 | 12697600 | ||
93268387 | natsugiri | F | Sept. 19, 2020, 4:34 p.m. | OK | GNU C++17 (64) | TESTS | 200 | 217 | 307200 | ||
93280778 | shubham__36 | F | Sept. 19, 2020, 7:40 p.m. | OK | GNU C++17 (64) | TESTS | 200 | 217 | 8294400 | ||
93276186 | Ari | F | Sept. 19, 2020, 6:50 p.m. | OK | GNU C++17 (64) | TESTS | 200 | 218 | 16486400 | ||
93303858 | iaNTU | F | Sept. 20, 2020, 5:39 a.m. | OK | GNU C++17 (64) | TESTS | 200 | 483 | 24166400 | ||
93290594 | Apfeloxid | F | Sept. 19, 2020, 11:56 p.m. | OK | Java 11 | TESTS | 200 | 420 | 0 | ||
93266674 | SecondThread | F | Sept. 19, 2020, 4:31 p.m. | OK | Java 8 | TESTS | 200 | 1528 | 0 |
Back to search problems