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 |
|---|---|---|---|---|---|---|
| 666 | Codeforces Round 349 (Div. 1) | FINISHED | False | 7200 | 314457923 | April 29, 2016, 4:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 310 ) | D | Chain Reaction | PROGRAMMING | brute force geometry | 3000 |
Group of Berland scientists, with whom you have a close business relationship, makes a research in the area of peaceful nuclear energy. In particular, they found that a group of four nanobots, placed on a surface of a plate, can run a powerful chain reaction under certain conditions. To be precise, researchers introduced a rectangular Cartesian coordinate system on a flat plate and selected four distinct points with integer coordinates where bots will be placed initially. Next each bot will be assigned with one of the four directions (up, down, left or right) parallel to the coordinate axes. After that, each bot is shifted by an integer distance (which may be different for different bots) along its direction. The chain reaction starts, if the bots are in the corners of a square with positive area with sides parallel to the coordinate axes. Each corner of the square must contain one nanobot. This reaction will be stronger, if bots spend less time to move. We can assume that bots move with unit speed. In other words, the lesser is the maximum length traveled by bot, the stronger is reaction. Scientists have prepared a set of plates and selected starting position for the bots for each plate. Now they ask you to assign the direction for each bot to move after landing such that the maximum length traveled by bot is as small as possible. The first line contains an integer number t ( 1 ≤ t ≤ 50 ) — the number of plates. t descriptions of plates follow. A description of each plate consists of four lines. Each line consists of a pair of integers numbers x i , y i ( - 10 8 ≤ x i , y i ≤ 10 8 ) — coordinates of the next bot. All bots are in different locations. Note, though, the problem can include several records in one test, you can hack other people's submissions only with the test of one plate, i.e. parameter t in a hack test should be equal to 1 . Print answers for all plates separately. First goes a single integer number in a separate line. If scientists have m |
| Codeforces Round #349 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 21106543 | jiyutian | D | Oct. 2, 2016, 6:05 a.m. | OK | GNU C++ | TESTS | 24 | 15 | 0 | 3000 | |
| 19425853 | vjudge1 | D | July 26, 2016, 3:56 p.m. | OK | GNU C++ | TESTS | 24 | 15 | 0 | 3000 | |
| 19408219 | vjudge1 | D | July 25, 2016, 5:55 p.m. | OK | GNU C++ | TESTS | 24 | 15 | 0 | 3000 | |
| 19405003 | vjudge5 | D | July 25, 2016, 1:57 p.m. | OK | GNU C++ | TESTS | 24 | 15 | 0 | 3000 | |
| 19404932 | vjudge3 | D | July 25, 2016, 1:54 p.m. | OK | GNU C++ | TESTS | 24 | 15 | 0 | 3000 | |
| 19319101 | vjudge5 | D | July 22, 2016, 8:29 a.m. | OK | GNU C++ | TESTS | 24 | 15 | 0 | 3000 | |
| 31472268 | nn020701 | D | Oct. 18, 2017, 7:36 a.m. | OK | GNU C++ | TESTS | 24 | 15 | 2048000 | 3000 | |
| 18007417 | guille | D | May 20, 2016, 3:55 p.m. | OK | GNU C++ | TESTS | 24 | 15 | 2048000 | 3000 | |
| 17833390 | 130705009 | D | May 10, 2016, 2:51 p.m. | OK | GNU C++ | TESTS | 24 | 15 | 2252800 | 3000 | |
| 17820187 | yic | D | May 9, 2016, 12:36 p.m. | OK | GNU C++ | TESTS | 24 | 15 | 2252800 | 3000 | |
| 21006680 | zetamoo | D | Sept. 30, 2016, 4:20 a.m. | OK | GNU C++11 | TESTS | 24 | 15 | 0 | 3000 | |
| 31471068 | _SHENZHEBEI_ | D | Oct. 18, 2017, 6:56 a.m. | OK | GNU C++11 | TESTS | 24 | 15 | 1945600 | 3000 | |
| 31468785 | zhouyuyang | D | Oct. 18, 2017, 4:56 a.m. | OK | GNU C++11 | TESTS | 24 | 15 | 2048000 | 3000 | |
| 23811473 | Sakura | D | Jan. 14, 2017, 5:26 p.m. | OK | GNU C++11 | TESTS | 24 | 15 | 2048000 | 3000 | |
| 31475379 | largecube233 | D | Oct. 18, 2017, 9:40 a.m. | OK | GNU C++11 | TESTS | 24 | 15 | 2150400 | 3000 | |
| 31469731 | fangbo | D | Oct. 18, 2017, 5:51 a.m. | OK | GNU C++11 | TESTS | 24 | 15 | 2150400 | 3000 | |
| 17593032 | Al.Cash | D | April 30, 2016, 10:12 a.m. | OK | GNU C++11 | TESTS | 24 | 15 | 2150400 | 3000 | |
| 18039172 | KFDong | D | May 23, 2016, 5:06 a.m. | OK | GNU C++11 | TESTS | 24 | 15 | 2252800 | 3000 | |
| 17807025 | fqw | D | May 8, 2016, 11:42 a.m. | OK | GNU C++11 | TESTS | 24 | 15 | 2252800 | 3000 | |
| 17775548 | matthew99 | D | May 7, 2016, 9:33 a.m. | OK | GNU C++11 | TESTS | 24 | 15 | 2252800 | 3000 | |
| 68076631 | nealchen | D | Jan. 2, 2020, 12:47 p.m. | OK | GNU C++14 | TESTS | 24 | 15 | 0 | 3000 | |
| 63294598 | yhx-12243 | D | Oct. 24, 2019, 12:38 p.m. | OK | GNU C++14 | TESTS | 24 | 15 | 0 | 3000 | |
| 33492100 | NiroBC | D | Dec. 21, 2017, 11:39 p.m. | OK | GNU C++14 | TESTS | 24 | 15 | 1945600 | 3000 | |
| 31485822 | jzqjzq | D | Oct. 18, 2017, 3:39 p.m. | OK | GNU C++14 | TESTS | 24 | 15 | 1945600 | 3000 | |
| 23383090 | Ali.Pi | D | Dec. 28, 2016, 5:26 p.m. | OK | GNU C++14 | TESTS | 24 | 30 | 2048000 | 3000 | |
| 68426515 | orbitingflea | D | Jan. 9, 2020, 3:49 a.m. | OK | GNU C++14 | TESTS | 24 | 31 | 0 | 3000 | |
| 68383513 | wucstdio | D | Jan. 8, 2020, 3:56 a.m. | OK | GNU C++14 | TESTS | 24 | 31 | 0 | 3000 | |
| 68381230 | cz_xuyixuan | D | Jan. 8, 2020, 1:24 a.m. | OK | GNU C++14 | TESTS | 24 | 31 | 0 | 3000 | |
| 65899237 | zhongyuwei | D | Nov. 28, 2019, 7:53 a.m. | OK | GNU C++14 | TESTS | 24 | 31 | 0 | 3000 | |
| 65855735 | zhouzhendong | D | Nov. 27, 2019, 3:02 p.m. | OK | GNU C++14 | TESTS | 24 | 31 | 0 | 3000 | |
| 50701083 | Rzepa | D | March 2, 2019, 9:35 p.m. | OK | GNU C++17 | TESTS | 24 | 15 | 102400 | 3000 | |
| 64908806 | AprilGrimoire | D | Nov. 15, 2019, 1:14 a.m. | OK | GNU C++17 | TESTS | 24 | 30 | 102400 | 3000 | |
| 69420356 | jah_melon | D | Jan. 23, 2020, 2:13 p.m. | OK | GNU C++17 | TESTS | 24 | 31 | 0 | 3000 | |
| 68423266 | xymtxdy | D | Jan. 9, 2020, 12:46 a.m. | OK | GNU C++17 | TESTS | 24 | 31 | 0 | 3000 | |
| 66811506 | cold_chair | D | Dec. 14, 2019, 2:55 a.m. | OK | GNU C++17 | TESTS | 24 | 31 | 0 | 3000 | |
| 69568621 | Egor.Lifar | D | Jan. 26, 2020, 1:20 p.m. | OK | GNU C++17 | TESTS | 24 | 93 | 204800 | 3000 | |
| 69376635 | hmjudge0 | D | Jan. 22, 2020, 6:21 p.m. | OK | GNU C++17 | TESTS | 24 | 234 | 204800 | 3000 | |
| 67644212 | LJZ_C | D | Dec. 26, 2019, 9:25 a.m. | OK | GNU C++17 | TESTS | 24 | 1466 | 102400 | 3000 | |
| 67577626 | LJZ_C | D | Dec. 25, 2019, 3:50 a.m. | OK | GNU C++17 | TESTS | 24 | 2994 | 0 | 3000 | |
| 17576854 | Petr | D | April 29, 2016, 5:27 p.m. | OK | Java 8 | TESTS | 24 | 124 | 20582400 | 3000 | |
| 17585773 | mmaxio | D | April 29, 2016, 8:08 p.m. | OK | Java 8 | TESTS | 24 | 124 | 20787200 | 3000 | |
| 17585004 | mmaxio | D | April 29, 2016, 7:29 p.m. | OK | Java 8 | TESTS | 24 | 124 | 20787200 | 3000 | |
| 17913099 | HenryGau | D | May 14, 2016, 8:39 p.m. | OK | Java 8 | TESTS | 24 | 140 | 20992000 | 3000 | |
| 17578380 | wrong_order | D | April 29, 2016, 5:42 p.m. | OK | Java 8 | TESTS | 24 | 233 | 20480000 | 3000 | |
| 24997845 | fetetriste | D | Feb. 24, 2017, 11:18 p.m. | OK | Java 8 | TESTS | 24 | 1809 | 20684800 | 3000 | |
| 17590213 | og.kostya | D | April 30, 2016, 6:14 a.m. | OK | MS C# | TESTS | 24 | 93 | 14848000 | 3000 | |
| 19024280 | Los_Angelos_Laycurse | D | July 11, 2016, 7:46 a.m. | OK | MS C++ | TESTS | 24 | 15 | 0 | 3000 | |
| 24069516 | sdya | D | Jan. 23, 2017, 11:30 a.m. | OK | MS C++ | TESTS | 24 | 78 | 2048000 | 3000 | |
| 17587650 | Michael | D | April 30, 2016, 12:28 a.m. | OK | MS C++ | TESTS | 24 | 764 | 2048000 | 3000 |
Back to search problems