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.
Problems
It’s riot time on football stadium Ramacana! Raging fans have entered the field and the police find themselves in a difficult situation. The field can be represented as a square in the coordinate system defined by two diagonal vertices in (0,0) and ( 10 5 , 10 5 ). The sides of that square are also considered to be inside the field, everything else is outside . In the beginning, there are N fans on the field. For each fan we are given his speed, an integer v i as well as his integer coordinates ( x i , y i ). A fan with those coordinates might move and after one second he might be at any point ( x i + p , y i + q ) where 0 ≤ | p | + | q | ≤ v i . p , q are both integers. Points that go outside of the square that represents the field are excluded and all others have equal probability of being the location of that specific fan after one second. Andrej, a young and promising police officer, has sent a flying drone to take a photo of the riot from above. The drone’s camera works like this: It selects three points with integer coordinates such that there is a chance of a fan appearing there after one second. They must not be collinear or the camera won’t work. It is guaranteed that not all of the initial positions of fans will be on the same line. Camera focuses those points and creates a circle that passes through those three points. A photo is taken after one second (one second after the initial state). Everything that is on the circle or inside it at the moment of taking the photo (one second after focusing the points) will be on the photo. Your goal is to select those three points so that the expected number of fans seen on the photo is maximized. If there are more such selections, select those three points that give the circle with largest radius among them. If there are still more suitable selections, any one of them will be accepted. If your answer follows conditions above and radius of circle you return is smaller then the optimal one by 0.01, your outp |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|
12871832 |
TankEngineer rowdark BaconLi |
E |
Sept. 6, 2015, 12:54 p.m. |
OK |
GNU C++ |
TESTS |
12 |
108 |
6860800 |
|
3200 |
|
12871451 |
antonkov enot110 subscriber |
E |
Sept. 6, 2015, 12:45 p.m. |
OK |
GNU C++ |
TESTS |
12 |
108 |
33484800 |
|
3200 |
|
16851222 |
RNS3 |
E |
March 21, 2016, 7:17 a.m. |
OK |
GNU C++ |
TESTS |
12 |
109 |
17100800 |
|
3200 |
|
13833400 |
130705009 |
E |
Oct. 25, 2015, 4:42 a.m. |
OK |
GNU C++ |
TESTS |
12 |
124 |
19046400 |
|
3200 |
|
12909380 |
Hwhitetooth |
E |
Sept. 9, 2015, 12:36 p.m. |
OK |
GNU C++ |
TESTS |
12 |
124 |
19558400 |
|
3200 |
|
35894280 |
_____k_____ |
E |
March 3, 2018, 4:18 p.m. |
OK |
GNU C++ |
TESTS |
12 |
124 |
21094400 |
|
3200 |
|
35889167 |
______n______ |
E |
March 3, 2018, 2:35 p.m. |
OK |
GNU C++ |
TESTS |
12 |
124 |
21094400 |
|
3200 |
|
35888922 |
______u______ |
E |
March 3, 2018, 2:30 p.m. |
OK |
GNU C++ |
TESTS |
12 |
124 |
21094400 |
|
3200 |
|
35887502 |
_____i_____ |
E |
March 3, 2018, 2:06 p.m. |
OK |
GNU C++ |
TESTS |
12 |
124 |
21094400 |
|
3200 |
|
35884017 |
______h______ |
E |
March 3, 2018, 1:03 p.m. |
OK |
GNU C++ |
TESTS |
12 |
124 |
21094400 |
|
3200 |
|
64646264 |
_rqy |
E |
Nov. 10, 2019, 3:06 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
31 |
5427200 |
|
3200 |
|
68059079 |
XieRujian |
E |
Jan. 2, 2020, 1:25 a.m. |
OK |
GNU C++11 |
TESTS |
12 |
62 |
19046400 |
|
3200 |
|
69972765 |
w190971822 |
E |
Feb. 1, 2020, 2:14 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
77 |
16076800 |
|
3200 |
|
40986189 |
ReaLNero1 |
E |
July 30, 2018, 8:24 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
93 |
6348800 |
|
3200 |
|
12870696 |
mike_live vepifanov |
E |
Sept. 6, 2015, 12:22 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
93 |
6860800 |
|
3200 |
|
13573972 |
krijgertje |
E |
Oct. 12, 2015, 1:42 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
93 |
14028800 |
|
3200 |
|
63223834 |
boshi |
E |
Oct. 23, 2019, 8:42 a.m. |
OK |
GNU C++11 |
TESTS |
12 |
93 |
14950400 |
|
3200 |
|
64364644 |
WZYYN |
E |
Nov. 6, 2019, 12:41 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
93 |
16076800 |
|
3200 |
|
15141978 |
HappyNewYearMike |
E |
Dec. 31, 2015, 10 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
93 |
16076800 |
|
3200 |
|
12902898 |
sd0061 |
E |
Sept. 8, 2015, 8:15 p.m. |
OK |
GNU C++11 |
TESTS |
12 |
93 |
16076800 |
|
3200 |
|
28350852 |
--d |
E |
July 7, 2017, 2:04 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
78 |
12288000 |
|
3200 |
|
27282271 |
MiFaFaOvO |
E |
May 22, 2017, 11:01 a.m. |
OK |
GNU C++14 |
TESTS |
12 |
124 |
29388800 |
|
3200 |
|
66549007 |
nealchen |
E |
Dec. 9, 2019, 2:11 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
139 |
6348800 |
|
3200 |
|
63759626 |
Created_equal |
E |
Oct. 30, 2019, 2:46 a.m. |
OK |
GNU C++14 |
TESTS |
12 |
139 |
12697600 |
|
3200 |
|
63050370 |
yhx-12243 |
E |
Oct. 21, 2019, 1:49 a.m. |
OK |
GNU C++14 |
TESTS |
12 |
139 |
12800000 |
|
3200 |
|
65493021 |
apiadu |
E |
Nov. 21, 2019, 3:28 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
140 |
7475200 |
|
3200 |
|
63050142 |
Cyanic |
E |
Oct. 21, 2019, 1:35 a.m. |
OK |
GNU C++14 |
TESTS |
12 |
140 |
16076800 |
|
3200 |
|
69732576 |
liji |
E |
Jan. 29, 2020, 1:51 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
156 |
16076800 |
|
3200 |
|
65464258 |
cz_xuyixuan |
E |
Nov. 21, 2019, 4:52 a.m. |
OK |
GNU C++14 |
TESTS |
12 |
171 |
6451200 |
|
3200 |
|
25498610 |
daminho |
E |
March 15, 2017, 12:55 p.m. |
OK |
GNU C++14 |
TESTS |
12 |
187 |
18739200 |
|
3200 |
|
60661375 |
Nebuchadnezzar |
E |
Sept. 16, 2019, 5:08 a.m. |
OK |
GNU C++17 |
TESTS |
12 |
155 |
13824000 |
|
3200 |
|
63660628 |
vjudge1 |
E |
Oct. 28, 2019, 1:57 p.m. |
OK |
GNU C++17 |
TESTS |
12 |
217 |
38502400 |
|
3200 |
|
63233216 |
AprilGrimoire |
E |
Oct. 23, 2019, 11:35 a.m. |
OK |
GNU C++17 |
TESTS |
12 |
233 |
12697600 |
|
3200 |
|
53323987 |
ivan100sic |
E |
April 26, 2019, 2:29 p.m. |
OK |
GNU C++17 |
TESTS |
12 |
249 |
21811200 |
|
3200 |
|
66211854 |
ruo |
E |
Dec. 3, 2019, 7:09 a.m. |
OK |
GNU C++17 |
TESTS |
12 |
249 |
25292800 |
|
3200 |
|
63660270 |
LJZ_C |
E |
Oct. 28, 2019, 1:52 p.m. |
OK |
GNU C++17 |
TESTS |
12 |
249 |
38502400 |
|
3200 |
|
65901303 |
cold_chair |
E |
Nov. 28, 2019, 8:51 a.m. |
OK |
GNU C++17 |
TESTS |
12 |
280 |
66560000 |
|
3200 |
|
63688337 |
vjudge5 |
E |
Oct. 29, 2019, 12:27 a.m. |
OK |
GNU C++17 |
TESTS |
12 |
296 |
38502400 |
|
3200 |
|
63688244 |
zhongyuwei |
E |
Oct. 29, 2019, 12:22 a.m. |
OK |
GNU C++17 |
TESTS |
12 |
311 |
38502400 |
|
3200 |
|
45221261 |
valkyrie |
E |
Nov. 2, 2018, 9:21 p.m. |
OK |
GNU C++17 |
TESTS |
12 |
389 |
39526400 |
|
3200 |
|
12881045 |
cvm |
E |
Sept. 7, 2015, 7:29 a.m. |
OK |
Java 7 |
TESTS |
12 |
452 |
31436800 |
|
3200 |
|
12913649 |
uwi |
E |
Sept. 9, 2015, 6:10 p.m. |
OK |
Java 8 |
TESTS |
12 |
467 |
10854400 |
|
3200 |
remove filters
Back to search problems