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 |
| 696
|
Codeforces Round 362 (Div. 1) |
FINISHED |
False |
8100 |
307977885 |
July 14, 2016, 4:35 p.m. |
Problems
Barney has finally found the one, a beautiful young lady named Lyanna. The problem is, Lyanna and Barney are trapped in Lord Loss' castle. This castle has shape of a convex polygon of n points. Like most of castles in Demonata worlds, this castle has no ceiling. Barney and Lyanna have an escape plan, but it requires some geometry knowledge, so they asked for your help. Barney knows that demons are organized and move in lines. He and Lyanna want to wait for the appropriate time so they need to watch for the demons. Each of them wants to stay in a point inside the castle (possibly on edges or corners), also they may stay in the same position. They both want to pick a real number r and watch all points in the circles with radius r around each of them (these two circles may overlap). We say that Barney and Lyanna are watching carefully if and only if for every edge of the polygon, at least one of them can see at least one point on the line this edge lies on, thus such point may not be on the edge but it should be on edge's line. Formally, each edge line should have at least one common point with at least one of two circles. The greater r is, the more energy and focus they need. So they asked you to tell them the minimum value of r such that they can watch carefully. The first line of input contains a single integer n ( 3 ≤ n ≤ 300 ) — the number of castle polygon vertices. The next n lines describe the polygon vertices in counter-clockwise order. i -th of them contains two integers x i and y i ( | x i |, | y i | ≤ 10 4 ) — the coordinates of i -th point of the castle. It is guaranteed that given points form a convex polygon, in particular, any three of them do not line on the same line. In the first line print the single number r — minimum radius of guys' watching circles. In the second line print the pair of coordinates of point where Barney should stay. In the third line print the pair of coordinates of point where Lyanna should stay. Points should lie insid |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|
27836759 |
AkaneSasu |
F |
June 17, 2017, 3:08 a.m. |
OK |
GNU C++ |
TESTS |
104 |
15 |
2150400 |
|
3200 |
|
27333652 |
Scut82 |
F |
May 25, 2017, 10:11 a.m. |
OK |
GNU C++ |
TESTS |
104 |
1200 |
102400 |
|
3200 |
|
27794280 |
AkaneSasu |
F |
June 15, 2017, 1:14 p.m. |
OK |
GNU C++ |
TESTS |
104 |
1434 |
0 |
|
3200 |
|
19926536 |
idy002 |
F |
Aug. 17, 2016, 12:22 p.m. |
OK |
GNU C++ |
TESTS |
104 |
2355 |
2252800 |
|
3200 |
|
19284624 |
krijgertje |
F |
July 20, 2016, 4:51 p.m. |
OK |
GNU C++11 |
TESTS |
104 |
15 |
0 |
|
3200 |
|
23553816 |
swetank |
F |
Jan. 5, 2017, 11:48 a.m. |
OK |
GNU C++11 |
TESTS |
104 |
15 |
2048000 |
|
3200 |
|
19150097 |
Errichto |
F |
July 15, 2016, 10:14 a.m. |
OK |
GNU C++11 |
TESTS |
104 |
15 |
24371200 |
|
3200 |
|
19989220 |
konstantanter |
F |
Aug. 20, 2016, 1:28 p.m. |
OK |
GNU C++11 |
TESTS |
104 |
30 |
2048000 |
|
3200 |
|
40984067 |
ReaLNero1 |
F |
July 30, 2018, 7:10 p.m. |
OK |
GNU C++11 |
TESTS |
104 |
31 |
0 |
|
3200 |
|
20925705 |
coco0115401 |
F |
Sept. 26, 2016, 1:04 p.m. |
OK |
GNU C++11 |
TESTS |
104 |
31 |
0 |
|
3200 |
|
19133002 |
Gomhog |
F |
July 14, 2016, 7:20 p.m. |
OK |
GNU C++11 |
TESTS |
104 |
31 |
0 |
|
3200 |
|
50280182 |
lalaxu |
F |
Feb. 21, 2019, 12:20 p.m. |
OK |
GNU C++11 |
TESTS |
104 |
31 |
102400 |
|
3200 |
|
50280504 |
lalaxu |
F |
Feb. 21, 2019, 12:29 p.m. |
OK |
GNU C++11 |
TESTS |
104 |
31 |
204800 |
|
3200 |
|
50280481 |
lalaxu |
F |
Feb. 21, 2019, 12:28 p.m. |
OK |
GNU C++11 |
TESTS |
104 |
31 |
204800 |
|
3200 |
|
23364581 |
Ali.Pi |
F |
Dec. 27, 2016, 5:58 p.m. |
OK |
GNU C++14 |
TESTS |
104 |
15 |
26316800 |
|
3200 |
|
24448610 |
Mohammad.Sj |
F |
Feb. 5, 2017, 10:11 a.m. |
OK |
GNU C++14 |
TESTS |
104 |
31 |
2048000 |
|
3200 |
|
63070020 |
yhx-12243 |
F |
Oct. 21, 2019, 12:07 p.m. |
OK |
GNU C++14 |
TESTS |
104 |
46 |
15462400 |
|
3200 |
|
63732192 |
BJpers3 |
F |
Oct. 29, 2019, 2:21 p.m. |
OK |
GNU C++14 |
TESTS |
104 |
46 |
36864000 |
|
3200 |
|
33394959 |
cyz666 |
F |
Dec. 19, 2017, 1:29 a.m. |
OK |
GNU C++14 |
TESTS |
104 |
77 |
1945600 |
|
3200 |
|
68543667 |
apiadu |
F |
Jan. 10, 2020, 3:45 p.m. |
OK |
GNU C++14 |
TESTS |
104 |
78 |
2764800 |
|
3200 |
|
21406427 |
Rafiki53 |
F |
Oct. 13, 2016, 3:20 p.m. |
OK |
GNU C++14 |
TESTS |
104 |
109 |
2048000 |
|
3200 |
|
63904328 |
Cyanic |
F |
Oct. 31, 2019, 6:03 a.m. |
OK |
GNU C++14 |
TESTS |
104 |
140 |
10547200 |
|
3200 |
|
63626438 |
vjudge1 |
F |
Oct. 28, 2019, 4:04 a.m. |
OK |
GNU C++14 |
TESTS |
104 |
140 |
10547200 |
|
3200 |
|
37457333 |
kut_kjb1994 |
F |
April 19, 2018, 9:57 a.m. |
OK |
GNU C++14 |
TESTS |
104 |
327 |
6041600 |
|
3200 |
|
69949988 |
gongsuidashen |
F |
Feb. 1, 2020, 8:40 a.m. |
OK |
GNU C++17 |
TESTS |
104 |
31 |
28364800 |
|
3200 |
|
69828637 |
vjudge5 |
F |
Jan. 30, 2020, 9:50 a.m. |
OK |
GNU C++17 |
TESTS |
104 |
171 |
3788800 |
|
3200 |
|
63959306 |
boshi |
F |
Nov. 1, 2019, 4:10 a.m. |
OK |
GNU C++17 |
TESTS |
104 |
655 |
1228800 |
|
3200 |
|
64189320 |
LJZ_C |
F |
Nov. 4, 2019, 6:58 a.m. |
OK |
GNU C++17 |
TESTS |
104 |
1216 |
204800 |
|
3200 |
|
64174276 |
AryssonFigueiredo |
F |
Nov. 3, 2019, 8 p.m. |
OK |
GNU C++17 |
TESTS |
104 |
1263 |
204800 |
|
3200 |
|
64174140 |
AryssonFigueiredo |
F |
Nov. 3, 2019, 7:55 p.m. |
OK |
GNU C++17 |
TESTS |
104 |
1278 |
204800 |
|
3200 |
|
64189397 |
vjudge5 |
F |
Nov. 4, 2019, 7 a.m. |
OK |
GNU C++17 |
TESTS |
104 |
1279 |
204800 |
|
3200 |
|
67195619 |
ppc_qjd |
F |
Dec. 19, 2019, 8:55 a.m. |
OK |
GNU C++17 |
TESTS |
104 |
2058 |
1126400 |
|
3200 |
|
64155677 |
AprilGrimoire |
F |
Nov. 3, 2019, 12:44 p.m. |
OK |
GNU C++17 |
TESTS |
104 |
2105 |
1433600 |
|
3200 |
|
67626600 |
.__. |
F |
Dec. 25, 2019, 10:25 p.m. |
OK |
GNU C++17 |
TESTS |
104 |
2714 |
204800 |
|
3200 |
|
19471682 |
kasemyassine |
F |
July 29, 2016, 3:56 a.m. |
OK |
MS C++ |
TESTS |
104 |
15 |
0 |
|
3200 |
|
19157582 |
Los_Angelos_Laycurse |
F |
July 15, 2016, 4:24 p.m. |
OK |
MS C++ |
TESTS |
104 |
2043 |
204800 |
|
3200 |
remove filters
Back to search problems