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 |
611
|
Good Bye 2015 |
FINISHED |
False |
10800 |
280335299 |
Dec. 30, 2015, 3:05 p.m. |
Problems
B"Limak is a little polar bear. According to some old traditions, his bear family prepared a New Year cake. And Limak likes cakes. As you may know, a New Year cake is a strictly convex polygon with n vertices. Parents won't allow Limak to eat more than half of a cake because he would get sick. After some thinking they decided to cut a cake along one of n xc2 xb7(n xe2 x80 x89- xe2 x80 x893) xe2 x80 x89/ xe2 x80 x892 diagonals. Then Limak will get a non-greater piece. Limak understands rules but he won't be happy if the second piece happens to be much bigger. Limak's disappointment will be equal to the difference between pieces' areas, multiplied by two. It can be proved that it will be integer for the given constraints. There are n xc2 xb7(n xe2 x80 x89- xe2 x80 x893) xe2 x80 x89/ xe2 x80 x892 possible scenarios. Consider them all and find the sum of values of Limak's disappointment, modulo 109 xe2 x80 x89+ xe2 x80 x897. The first line of the input contains a single integer n (4 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89500 xe2 x80 x89000) -- the number of vertices in the polygon denoting the cake. Each of the next n lines contains two integers xi and yi (|xi|, xe2 x80 x89|yi| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- coordinates of the i-th point. It's guaranteed that all points are distinct, polygon is strictly convex and points are given in the clockwise order. Print the sum of values of Limak's disappointment over all possible scenarios modulo 109 xe2 x80 x89+ xe2 x80 x897. In the first sample possible values of Limak's disappointment are 0, xe2 x80 x8918, xe2 x80 x8918, xe2 x80 x8924, xe2 x80 x8930."... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
15761796 |
ez_zkj |
G |
Feb. 3, 2016, 3:58 a.m. |
OK |
FPC |
TESTS |
29 |
623 |
32051200 |
|
2900 |
15131213 |
jcvb |
G |
Dec. 31, 2015, 2:07 a.m. |
OK |
GNU C++ |
TESTS |
29 |
140 |
8499200 |
|
2900 |
27876627 |
jiyutian |
G |
June 18, 2017, 4:53 a.m. |
OK |
GNU C++ |
TESTS |
29 |
171 |
39936000 |
|
2900 |
15119926 |
kutengine |
G |
Dec. 30, 2015, 4:51 p.m. |
OK |
GNU C++ |
TESTS |
29 |
249 |
7987200 |
|
2900 |
15144189 |
HappyNewYearMike |
G |
Jan. 1, 2016, 12:35 a.m. |
OK |
GNU C++ |
TESTS |
29 |
249 |
8908800 |
|
2900 |
15130866 |
130705009 |
G |
Dec. 31, 2015, 1:15 a.m. |
OK |
GNU C++ |
TESTS |
29 |
265 |
8908800 |
|
2900 |
15122005 |
black_horse2014 |
G |
Dec. 30, 2015, 5:14 p.m. |
OK |
GNU C++ |
TESTS |
29 |
280 |
8908800 |
|
2900 |
15266273 |
gulu.311295 |
G |
Jan. 9, 2016, 8:31 a.m. |
OK |
GNU C++ |
TESTS |
29 |
280 |
16076800 |
|
2900 |
15131853 |
PiffNP |
G |
Dec. 31, 2015, 3:35 a.m. |
OK |
GNU C++ |
TESTS |
29 |
280 |
32051200 |
|
2900 |
15131816 |
PiffNP |
G |
Dec. 31, 2015, 3:29 a.m. |
OK |
GNU C++ |
TESTS |
29 |
280 |
32051200 |
|
2900 |
15131787 |
PiffNP |
G |
Dec. 31, 2015, 3:23 a.m. |
OK |
GNU C++ |
TESTS |
29 |
280 |
32051200 |
|
2900 |
68572985 |
cly_none |
G |
Jan. 11, 2020, 3:26 a.m. |
OK |
GNU C++11 |
TESTS |
29 |
93 |
24064000 |
|
2900 |
63622630 |
142857 |
G |
Oct. 28, 2019, 12:43 a.m. |
OK |
GNU C++11 |
TESTS |
29 |
93 |
33587200 |
|
2900 |
66168165 |
xht37 |
G |
Dec. 2, 2019, 8:50 a.m. |
OK |
GNU C++11 |
TESTS |
29 |
109 |
8192000 |
|
2900 |
66168010 |
xht37 |
G |
Dec. 2, 2019, 8:45 a.m. |
OK |
GNU C++11 |
TESTS |
29 |
109 |
8192000 |
|
2900 |
15146031 |
matthew99 |
G |
Jan. 1, 2016, 8:09 a.m. |
OK |
GNU C++11 |
TESTS |
29 |
109 |
32153600 |
|
2900 |
67396748 |
newbiechdboom0 |
G |
Dec. 21, 2019, 11:57 p.m. |
OK |
GNU C++11 |
TESTS |
29 |
109 |
48947200 |
|
2900 |
67396725 |
newbiechdboom0 |
G |
Dec. 21, 2019, 11:55 p.m. |
OK |
GNU C++11 |
TESTS |
29 |
124 |
48947200 |
|
2900 |
27301700 |
ohweonfire |
G |
May 23, 2017, 12:59 p.m. |
OK |
GNU C++11 |
TESTS |
29 |
139 |
40038400 |
|
2900 |
69840616 |
tacmon |
G |
Jan. 30, 2020, 1:03 p.m. |
OK |
GNU C++11 |
TESTS |
29 |
140 |
36044800 |
|
2900 |
40985461 |
ReaLNero1 |
G |
July 30, 2018, 7:57 p.m. |
OK |
GNU C++11 |
TESTS |
29 |
140 |
40140800 |
|
2900 |
68151148 |
QAQAutoMaton |
G |
Jan. 4, 2020, 6:57 a.m. |
OK |
GNU C++14 |
TESTS |
29 |
140 |
28262400 |
|
2900 |
63055549 |
yhx-12243 |
G |
Oct. 21, 2019, 6:05 a.m. |
OK |
GNU C++14 |
TESTS |
29 |
280 |
24064000 |
|
2900 |
66167694 |
PinkRabbit |
G |
Dec. 2, 2019, 8:34 a.m. |
OK |
GNU C++14 |
TESTS |
29 |
280 |
36044800 |
|
2900 |
66167647 |
PinkRabbit |
G |
Dec. 2, 2019, 8:32 a.m. |
OK |
GNU C++14 |
TESTS |
29 |
280 |
36044800 |
|
2900 |
63904825 |
Cyanic |
G |
Oct. 31, 2019, 6:15 a.m. |
OK |
GNU C++14 |
TESTS |
29 |
295 |
32051200 |
|
2900 |
65935634 |
orbitingflea |
G |
Nov. 29, 2019, 1:46 a.m. |
OK |
GNU C++14 |
TESTS |
29 |
296 |
32051200 |
|
2900 |
50302070 |
Owys |
G |
Feb. 22, 2019, 3:10 a.m. |
OK |
GNU C++14 |
TESTS |
29 |
296 |
32051200 |
|
2900 |
65575241 |
apiadu |
G |
Nov. 23, 2019, 9:10 a.m. |
OK |
GNU C++14 |
TESTS |
29 |
343 |
11980800 |
|
2900 |
60331886 |
nabid_anzum |
G |
Sept. 10, 2019, 6:30 a.m. |
OK |
GNU C++14 |
TESTS |
29 |
343 |
11980800 |
|
2900 |
65283088 |
nabid_anzum |
G |
Nov. 18, 2019, 6:58 a.m. |
OK |
GNU C++14 |
TESTS |
29 |
358 |
11980800 |
|
2900 |
68934753 |
CMXRYNP |
G |
Jan. 16, 2020, 12:27 p.m. |
OK |
GNU C++17 |
TESTS |
29 |
343 |
40038400 |
|
2900 |
63739189 |
AprilGrimoire |
G |
Oct. 29, 2019, 4:20 p.m. |
OK |
GNU C++17 |
TESTS |
29 |
374 |
24064000 |
|
2900 |
68985848 |
vjudge3 |
G |
Jan. 17, 2020, 12:27 p.m. |
OK |
GNU C++17 |
TESTS |
29 |
374 |
240435200 |
|
2900 |
68939845 |
ruo |
G |
Jan. 16, 2020, 2:04 p.m. |
OK |
GNU C++17 |
TESTS |
29 |
390 |
40140800 |
|
2900 |
65473054 |
ppc_qjd |
G |
Nov. 21, 2019, 9:03 a.m. |
OK |
GNU C++17 |
TESTS |
29 |
405 |
28057600 |
|
2900 |
68934713 |
CMXRYNP |
G |
Jan. 16, 2020, 12:26 p.m. |
OK |
GNU C++17 |
TESTS |
29 |
405 |
40038400 |
|
2900 |
59253519 |
INVWVZ |
G |
Aug. 22, 2019, 5:26 a.m. |
OK |
GNU C++17 |
TESTS |
29 |
405 |
51097600 |
|
2900 |
66484249 |
justfocusplease |
G |
Dec. 8, 2019, 5:22 a.m. |
OK |
GNU C++17 |
TESTS |
29 |
420 |
16076800 |
|
2900 |
63913159 |
LJZ_C |
G |
Oct. 31, 2019, 9:04 a.m. |
OK |
GNU C++17 |
TESTS |
29 |
420 |
24064000 |
|
2900 |
63919328 |
vjudge2 |
G |
Oct. 31, 2019, 11:12 a.m. |
OK |
GNU C++17 |
TESTS |
29 |
421 |
24064000 |
|
2900 |
15119121 |
Petr |
G |
Dec. 30, 2015, 4:44 p.m. |
OK |
Java 7 |
TESTS |
29 |
467 |
13721600 |
|
2900 |
15127957 |
OgieKako |
G |
Dec. 30, 2015, 7:12 p.m. |
OK |
Java 7 |
TESTS |
29 |
1294 |
252313600 |
|
2900 |
15135248 |
uwi |
G |
Dec. 31, 2015, 10:16 a.m. |
OK |
Java 8 |
TESTS |
29 |
483 |
78336000 |
|
2900 |
16901261 |
AlexFetisov |
G |
March 24, 2016, 5:55 a.m. |
OK |
Java 8 |
TESTS |
29 |
608 |
93286400 |
|
2900 |
28789098 |
mualanhlung017 |
G |
July 23, 2017, 1:22 a.m. |
OK |
Java 8 |
TESTS |
29 |
654 |
47513600 |
|
2900 |
28789114 |
mualanhlung017 |
G |
July 23, 2017, 1:23 a.m. |
OK |
Java 8 |
TESTS |
29 |
655 |
47513600 |
|
2900 |
28789083 |
mualanhlung017 |
G |
July 23, 2017, 1:20 a.m. |
OK |
Java 8 |
TESTS |
29 |
655 |
47513600 |
|
2900 |
16268526 |
antonkov |
G |
Feb. 21, 2016, 9:55 p.m. |
OK |
Java 8 |
TESTS |
29 |
733 |
11468800 |
|
2900 |
15484169 |
edorundo |
G |
Jan. 21, 2016, 5:54 p.m. |
OK |
Java 8 |
TESTS |
29 |
810 |
63078400 |
|
2900 |
15193839 |
Al3ks1002 |
G |
Jan. 5, 2016, 5:16 p.m. |
OK |
Java 8 |
TESTS |
29 |
904 |
113254400 |
|
2900 |
15127939 |
OgieKako |
G |
Dec. 30, 2015, 7:11 p.m. |
OK |
Java 8 |
TESTS |
29 |
1372 |
256307200 |
|
2900 |
15160729 |
AleksanderBalobanov |
G |
Jan. 2, 2016, 4:54 p.m. |
OK |
MS C++ |
TESTS |
29 |
624 |
16076800 |
|
2900 |
remove filters
Back to search problems